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 DB indices blocking user renaming #290

Conversation

martastain
Copy link
Member

@martastain martastain commented Jul 22, 2024

This PR fixes database foreign keys so renaming users is handled more or less correctly. Migration is now supported for:

  • development bundles assigned to the user
  • project site settings
  • custom roots
  • site settings
  • tasks assignments

events.user_name is not migrated (probably shouldn't be)
activity feed is not updated - resource intensive, a lot of caching is involved

This unblocks user renaming, but it is still discouraged. The user rename dialog should warn the administrator that renaming user should only be used as the last resort. @Innders

@martastain martastain added the type: bug Something isn't working label Jul 22, 2024
@martastain martastain self-assigned this Jul 22, 2024
@martastain martastain linked an issue Jul 22, 2024 that may be closed by this pull request
@Innders
Copy link
Member

Innders commented Jul 22, 2024

ynput/ayon-frontend#646

@martastain martastain merged commit 708ec60 into develop Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Users: Cannot change name of users assigned to bundles (AY-5649)
2 participants