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 predictor/collection upload route #611
Conversation
5372b79
to
5489c9e
Compare
Codecov Report
@@ Coverage Diff @@
## master #611 +/- ##
==========================================
- Coverage 72.54% 70.79% -1.75%
==========================================
Files 55 56 +1
Lines 2065 2164 +99
==========================================
+ Hits 1498 1532 +34
- Misses 567 632 +65
Continue to review full report at Codecov.
|
The upload route is working (still need to test Celery task). The correct request looks like:
|
Note the repetition of parameters for runs and event files, but comma separated values for runs |
Upload route is working! Here is a summary.
Example:
Returns:
This creates a new To check the status, make a GET request:
which might return something like this if it succeeds:
You can now use those predictors like normal, and they will display for all users (maybe this is not what we want to do? might want to have this as an option private/public?) To see which collections you've created do a
|
WDYT? @rwblair Does this seem reasonable for the frontend? Minor design quibbles:
To do still:
|
I added some basic tests. Can't fully test because Flask doesn't write out to the test_db, so Celery can't see it. At a separate time, we should fix this to allow for real testing of Celery tasks. |
Note: because of sequential db changes, this depends on #607 to be merged.