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: while updating role, do full refresh of permissions #812

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kushsharma
Copy link
Member

Currently while updating role, frontier used to identify the deleted permissions from role and only remove them which are needed. One problem with this is if in case someone manually modifies such roles and the permissions gets out of sync, it will not try to correct them. Now it deletes all existing permissions and create the new requested on every update call.

Currently while updating role, frontier used to identify the deleted
permissions from role and only remove them which are needed. One
problem with this is if in case someone manually modifies such roles
and the permissions gets out of sync, it will not try to correct them.
Now it deletes all existing permissions and create the new requested
on every update call.

Signed-off-by: Kush Sharma <[email protected]>
Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 3:46pm

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11707035493

Details

  • 10 of 39 (25.64%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 30.849%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/v1beta1/billing_checkout.go 0 1 0.0%
internal/api/v1beta1/billing_customer.go 0 1 0.0%
core/role/service.go 0 27 0.0%
Totals Coverage Status
Change from base Build 11682366718: 0.02%
Covered Lines: 7628
Relevant Lines: 24727

💛 - Coveralls

@kushsharma kushsharma marked this pull request as ready for review November 6, 2024 15:52
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.

2 participants