Merge ~cjwatson/launchpad:resubmit-vote-name into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: e4a40e3a67853e3dbdf6aff87c2f562593a0950e
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:resubmit-vote-name
Merge into: launchpad:master
Diff against target: 51 lines (+6/-5)
3 files modified
lib/canonical/launchpad/icing/css/colours.scss (+1/-1)
lib/lp/code/browser/branchmergeproposal.py (+2/-1)
lib/lp/code/enums.py (+3/-3)
Reviewer Review Type Date Requested Status
Thiago F. Pappacena (community) Approve
Review via email: mp+399648@code.launchpad.net

Commit message

Rename "Resubmit" vote to "Needs Resubmitting"

Description of the change

Merge proposal submitters often interpret the "Resubmit" vote to mean "I have made the requested changes to this merge proposal and would like to resubmit it for review", whereas in fact it's intended to be cast by a reviewer and means "the idea might be sound but the implementation needs significant rework". Rename it so that it's clearer that it goes with the "Needs Fixing" and "Needs Information" votes.

To post a comment you must log in.
Revision history for this message
Thiago F. Pappacena (pappacena) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/canonical/launchpad/icing/css/colours.scss b/lib/canonical/launchpad/icing/css/colours.scss
2index 6b4c041..64f3a72 100644
3--- a/lib/canonical/launchpad/icing/css/colours.scss
4+++ b/lib/canonical/launchpad/icing/css/colours.scss
5@@ -452,7 +452,7 @@
6 color: #930;
7 }
8
9- .voteDISAPPROVE, .voteRESUBMIT {
10+ .voteDISAPPROVE, .voteNEEDS_RESUBMITTING {
11 color: red;
12 }
13
14diff --git a/lib/lp/code/browser/branchmergeproposal.py b/lib/lp/code/browser/branchmergeproposal.py
15index a72cf2a..1662539 100644
16--- a/lib/lp/code/browser/branchmergeproposal.py
17+++ b/lib/lp/code/browser/branchmergeproposal.py
18@@ -860,7 +860,8 @@ class DecoratedCodeReviewVoteReference:
19 CodeReviewVote.ABSTAIN: CodeReviewVote.ABSTAIN.title,
20 CodeReviewVote.NEEDS_INFO: CodeReviewVote.NEEDS_INFO.title,
21 CodeReviewVote.NEEDS_FIXING: CodeReviewVote.NEEDS_FIXING.title,
22- CodeReviewVote.RESUBMIT: CodeReviewVote.RESUBMIT.title,
23+ CodeReviewVote.NEEDS_RESUBMITTING: (
24+ CodeReviewVote.NEEDS_RESUBMITTING.title),
25 }
26
27 def __init__(self, context, user, users_vote):
28diff --git a/lib/lp/code/enums.py b/lib/lp/code/enums.py
29index d2a9262..f950d5e 100644
30--- a/lib/lp/code/enums.py
31+++ b/lib/lp/code/enums.py
32@@ -1079,7 +1079,7 @@ class CodeReviewVote(DBEnumeratedType):
33 'NEEDS_INFO',
34 'ABSTAIN',
35 'DISAPPROVE',
36- 'RESUBMIT',
37+ 'NEEDS_RESUBMITTING',
38 )
39
40 DISAPPROVE = DBItem(1, """
41@@ -1101,8 +1101,8 @@ class CodeReviewVote(DBEnumeratedType):
42 Reviewer wants the proposed merge to happen.
43 """)
44
45- RESUBMIT = DBItem(4, """
46- Resubmit
47+ NEEDS_RESUBMITTING = DBItem(4, """
48+ Needs Resubmitting
49
50 Reviewer thinks that the idea might be sound but the implementation
51 needs significant rework.

Subscribers

People subscribed via source and target branches

to status/vote changes: