-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Various Merge Base fixes #10786
Various Merge Base fixes #10786
Conversation
zeripath
commented
Mar 20, 2020
•
edited
Loading
edited
- Allow PRs with deleted base branches to still show diff
- Fix broken merge base migration in v128 for merged PR. Related to [Bug] Merged PRs have their commits and files changed metadata 'zeroed'... sometimes. #10766
Codecov Report
@@ Coverage Diff @@
## master #10786 +/- ##
========================================
Coverage 43.45% 43.46%
========================================
Files 592 593 +1
Lines 82905 83005 +100
========================================
+ Hits 36027 36074 +47
- Misses 42402 42451 +49
- Partials 4476 4480 +4
Continue to review full report at Codecov.
|
It's better to add some tests. |
Tests? Where can we put them? I'd love it if we had tests for migrations but we don't have infrastructure for them. I'm happy to begin doing that but it's going to be a huge PR. |
We can add a function on |
This function should only be used in the migration otherwise we should simply be storing the actual MergeBase used for PRs. There's no reason to have to recalculate it. Ideally this fixed migration would only run on PRs that were merged before v128 was run. |
@lunny needs your review |
Please resolve conflicts |
conflicts resolved. |
not anymore :P |
eurgh we need a better way of doing migrations! |
conflicts resolved again ... 😛 |
@lunny need your approval |
Just tested migration v134.go on copy of my production server and it does fix broken PR's that I had |
Please send backport |