Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Attestation Delegation Logic #207

Open
MaxBiCC opened this issue Nov 26, 2024 · 1 comment
Open

Changes to Attestation Delegation Logic #207

MaxBiCC opened this issue Nov 26, 2024 · 1 comment

Comments

@MaxBiCC
Copy link

MaxBiCC commented Nov 26, 2024

Hi,

I am currently using the latest commit from November 19, 2024, and have observed a change in the behavior of attestation case delegation.

Previously, as of the October 8, 2024, commit, I was able to delegate individual attestation cases via the Pending Attestations view by using the Action button located next to Approve and Deny. However, this functionality no longer appears to be working in the latest version.

Action Button in Pending Attestations

I noticed in the latest GitHub updates that changes were made to files such as attestation-case.ts and attestation-cases-service.ts, where the isChiefApproval variable was removed and replaced with the newly introduced isUserEscalationApprover variable.

Variable Change

I suspect that the canDelegateDecision method in attestation-case.ts is responsible for this altered behavior.

Variable Change in Method

There are significantly more instances of isUserEscalationApprover being used in attestation-case.ts.

While I am not categorizing this as a bug at this point, I am currently unable to fully understand the reasoning behind the changed behavior. This functionality is highly valued and frequently utilized in our environment, making it essential for it to function correctly. Using the att module and files from the October commit restores the ability to delegate attestation cases.

Hint: We are using a custom approval workflow based on a standard approval procedure (CM - Manager of attested identity), which allows the manager of an identity to decide about attestations.

@Mathnstein
Copy link
Collaborator

Hi @MaxBiCC - yes this was a change I had made. There seems to be some confusion on what exact functionality we want here - but the reason for the change was the UI toggle (isChiefApproval) was preventing the ability to delegate (and other actions) from the chief approval table (i.e once you had it enabled, all other actions would fail these logic checks)

Stay tuned - We're working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants