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

New Django Command: Security & Accounts migration for new collections #6265

Open
grantfitzsimmons opened this issue Feb 20, 2025 · 0 comments · May be fixed by #6308
Open

New Django Command: Security & Accounts migration for new collections #6265

grantfitzsimmons opened this issue Feb 20, 2025 · 0 comments · May be fixed by #6308
Labels
Migration Prs that contain migration

Comments

@grantfitzsimmons
Copy link
Member

Summary

We need a Django command that automates the migration of security and account settings from Specify 6 to Specify 7. This command should create the appropriate user roles and policies and assign them to users based on their Specify 6 permissions.

Many of the actions done when the Django app accounts is run the first time is needed every time a new collection is added. There needs to be some mechanism to run this again when new collections have been added.

Acceptance Criteria

  • The command should read user permissions from Specify 6 and map them to the new roles and policies in Specify 7.
  • It should automatically create any necessary roles and policies that do not already exist.
  • The command must log all changes made during the migration process.
  • Ensure that users are assigned to the correct roles without overwriting any manual adjustments made in Specify 7 for the other collections.

Implementation Details

  • Suggested command name: migrate_security_accounts
@grantfitzsimmons grantfitzsimmons added the Migration Prs that contain migration label Feb 20, 2025
@grantfitzsimmons grantfitzsimmons changed the title New Django App: Security & Accounts migration for new collections New Django Command: Security & Accounts migration for new collections Mar 5, 2025
@acwhite211 acwhite211 linked a pull request Mar 7, 2025 that will close this issue
68 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Migration Prs that contain migration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant