You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drafts is a special always-open commitfest for the purpose of holding
and testing draft patch submissions. Having such a holding area should
make it easier for people to keep track of patchsets they're not quite
ready to submit for review.
Internally, Drafts is assigned a static ID of zero. This is chosen
because a) it does not overlap with Django's default AutoField sequence,
which begins at one, and b) it requires no updates to the current URL
patterns, which match nonnegative integers.
The Drafts entry has the special status STATUS_DRAFT so that it does not
conflict with pre-existing coded assumptions on what "open", "future",
etc. mean. STATUS_DRAFT CFs are excluded from the "num_cfs" count for a
patch.
The new /close/draft handler is added to swap patches into Drafts.
Patches are then removed by moving them to the next open CF, or by
closing as usual.
Prior to this patch:
- CFs with IDs less than the current in-progress CF could safely be
assumed closed,
- patches only ever moved forward through increasing CF IDs, and
- the latest CF start date determined a patch's "current" CF.
These assumptions all break under the current model. They have been
modified:
- use STATUS_CLOSED specifically when deciding whether a CF is closed
- when moving a patch between CFs, allow for the possibility of an
existing entry in the junction table
- a patch's "current" CF is determined by its latest entry date
TODO:
- ensure all prior assumptions on CF ID are cleaned up
Copy file name to clipboardExpand all lines: media/commitfest/js/commitfest.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,11 @@ function verify_next() {
18
18
'Are you sure you want to move this patch to the next commitfest?\n\nThis means the patch will be marked as closed in this commitfest, but will automatically be moved to the next one. If no further work is expected on this patch, it should be closed with "Rejected" or "Returned with Feedback" instead.\n\nSo - are you sure?',
19
19
);
20
20
}
21
+
functionverify_draft(){
22
+
returnconfirm(
23
+
'Are you sure you want to move this patch to Drafts?\n\nThis means the patch will be marked as closed in this commitfest. Its status will be reset to Waiting on Author, and it will remain in Drafts until it is closed or moved to the next open commitfest.\n\nSo - are you sure?',
0 commit comments