Fix adding branch as protected to not allow pushing to it - #2556
Conversation
|
LGTM |
|
@lafriks IMO there should be a migration from old protected branches as well, since existing protected branches do not work after that change. |
|
@daviian they will not work only for those who added protected branches in 1.2-rcX. Protected branches when upgrading from 1.1 to 1.2 they will work and adding new migration here would break upgrade path from 1.2 to 1.3 later |
|
@lafriks But when upgrading from 1.1 to 1.2 existing protected branches have |
|
I would suggest a quick'n'dirty workaround to release v1.2 since it is already fixed in current master. Simply remove the |
|
@daviian in fact, canpush never be used, when remove from protected branch, the database record will be deleted not updated canpush to false. |
|
that means, this PR will not break anything, I think. |
|
also this column will be needed anyway later to be able to set that branch can be pushed to always but are protected only from deletion |
8d8e0e2 to
918f0d4
Compare
|
@lafriks Tested and works like a charm 👍 |
|
LGTM |
|
Make LG-TM work |
|
Make LG-TM work again |
Fixes #2517
This PR targets 1.2 branch as bug is present only in it. In master branch it works fine as @lunny did rewrite protected branch UI & functionality with whitelist support