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

Update User Table Schema #2261

Open
alonp99 opened this issue Mar 31, 2024 · 0 comments
Open

Update User Table Schema #2261

alonp99 opened this issue Mar 31, 2024 · 0 comments

Comments

@alonp99
Copy link
Collaborator

alonp99 commented Mar 31, 2024

Task Definition

What?
Update the user table in the database to include a new column role and mark the existing roles column as deprecated.

Why?
To transition from potentially multiple roles (implied by the plural) to a singular, definitive role for each user, aligning with RBAC standards.

How?

  • Alter the user table to add a new column named role with an integer data type.
  • Use a database migration script for this alteration.
  • In the codebase, add a deprecation comment to the roles column definition to notify developers:
    /** @deprecated use role instead */
  • Ensure the migration script includes setting a default role (e.g., VIEWER) for existing users without a defined role.

Acceptance Criteria:

  • role column exists in the user table.
  • roles column is marked as deprecated in the codebase.
  • Existing users without a role have been assigned the VIEWER role.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant