-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cache submissions in s3 (#1035)
* api to update submission in cache in s3 * feat: api to download submission from cache * transition from POST to GET for download submission from cache endpoint * added submissions in a zip file as a sozip file in s3 * added sozipfile module * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * feat: postgis func to convert geojson to flatgeobuf * docs: extra comments for geosjon_to_flatgeobuf * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * build: recrease pdm.lock with sozipfile * fix: replace all instances of zipfile with sozipfile * added metadata json file alongside submission.json in s3 bucket * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor: rename submissions crud functions for clarity * refactor: simplify update_submission_in_s3 * refactor: reorder submission logic to check for last_submission * check the last submission date from submission in s3 and compare with submission from odk * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix:submission path * update submission download logic with passing task_id as a parameter * remove: download submission from cache endpoint * updated parameter task_id to background_task_id * updated endpoint name * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * updated get data from metadata json * metadata json added outside of zipfile in s3 bucket * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor: reuse metadata_s3_path variable in submission upload --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: spwoodcock <sam.woodcock@protonmail.com>
- Loading branch information
1 parent
77ad259
commit c66f04c
Showing
7 changed files
with
282 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.