tagbase / tagbase-server

tagbase-server is a data management web service for working with eTUFF and nc-eTAG files.
https://oiip.jpl.nasa.gov/doc/OIIP_Deliverable7.4_TagbasePostgreSQLeTUFF_UserGuide.pdf
Apache License 2.0
7 stars 2 forks source link

Implement GET on raw data #153

Open lewismc opened 1 year ago

lewismc commented 1 year ago

Post #152 this issue will provide the Python implementation logic for getting a raw data file. Currently, io_utils#process_get_input_data writes files to /tmp, which is absolutely fine for prototyping this however we will want to implement a persistent object store for longer term, stable storage. @tagtuna is going to clarify this with the ICCAT Team.

lewismc commented 1 year ago

Use case: say an outside collaborator successfully executes one or more POST /ingest request(s). At some later stage, one of the ICCAT Team wish to see the raw file.

We should allow possibility to export file based on following spec

Change

GET /tags/{tag_id}

To

GET /tags/{tag_ids}?export=false&archive=true&format=...

Note following changes

The service will then get the raw files for these tags, by default zip them up and send to the client.