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

Extend upload endpoint to accept all formats specified in openAPI #501

Open
joyceyuu opened this issue Feb 16, 2020 · 0 comments
Open

Extend upload endpoint to accept all formats specified in openAPI #501

joyceyuu opened this issue Feb 16, 2020 · 0 comments
Assignees

Comments

@joyceyuu
Copy link
Contributor

That's the file views/project.py.
Method project_clks_post needs to support both upload types.
The plan is to give the new format the same treatment as the old one.
That is:

  • take the data as-is and save it in a file.
  • call the handle_raw_upload task to deal with it. (a separate issue)

Additionally, we would also have to check that the uploaded data is what we expect. Either the json has a 'clks' element, or a 'clknblocks' one. That has to match the 'use_blocking' flag in the project info in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant