"pk": 5,
"model": "commitfest.patchstatus",
"fields": {
- "statusstring": "Returned with Feedback",
+ "statusstring": "Moved to next CF",
"sortkey": 30
}
},
"statusstring": "Rejected",
"sortkey": 50
}
+ },
+ {
+ "pk": 7,
+ "model": "commitfest.patchstatus",
+ "fields": {
+ "statusstring": "Returned with Feedback",
+ "sortkey": 50
+ }
}
-]
\ No newline at end of file
+]
STATUS_AUTHOR=2
STATUS_COMMITTER=3
STATUS_COMMITTED=4
- STATUS_RETURNED=5
+ STATUS_NEXT=5
STATUS_REJECTED=6
+ STATUS_RETURNED=7
_STATUS_CHOICES=(
(STATUS_REVIEW, 'Needs review'),
(STATUS_AUTHOR, 'Waiting on Author'),
(STATUS_COMMITTER, 'Ready for Committer'),
(STATUS_COMMITTED, 'Committed'),
- (STATUS_RETURNED, 'Returned with Feedback'),
+ (STATUS_NEXT, 'Moved to next CF'),
(STATUS_REJECTED, 'Rejected'),
+ (STATUS_RETURNED, 'Returned with feedback')
)
_STATUS_LABELS=(
(STATUS_REVIEW, 'default'),
(STATUS_AUTHOR, 'primary'),
(STATUS_COMMITTER, 'info'),
(STATUS_COMMITTED, 'success'),
- (STATUS_RETURNED, 'warning'),
+ (STATUS_NEXT, 'warning'),
(STATUS_REJECTED, 'danger'),
+ (STATUS_RETURNED, 'danger'),
)
OPEN_STATUSES=(STATUS_REVIEW, STATUS_AUTHOR, STATUS_COMMITTER)
OPEN_STATUS_CHOICES=[x for x in _STATUS_CHOICES if x[0] in OPEN_STATUSES]
function verify_reject() {
- return confirm('Are you sure you want to close this patch as Rejected?\n\nThis should only be done when a patch will never be applied - if more work is needed, it should instead be set to "Returned with Feedback".\n\nSo - are you sure?');
+ return confirm('Are you sure you want to close this patch as Rejected?\n\nThis should only be done when a patch will never be applied - if more work is needed, it should instead be set to "Returned with Feedback" or "Moved to next CF".\n\nSo - are you sure?');
}
function verify_returned() {
- return confirm('Are you sure you want to close this patch as Returned with Feedback?\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" istead.\n\nSo - are you sure?');
+ return confirm('Are you sure you want to close this patch as Returned with Feedback?\n\nThis should be done if the patch is expected to be finished at some future time, but not necessarily in the next commitfest. If work is undergoing and expected in the next commitfest, it should instead be set to "Moved to next CF".\n\nSo - are you sure?');
+}
+function verify_next() {
+ return confirm('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 automaticalliy 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?');
}
-
function findLatestThreads() {
$('#attachThreadListWrap').addClass('loading');
$('#attachThreadSearchButton').addClass('disabled');
<li role="presentation" class="dropdown-header">Closed statuses</li>
<li role="presentation"><a href="close/reject/" onclick="return verify_reject()">Rejected</a></li>
<li role="presentation"><a href="close/feedback/" onclick="return verify_returned()">Returned with feedback</a></li>
+ <li role="presentation"><a href="close/next/" onclick="return verify_next()">Move to next CF</a></li>
<li role="presentation"><a href="close/committed/" onclick="return flagCommitted({%if patch.committer%}'{{patch.committer}}'{%elif is_committer%}'{{user.username}}'{%else%}null{%endif%})">Committed</a></li>
</ul>
</div>
poc.status = PatchOnCommitFest.STATUS_REJECTED
elif status == 'feedback':
poc.status = PatchOnCommitFest.STATUS_RETURNED
+ elif status == 'next':
+ poc.status = PatchOnCommitFest.STATUS_NEXT
# Figure out the commitfest to actually put it on
newcf = CommitFest.objects.filter(status=CommitFest.STATUS_OPEN)
if len(newcf) == 0:
url(r'^(\d+)/(\d+)/edit/$', 'commitfest.views.patchform'),
url(r'^(\d+)/new/$', 'commitfest.views.newpatch'),
url(r'^(\d+)/(\d+)/status/(review|author|committer)/$', 'commitfest.views.status'),
- url(r'^(\d+)/(\d+)/close/(reject|feedback|committed)/$', 'commitfest.views.close'),
+ url(r'^(\d+)/(\d+)/close/(reject|feedback|committed|next)/$', 'commitfest.views.close'),
url(r'^(\d+)/(\d+)/reviewer/(become|remove)/$', 'commitfest.views.reviewer'),
url(r'^(\d+)/(\d+)/committer/(become|remove)/$', 'commitfest.views.committer'),
url(r'^(\d+)/(\d+)/(comment|review)/', 'commitfest.views.comment'),