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

chore(auth): add auth-related tables and migration #4113

Merged
merged 22 commits into from
Aug 8, 2024
Merged

Conversation

axiomofjoy
Copy link
Contributor

@axiomofjoy axiomofjoy commented Aug 2, 2024

Adds the following database tables:

  • user_roles
  • users
  • api_keys
  • audit_api_keys

Adds migrations to create these tables, to populate the user_roles with system, admin, and member roles, and to populate the users table with a system user and an initial admin user.

Adds temporary hatch commands for development purposes:

  • hatch run auth:link to add a symlink to the auth migration.
  • hatch run auth:unlink to remove that symlink.
  • hatch run auth:up to run the auth up-migration.
  • hatch run auth:down to run the auth down-migration.

resolves #4043

@axiomofjoy axiomofjoy changed the title chore: add auth-related tables and migration chore(auth): add auth-related tables and migration Aug 2, 2024
@axiomofjoy axiomofjoy force-pushed the xander/auth-tables branch 2 times, most recently from fefde2f to 026fc78 Compare August 8, 2024 01:29
@axiomofjoy axiomofjoy marked this pull request as ready for review August 8, 2024 02:24
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 8, 2024
Copy link
Contributor

@mikeldking mikeldking left a comment

Choose a reason for hiding this comment

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

Will pull down today and try it out!

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
axiomofjoy and others added 2 commits August 8, 2024 11:53
Co-authored-by: Mikyo King <mikyo@arize.com>
Co-authored-by: Mikyo King <mikyo@arize.com>
@axiomofjoy axiomofjoy merged commit 9922eb2 into main Aug 8, 2024
12 checks passed
@axiomofjoy axiomofjoy deleted the xander/auth-tables branch August 8, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[auth] add auth-related tables
2 participants