Repository navigation
Commit a3da33c
Allow marking an already closed patch as committed (#129)
When a patch in the open commitfest was already closed, for example as
"Returned with feedback", and a committer then marked it as committed,
this crashed with `UserInputError: Patch in state Returned with feedback
cannot be moved.`. The "committed" action first moves the patch to the
in progress commitfest (or from the draft to the regular open
commitfest) so that it gets recorded in the commitfest it was actually
committed in, but `Patch.move()` refused to move closed patches.
`Patch.move()` now takes an `allow_move_closed` argument, which the
commit action passes. Because closed statuses require a leavedate, the
new `PatchOnCommitFest` gets one when the patch it was moved from was
closed.
Co-authored-by: Jelterminator FennemAI-Neo <fennemai@jeltef.nl>1 parent 33f7288 commit a3da33c
3 files changed
Lines changed: 54 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
602 | 608 | | |
603 | 609 | | |
604 | 610 | | |
| |||
609 | 615 | | |
610 | 616 | | |
611 | 617 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
| 618 | + | |
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
| |||
625 | 627 | | |
626 | 628 | | |
627 | 629 | | |
| 630 | + | |
628 | 631 | | |
629 | 632 | | |
630 | 633 | | |
| 634 | + | |
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
634 | 638 | | |
635 | 639 | | |
636 | | - | |
637 | | - | |
| 640 | + | |
| 641 | + | |
638 | 642 | | |
639 | 643 | | |
640 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1182 | 1186 | | |
1183 | 1187 | | |
1184 | 1188 | | |
1185 | 1189 | | |
1186 | 1190 | | |
1187 | 1191 | | |
1188 | 1192 | | |
| 1193 | + | |
1189 | 1194 | | |
1190 | 1195 | | |
1191 | 1196 | | |
1192 | 1197 | | |
1193 | 1198 | | |
1194 | 1199 | | |
1195 | 1200 | | |
| 1201 | + | |
1196 | 1202 | | |
1197 | 1203 | | |
1198 | 1204 | | |
| |||
0 commit comments