-
Notifications
You must be signed in to change notification settings - Fork 1k
Client with apiv2 (transfers in one step) #3442
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
Conversation
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.
Looks very good, though I don't know if should be released as default, but rather as an opt-in in conan_server.
Pending:
|
Please, review again @memsharded
|
@@ -17,13 +17,13 @@ def attach_to(self, app): | |||
@app.route(r.package, method=["GET"]) | |||
@app.route(r.package_recipe_revision, method=["GET"]) | |||
@app.route(r.package_revision, method=["GET"]) | |||
def get_package_snapshot(name, version, username, channel, package_id, auth_user, | |||
revision=None, p_revision=None): | |||
def get_package_file_list(name, version, username, channel, package_id, auth_user, |
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.
Maybe convert it to a dict {file: {} }, to be extensible for the future. Can be {file: None} now, but that it will understand in the future:
{file = {size=12355, md5=012312312, ...},
file2 = {....}
* Failing hard * Fixed v2 without revisions * Runner equal * typo * typo * Fixing test apiv2 * Fix test * Merged with develop * fixed jenkins conf * Renamed method * Prepared to work easier with revision and speculative metadata for files introduced in apiv2 * Fixing managing dict snapshot * Force CI
Confirmed that our Downloader class follows correctly the 302 downloads redirects.
Changelog: Feature: Experimental and initial support for the REST apiv2 that will allow transfers in one step and revisions in the future.