Support running tools manually
Review Request #10316 — Created Nov. 8, 2018 and discarded
Support running tools attached to status updates manually, along with
retrying status updates in an error state.Adds a new signal hook for the manual run feature that will update
previous status updates that have not been run yet or need a rerun.
Manual testing has been done (waiting on testing framework). By adding
multiple integrations for different types of bots, running some
manually, and retrying some.
Description | From | Last Updated |
---|---|---|
Can you rewrite your summary in the imperitive mood, i.e. as a command? If you substitute your summary into the … |
|
|
Looks good to me and reads well. |
![]() |
|
This needs a a help_text= kwarg to describe what exactly this means. Maybe we should call this manually_run_only and change … |
|
|
This should go at the top of the function and there should be a blank line after. |
|
|
E303 too many blank lines (2) |
![]() |
|
E303 too many blank lines (2) |
![]() |
|
Can we call this _get_maching_configs ? We call them configurations in the docstring. |
|
|
Format as: Yields: tuple: A 3-tuple of the following: * The tool model to use (:py:class:`reviewbotext.models.Tool`). * The tool options … |
|
|
Can you format as: for tool, tool_options, review_settings in self._get_matching_setups( review_request): # ... You can also pull out the function … |
|
|
No blank line. |
|
|
Same comment as above. |
|
|
Let's put this at the end of the tuple. I expect it to be used less often than the other … |
|
|
Lets just say "configurations" instead of "tool, review configs" |
|
|
All the other descriptions are lower case. Do we want this to be too? Also, shouldn't this (and all other … |
|
|
same here re: translation. If we end up using translated descriptions and we are using them in multiple places, they … |
|
-
-
extension/reviewbotext/forms.py (Diff revision 1) This needs a a
help_text=
kwarg to describe what exactly this means.Maybe we should call this
manually_run_only
and change the label to "Only run this tool manually" or similar? -
extension/reviewbotext/integration.py (Diff revision 1) This should go at the top of the function and there should be a blank line after.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+137 -11) |
Checks run (1 failed, 1 succeeded)
flake8
Change Summary:
Update timestamp when running/rerunning tool
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+139 -11) |
Checks run (1 failed, 1 succeeded)
flake8
Change Summary:
Removed WIP tag, attmpted to clean up duplicate code with a new function that generates valid setups.
Summary: |
|
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||||||||
Testing Done: |
|
|||||||||||||||||||||||||||||||||||||||
Commit: |
|
|||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 4 (+155 -49) |
Checks run (2 succeeded)
-
-
Can you rewrite your summary in the imperitive mood, i.e. as a command? If you substitute your summary into the following template, it should be a correct sentence.
This patch will <summary>
e.g. "Support running tools manually"
-
extension/reviewbotext/integration.py (Diff revision 4) Can we call this
_get_maching_configs
? We call themconfigurations
in the docstring. -
extension/reviewbotext/integration.py (Diff revision 4) Format as:
Yields: tuple: A 3-tuple of the following: * The tool model to use (:py:class:`reviewbotext.models.Tool`). * The tool options (:py:class:`dict`). * The review settings (:py:class:`dict`).
Could you also elaborate on what
review_settings
actually is in that? -
extension/reviewbotext/integration.py (Diff revision 4) Can you format as:
for tool, tool_options, review_settings in self._get_matching_setups( review_request): # ...
You can also pull out the function call into a var and iterate over that, e.g.
setups = self._get_matching_setups(review_request) for a, b, c in setups: # ...
-
-
Change Summary:
Updated description and documentation wording, moved missing configuration check into main code, minor formatting changes.
Description: |
|
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
|||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 5 (+165 -47) |
Checks run (2 succeeded)
-
-
extension/reviewbotext/forms.py (Diff revision 5) Let's put this at the end of the tuple. I expect it to be used less often than the other options.
Change Summary:
Reordered tool options in form
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 6 (+165 -47) |
Checks run (2 succeeded)
-
-
extension/reviewbotext/integration.py (Diff revision 6) Lets just say "configurations" instead of "tool, review configs"
-
extension/reviewbotext/integration.py (Diff revision 6) All the other descriptions are lower case. Do we want this to be too?
Also, shouldn't this (and all other descriptions) be marked for translation?
-
extension/reviewbotext/integration.py (Diff revision 6) same here re: translation.
If we end up using translated descriptions and we are using them in multiple places, they should be constants somewhere so they stay in sync with one another
Change Summary:
Made descriptions translatable, used constants to maintain consistency, fixed capitalization.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 7 (+168 -47) |
Checks run (2 succeeded)
Change Summary:
Mirroring changes in other review request
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 8 (+168 -47) |