-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(core): ensure unique vcategory #54165
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
Conversation
2753200 to
49a3794
Compare
come-nc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did I miss it or is there no change apart from the unique index?
49a3794 to
d1a35bb
Compare
the removal of duplicates in the migration ? |
d1a35bb to
e78ca06
Compare
But that’s fixing the existing, but how did they get in there? |
As far as I understood, it's some very edge case where on a race condition, we cache the list of existing tags which means we can allow multiple to be created because the tag existing check won't have the most recent list. Erroring out is ok from me 🤷 |
|
/backport to stable31 |
|
/backport to stable30 |
kesselb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🙏
Signed-off-by: skjnldsv <[email protected]>
e78ca06 to
9aac182
Compare
|
The backport to # Switch to the target branch and update it
git checkout stable30
git pull origin stable30
# Create the new backport branch
git checkout -b backport/54165/stable30
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 9aac1821
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/54165/stable30Error: Failed to check for changes with origin/stable30: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
The backport to # Switch to the target branch and update it
git checkout stable31
git pull origin stable31
# Create the new backport branch
git checkout -b backport/54165/stable31
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 9aac1821
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/54165/stable31Error: Failed to check for changes with origin/stable31: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
| /** | ||
| * Make sure vcategory entries are unique per user and type | ||
| * This migration will clean up existing duplicates | ||
| * and add a unique constraint to prevent future duplicates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover comment from previous approach.
Summary