prime-simplereport icon indicating copy to clipboard operation
prime-simplereport copied to clipboard

Fetch OrganizationRoleClaims from DB when feature flag enabled

Open emyl3 opened this issue 1 year ago • 1 comments

BACKEND PULL REQUEST

Related Issue

  • Why is this being done? Link to issue, or a few sentences describing why this PR exists

Changes Proposed

  • Detailed explanation of what this PR should do

Additional Information

  • decisions that were made
  • notice of future work that needs to be done

Testing

  • How should reviewers verify this PR?

DATABASE PULL REQUEST

Related Issue

  • Why is this being done? Link to issue, or a few sentences describing why this PR exists

Changes Proposed

  • Detailed explanation of what this PR should do

Additional Information

  • decisions that were made
  • notice of future work that needs to be done

Testing

  • How should reviewers verify this PR?

DEVOPS PULL REQUEST

Related Issue

  • Why is this being done? Link to issue, or a few sentences describing why this PR exists

Changes Proposed

  • Detailed explanation of what this PR should do

Additional Information

  • decisions that were made
  • notice of future work that needs to be done

Testing

  • How should reviewers verify this PR?

FRONTEND PULL REQUEST

Related Issue

  • Why is this being done? Link to issue, or a few sentences describing why this PR exists

Changes Proposed

  • Detailed explanation of what this PR should do

Additional Information

  • decisions that were made
  • notice of future work that needs to be done

Testing

  • How should reviewers verify this PR?

Screenshots / Demos

  • For large changes, please pair with a designer to ensure changes are as intended

emyl3 avatar Aug 13 '24 19:08 emyl3

@mpbrown @fzhao99 ready for re-review! (redeployed changes to dev2 and dev3)

emyl3 avatar Aug 21 '24 18:08 emyl3

forgive me if these are included in the remaining work you called out, but I noticed a couple unexpected places where we're using Okta groups as source of truth:

mehansen avatar Aug 23 '24 19:08 mehansen

forgive me if these are included in the remaining work you called out, but I noticed a couple unexpected places where we're using Okta groups as source of truth:

I didn't explicitly call these out but I was going to search the entire repo for where we were calling the GroupApi and bundle all that work together. This is a very helpful starting point to make sure I have all the different usages covered 🙌 Thank you, Merethe! 🗒️

emyl3 avatar Aug 23 '24 19:08 emyl3

thank you for all your hard work on this! it's so cool to see this coming together 🤩

do you think we need to use the db roles for this permission check too? https://github.com/CDCgov/prime-simplereport/blob/refs/heads/elisa/7598-read-roles-from-db/backend/src/main/java/gov/cdc/usds/simplereport/config/authorization/UserAuthorizationVerifier.java#L100

ohhhh nice catch! I will update this 😅 Thank you!!! 🙌 🐛 🔍

emyl3 avatar Aug 23 '24 20:08 emyl3

I didn't explicitly call these out but I was going to search the entire repo for where we were calling the GroupApi and bundle all that work together. This is a very helpful starting point to make sure I have all the different usages covered 🙌 Thank you, Merethe! 🗒️

oh nice that should definitely do it. everything looks good! the permission check update could totally go in a follow-up PR too if you want to just merge this

mehansen avatar Aug 23 '24 21:08 mehansen

I didn't explicitly call these out but I was going to search the entire repo for where we were calling the GroupApi and bundle all that work together. This is a very helpful starting point to make sure I have all the different usages covered 🙌 Thank you, Merethe! 🗒️

oh nice that should definitely do it. everything looks good! the permission check update could totally go in a follow-up PR too if you want to just merge this

I'll fix the permission check in a separate PR 🙏 Thank you for your flexibility.

emyl3 avatar Aug 27 '24 14:08 emyl3

Going to merge this in after demo 💪

emyl3 avatar Aug 27 '24 15:08 emyl3