Skip to content

Competition upload

Placeholder Eric Carmichael requested to merge feature/comp-upload into develop

Todo

  • Make interface for uploading

  • Competition bundle can just be a dataset!

  • Use all the same dataset upload stuff, convert it into a nice mixin

  • Fix rabbitmq, celery, etc.

  • Add a task to process these bundles in the background

    • Unpack the zip to tmp directory

    • Read the yaml and validate it

    • If YAML failed say what's wrong with it and clean up tmp folder

    • Upload each dataset and mark it as an "automatic" dataset so it doesn't show up normally, we'll have to have a checkbox for "view automatic datasets" or some such

    • Map YAML to the proper JSON request with the baby datasets that have been uploaded

    • POST to make the competition

    • If competition creation POST fails, return errors Already does from API perspective, not really useful in this view since I removed the upload button and just fire when input changes

    • If anything fails, DELETE BABY DATASETS! Scratch that, let's not do anything destructive unless absolutely necessary

  • Add a view to check the task as it's processing

  • Make the frontend display errors nicely

  • Make the frontend show a "Success! View competition" button

  • Make minio docker

Todo for storages

  • Azure
  • Minio (Local storage)
  • GCS
  • S3

Merge request reports

Loading