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
Enh add snapshot feature WIP #900
base: main
Are you sure you want to change the base?
Conversation
…ature # Conflicts: # server/devpi_server/model.py
@fschulze wdyt of this ? |
+ accumulate and return failures of particular project-version.
server/devpi_server/main.py
Outdated
@@ -462,6 +462,10 @@ def create_app(self): | |||
pyramid_config.add_view_deriver(self.view_deriver, under=INGRESS) | |||
pyramid_config.add_view_predicate('content_type', ContentTypePredicate) | |||
|
|||
# snapshoting | |||
pyramid_config.add_route("/+snapshot/{user}/{index}", "/+snapshot/{user}/{index}") |
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 would prefer the COPY
HTTP method, if you have good arguments against that, then I would like /{user}/{index}/+copy
. Snapshotting should be an option selected with ?snapshot
.
As a summary:
I'm undecided whether we should allow this for mirror indexes. I currently lean towards forbidding it. |
55f3acf
to
4f42341
Compare
FYI, I rebased and squashed your branch at https://github.com/fschulze/devpi/tree/enh-add-snapshot-feature. I cherry picked some changes like the |
Would solve #897