Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add ability to rebuild a specific build #8227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to rebuild a specific build #8227
Changes from 14 commits
13a9e7c
d0e715c
1f74b9a
3a6d1e6
a2c731a
423c3d8
5d51f58
0a0221e
57ee3dc
53cc567
2fe7612
8ed2e44
5498605
1183f99
1e349ca
5f663d4
2f9244e
0db1c8f
4db6b34
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR, but I remember
is_admin: project
being expensive, we are using the check 3 times now. We can move it to the context instead.readthedocs.org/readthedocs/projects/views/public.py
Lines 129 to 132 in 0340604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels weird having this on the same list view, I think we could have another view
/builds/{pk}/trigger/
or similar.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a common pattern: POST to a list view to create a new object. We are using this in the same way when triggering a build for a particular version on Build List page at
readthedocs.org/readthedocs/templates/builds/build_list.html
Line 33 in 2f9244e
Seems fine to me to re-use the view and just pass
build_pk
to trigger a build for a particular version at a specific point in time.