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

Improve omni-account creation and permissions #3281

Merged

Conversation

silva-fj
Copy link
Contributor

@silva-fj silva-fj commented Mar 7, 2025

This pull request introduces a few improvements for the omni-account management. The most important changes include adding checks for existing account stores and ensuring permissions can only be set under specific conditions.

silva-fj added 2 commits March 6, 2025 15:24
Adds check in create_account_store to ensure an account store doesn't
already exist for a given omni-account identity, preventing possible
data inconsistencies or unexpected behavior.

Also adds a test case to verify this validation works correctly when
attempting to recreate an account store.
Adds protection against having no member with default permission in
an account store. Prevents removing default permissions unless another
member has them, and checks that account store has multiple members
before allowing permission changes.

This ensures account stores always have at least one member with
admin-level access to manage the accounts.
@silva-fj silva-fj requested a review from a team March 7, 2025 10:02
Copy link

linear bot commented Mar 7, 2025

@silva-fj silva-fj changed the title P 1366 improve omniaccount creation and permissions Improve omni-account creation and permissions Mar 7, 2025
Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@Kailai-Wang Kailai-Wang merged commit 4a0a1f3 into dev Mar 8, 2025
20 checks passed
@Kailai-Wang Kailai-Wang deleted the p-1366-improve-omniaccount-creation-and-permissions branch March 8, 2025 16:30
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