Skip to content

Key migration fixes#7991

Draft
acwhite211 wants to merge 8 commits intov7_12_0_4from
key-migration-fix
Draft

Key migration fixes#7991
acwhite211 wants to merge 8 commits intov7_12_0_4from
key-migration-fix

Conversation

@acwhite211
Copy link
Copy Markdown
Member

@acwhite211 acwhite211 commented Apr 17, 2026

Fixes #

Rerunning run_key_migration_functions no longer grants collection access to users who did not previously have it. Also fixed the app resource directory duplication issue that caused institution-level app resource permissions to appear broken.

Made running the key migrations function optional at startup with RUN_KEY_MIGRATION_ON_STARTUP=0 in the .env file.

Split default permission initialization from legacy user/collection permission migration, so now the key migrations used to run only the default permission seeding path, not the legacy user assignment path.

Hardened discipline app resource dir repair logic to reuse legacy rows with blank usertype, normalize those rows, consolidate duplicate discipline directories, and move persisted app resources/viewsets onto the canonical directory before deleting duplicates

Added a follow-up migration to repair existing duplicated discipline app resource dirs.

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list

Testing instructions

TBD

@github-project-automation github-project-automation Bot moved this to 📋Back Log in General Tester Board Apr 17, 2026
@acwhite211 acwhite211 added this to the 7.12.0 milestone Apr 17, 2026
@acwhite211 acwhite211 changed the base branch from main to v7_12_0_4 April 17, 2026 18:04
@grantfitzsimmons grantfitzsimmons modified the milestones: 7.12.0, 7.12.1 Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

2 participants