Skip to content
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

Provide dataset summary info on upload #3480

Merged
merged 2 commits into from
Jul 8, 2023

Conversation

dbutenhof
Copy link
Member

@dbutenhof dbutenhof commented Jul 5, 2023

PBENCH-1204

This stems from a request from the UI to help optimize a partial refresh after using the relay upload dialog, by providing identification of the new dataset. Although a client using the traditional PUT /upload already knows the name and MD5, the returned information may be helpful.

This also reports the tarball download URI (which is the best encapsulation of the results "identity") in the response location header to make it easy to retrieve.

@dbutenhof dbutenhof added Server Dashboard Of and relating to the Dashboard GUI API Of and relating to application programming interfaces to services and functions labels Jul 5, 2023
@dbutenhof dbutenhof self-assigned this Jul 5, 2023
PBENCH-1204

This stems from a request from the UI to help optimize a partial refresh after
using the relay upload dialog, by providing identification of the new dataset.
Although a client using the traditional `PUT /upload` already knows the name
and MD5, the returned information may be helpful.

This is a DRAFT partly because I added a validation of the new information to
the functional test, which I've renamed in distributed-system-analysis#3473 ... I'll do that merge here
after it's gone in.

It's also DRAFT because while I like the idea of including URIs (and in
particular this addresses a certain request regarding accessibility of the
tarball), I'm not really sure which URIs to include or in what form. I'm
certain that one or two people might possibly have opinions on this subject!
Improve `contents` functional test to verify the URI values. Use `location`
response header to return the tarball URI in upload, and verify that.
@dbutenhof dbutenhof marked this pull request as ready for review July 6, 2023 14:49
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dbutenhof dbutenhof merged commit ec6f42b into distributed-system-analysis:main Jul 8, 2023
@dbutenhof dbutenhof deleted the upinfo branch July 8, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Of and relating to application programming interfaces to services and functions Dashboard Of and relating to the Dashboard GUI Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants