-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Migration failure during reaction migration from gitea #13344
Migration failure during reaction migration from gitea #13344
Conversation
A failure during migrating reactions should not cause failure of migration. Signed-off-by: Andrew Thornton <[email protected]>
Signed-off-by: Andrew Thornton <[email protected]>
I've made this backport to v1.12 - only for the second & third commit in this PR - the reactions API should check the correct permission. |
🚀 |
🚀 |
Codecov Report
@@ Coverage Diff @@
## master #13344 +/- ##
==========================================
- Coverage 42.11% 42.11% -0.01%
==========================================
Files 689 689
Lines 75845 75851 +6
==========================================
Hits 31943 31943
- Misses 38668 38674 +6
Partials 5234 5234
Continue to review full report at Codecov.
|
* Migrating reactions is just not that important A failure during migrating reactions should not cause failure of migration. Signed-off-by: Andrew Thornton <[email protected]> * When checking issue reactions check the correct permission Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]>
* Migrating reactions is just not that important A failure during migrating reactions should not cause failure of migration. Signed-off-by: Andrew Thornton <[email protected]> * When checking issue reactions check the correct permission Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]>
Damn this is missing the last commit! There's another place in the same file that has the wrong check |
Is also the wrong permission check. It appears that the last commit in the branch didn't get pushed up - not sure why! |
* Migrating reactions is just not that important A failure during migrating reactions should not cause failure of migration. Signed-off-by: Andrew Thornton <[email protected]> * When checking issue reactions check the correct permission Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: zeripath <[email protected]>
Unfortunately my final push to go-gitea#13344 didn't register - or I failed to push it properly. GetIssueCommentReactions in routers/api/v1/repo/issue_reaction.go also makes the same mistake.
v1.12 backport is #13346 @techknowlogick why did you remove the label? |
* Migration failure during reaction migration from gitea (#13344) * Migrating reactions is just not that important A failure during migrating reactions should not cause failure of migration. Signed-off-by: Andrew Thornton <[email protected]> * When checking issue reactions check the correct permission Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]> * Delete gitea_downloader.go * Backport #13349 Unfortunately my final push to #13344 didn't register - or I failed to push it properly. GetIssueCommentReactions in routers/api/v1/repo/issue_reaction.go also makes the same mistake. Co-authored-by: zeripath <[email protected]>
There are two problems in #13262 which is a situation whereby a migration fails due to reactions migration failing.
Fix #13262
Signed-off-by: Andrew Thornton [email protected]