Prevent review requests created with history from adding regular diffs
Review Request #9852 — Created April 3, 2018 and submitted
We now have a notion of a review request that is created with history
support. A review request created with this flag cannot have a regular
diff attached to it. Instead, an empty DiffSet must be created and
commits attached to that. (Support for which is coming in another
patch.)This option is now specified at review request creation time and cannot
be changed once the review request is created (i.e., aftersave()
is
called and the primary key has been assigned). It can be specified via
a new field on the review request resources which defaults to the old
(i.e., no history) behaviour.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
Needs to be the full path. |
chipx86 | |
Missing ugettext(). |
chipx86 | |
Is this going to be seen by end users ever? If so, we shouldn't be talking DiffSets and DiffCommits, and … |
chipx86 | |
Needs to be the full module path. |
chipx86 | |
This will be just a tad more clear with "... cannot both be set to True". |
chipx86 | |
Missing ending paren. |
chipx86 | |
This would probably be better as: return (self.extra_data and self.extra_data.get(..., False)) |
chipx86 | |
Can you also have this check the resulting errors? |
chipx86 | |
This should check the message. |
chipx86 | |
Can you group those create_ flags together? |
chipx86 | |
Spaces around *. |
chipx86 | |
Should this be two tests? |
chipx86 | |
This should check the error. |
chipx86 | |
Here, too. |
chipx86 | |
Should have ~ at the beginning. These are annoyingly long, and means this must be kept up-to-date. Maybe just have … |
chipx86 | |
We can probably just talk about publishing rather than have a long line for the function reference. |
chipx86 | |
Needs to be the full reference. |
chipx86 | |
Can you have this say explicitly that "This field cannot be set if create_with_history is set" ? |
chipx86 | |
And similar here. |
chipx86 | |
Can you put the create_ arguments together? |
chipx86 | |
Can you have this check the "reason" message? |
chipx86 | |
Two blank lines. |
chipx86 | |
Can you have this check the "reason" message? |
chipx86 | |
This can fit on one line. |
chipx86 | |
This doesn't need to be indented. item_rsp['extra_data'] can fit right after the assertEqual(. |
chipx86 | |
F401 'django.http.HttpRequest' imported but unused |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
F811 redefinition of unused 'test_get_dvcs_feature_disabled' from line 1569 |
reviewbot | |
Should be ValueError |
david | |
typo: mulitple |
david | |
typo: mulitple |
david | |
typo: mulitple |
david | |
Missing localization. |
chipx86 | |
"STATUSES" |
chipx86 | |
Extra blank line. |
chipx86 | |
"associated" |
chipx86 | |
This needs to explicitly use ugettext(). |
chipx86 | |
Missing a trailing comma. (So is the one above.) |
chipx86 | |
Should be assertFalse |
chipx86 | |
Typo: "creatd" -> "created" |
chipx86 | |
This fits on one line. |
chipx86 | |
Same here. |
chipx86 | |
This should say that one based on the local_site_name attr will be provided if not specified here. |
chipx86 | |
We should capitalize the field names. |
chipx86 | |
This can be split across lines. |
chipx86 | |
This should use :py:attr. |
chipx86 |
-
-
-
-
Is this going to be seen by end users ever? If so, we shouldn't be talking DiffSets and DiffCommits, and need to rethink what we're telling users.
-
-
-
-
-
-
-
-
-
-
-
-
Should have
~
at the beginning.These are annoyingly long, and means this must be kept up-to-date. Maybe just have this refer to the list of status on the class (with a reference to it).
(Also, these would be
:py:attr
, not:py:data
). -
-
-
-
-
-
-
-
-
-
- Change Summary:
-
Addressed feedback.
- Commit:
-
7ad09adc5caecf78c422f0357d746f3324e66bbcea37078bc487c3b48d91a06d821bea6491279336
- Diff:
-
Revision 2 (+406 -22)
- Change Summary:
-
flake8
- Commit:
-
ea37078bc487c3b48d91a06d821bea6491279336d80ed93995904316845857da1bebaabf0867bd69
- Diff:
-
Revision 3 (+405 -22)
Checks run (2 succeeded)
- Change Summary:
-
Rebasing.
- Commit:
-
d80ed93995904316845857da1bebaabf0867bd69aab1f9526e6d087fa4240c74420da7a3554ef98c
- Diff:
-
Revision 4 (+405 -22)
Checks run (2 succeeded)
- Change Summary:
-
Catch ValueError from ReviewRequest.objects.create() and return INVALID_FORM_DATA. Add unit tests.
- Commit:
-
aab1f9526e6d087fa4240c74420da7a3554ef98c7e0d7f02b6229b04bfa6847e85a327d5f485aac0
- Diff:
-
Revision 5 (+454 -22)
Checks run (2 succeeded)
- Change Summary:
-
Hide DVCS fields when the feature is disabled. Do not allow creation of DVCS review requests when feature is disabled.
- Commit:
-
7e0d7f02b6229b04bfa6847e85a327d5f485aac0bc63b1a7f058833236c9eeda538ab31e0dd15897
- Diff:
-
Revision 6 (+573 -22)
- Change Summary:
-
Fix unit test.
- Commit:
-
bc63b1a7f058833236c9eeda538ab31e0dd15897e08693a04ec602d4fcdd8badaaed81e3a0928e70
- Diff:
-
Revision 7 (+573 -22)
Checks run (2 succeeded)
- Change Summary:
-
Formatting.
- Commit:
-
e08693a04ec602d4fcdd8badaaed81e3a0928e7005607fcda98af4d77624eb9b5a27f5f8ce4b6b43
- Diff:
-
Revision 8 (+577 -22)
Checks run (2 succeeded)
- Change Summary:
-
Require repository when create_with_history=True
- Commit:
-
05607fcda98af4d77624eb9b5a27f5f8ce4b6b4370699dc04551f6df99706c91d98df715ffaa7324
- Diff:
-
Revision 9 (+629 -22)
Checks run (2 succeeded)
- Change Summary:
-
Addressed David's feedback. Depend on /r/9899 to fix unit tests.
- Depends On:
-
- Commit:
70699dc04551f6df99706c91d98df715ffaa73247a853fed8821b7a82a97c5a21a0a4ce9b3aac53e- Diff:
Revision 10 (+629 -22)
Checks run (2 succeeded)
flake8 passed.JSHint passed.
- Change Summary:
-
Fix num queries in test
- Commit:
-
7a853fed8821b7a82a97c5a21a0a4ce9b3aac53e590db2aad07211638e3cae0063845bf60bf66301
- Diff:
-
Revision 11 (+630 -23)
Checks run (2 succeeded)
- Commit:
-
590db2aad07211638e3cae0063845bf60bf663018638fcdc69c0fa639d0442e53f820aada89c284b
- Diff:
-
Revision 12 (+636 -28)
Checks run (2 succeeded)
- Change Summary:
-
use keyword args in override_feature_check
- Commit:
-
8638fcdc69c0fa639d0442e53f820aada89c284b2fdf0aa2c32bb0a2d0285c6dfc7a5213dc91e0b2
- Diff:
-
Revision 13 (+636 -28)
Checks run (2 succeeded)
- Commit:
-
2fdf0aa2c32bb0a2d0285c6dfc7a5213dc91e0b28bb472eb6822c5c61c82f2cc8f6f92e84f36d196
- Diff:
-
Revision 14 (+636 -28)
Checks run (2 succeeded)
- Change Summary:
-
addressed feedback
- Commit:
-
8bb472eb6822c5c61c82f2cc8f6f92e84f36d196ebe75b56914cb72e4196bf2799e93329926d7c47
- Diff:
-
Revision 15 (+638 -30)
Checks run (2 succeeded)
- Change Summary:
-
Addressed Christian's issues.
- Commit:
-
ebe75b56914cb72e4196bf2799e93329926d7c470bd5e31ef95036ce3bcb0fd9520d666b2b9f96f5
- Diff:
-
Revision 16 (+637 -28)