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

Fix bug where Decision Automation header isn't displaying for "less privileged" roles #838

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

aclark02-arcus
Copy link
Collaborator

@aclark02-arcus aclark02-arcus commented Jan 27, 2025

I first noticed this bug in the webinar demo deployment:

https://rinpharma.shinyapps.io/riskassessment_shinygathering2025

I was logged in with the reviewer role, which means I didn't have the auto_decision_adjust privilege. As a result, I noticed that the "Decision Automation" header and horizontal line was missing from the Upload Package tab:

image

I checked the "normal" demo deployment, and this wasn't the case for the reviewer role, which was odd. The only difference in this deployment's automation rules is that it includes rules based on pkg scores. When I checked the code base, I saw that the auto_decision_initial depends on the existence of an upper/lower bound-based rule existing, which explained the issue. Thus, I just changed out the conditional to point to the logical value which monitors whether or not any risk rules exist.

@aclark02-arcus
Copy link
Collaborator Author

Hey @jthompson-arcus, if you don't mind looking at this first thing in the morning, that would be great. Then I'll update my webinardemo deployment. Many thanks!

@aclark02-arcus aclark02-arcus changed the title Fix bug where Decision Automation header isn't displaying for certain less privileged roles Fix bug where Decision Automation header isn't displaying for "less privileged" roles Jan 27, 2025
Copy link
Collaborator

@jthompson-arcus jthompson-arcus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@jthompson-arcus jthompson-arcus merged commit b582c47 into dev Jan 27, 2025
1 check passed
@jthompson-arcus jthompson-arcus deleted the ac-add-automation-header branch January 27, 2025 13:13
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

Successfully merging this pull request may close these issues.

3 participants