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

refactor: store holder role in user role mapping table #857

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

KulkarniShashank
Copy link
Contributor

What

Refactor the code to store the holder role in the user role mapping table.

Why

Storing the holder role in a dedicated user role mapping table enhances maintainability, scalability, and clarity in role management.

How

  • Created a new user role mapping table to store user roles.
  • Updated the existing code to insert and retrieve holder roles from the new table.
  • Modified related functions and queries to accommodate the new structure.
  • Added necessary migrations to update the database schema.

Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
@KulkarniShashank KulkarniShashank self-assigned this Jul 18, 2024
@KulkarniShashank KulkarniShashank added the enhancement New feature or request label Jul 18, 2024
@KulkarniShashank KulkarniShashank linked an issue Jul 18, 2024 that may be closed by this pull request
5 tasks
Copy link

Copy link
Contributor

@tipusinghaw tipusinghaw left a comment

Choose a reason for hiding this comment

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

LGTM

@KulkarniShashank KulkarniShashank merged commit 9fc7184 into develop Jul 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: holder role guard
2 participants