-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add endpoint /api/v1/forms/<form_id>/regenerate-submission-metadata add endpoint force json update for all submissions under current form * add async task to regenerate json for form instances refactor the /api/v1/forms/<form_id>/regenerate-submission-metadata endpoint to only trigger async task if task has failed or does not exist in cache * update method docstring * update method docstring * update docstring * update docstring * update doc strings * update code comment * update doc string * update comment * refactor code * update doc string * update doc string * update docstring * update doc string * update test case * update documentation * format documentation * fix pagination link header missing in /api/v1/data/<form_id> when sorting when sort query parameter is applied with pagination, the pagination link header was missing * update documentation add documentation for endpoint /api/v1/forms/{pk}/regenerate-submission-metadata * update documentation * fix wrongly formatted link in docs * fix linting error fix error pycodestyle: E501 / line too long (90 > 88 characters) (col 89) * fix failing tests * fix linting error fix unused argument self * re-revert 0 float value converted to int accidentially during save * readd decimal precision accidentally removed during save * fix failing tests * fix failing tests * fix failing tests * fix failing test * fix failing tests * address lint error address unused-argument, wrong-import-order * fix bug argument after * must be an iterable * fix Instance model json _date_modified, _submission_time out of sync Instance model date_modified and date_created fiels were out of sync with their aliases in the json field * fix typo * fix failing test case * fix failing tests * refactor code and fix failing tests * remove redundant method call * refactor code * address lint error address invalid-name, missing-function-docstring * update docstring * refactor code * refactor code * fix failing tests * fix typo and refactor code * remove json getter in model Instance there is already a json field present that already has the result the getter is recalculating * readd getter method removed * use helper method to read async task state * refactor code * do not set json when regenerating json asynchronously json is set in the post_save signal so setting it explicitly is unnecessary * refactor code * update comment * fix bug generator object has no attribute count bug appears when pagination is used with sort and query query paramaters * convert endpoint /api/v1/forms/<form_id>/regenerate-submission-metadata into command convert endpoint into Django custom command * handle edge case in regenerate_form_instance_json async task ensure we do not regenerate instance json if instance json has already been regenerated * address lint error consider-using-f-string / Formatting a regular string which could be a f-string * address lint error address raise-missing-from, consider-using-f-string update docstring * address lint errors * address lint error * address lint errors * fix incorrect lint error suppression * suppress lint error
- Loading branch information
1 parent
e98a41a
commit 7eee153
Showing
36 changed files
with
780 additions
and
366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1627,4 +1627,4 @@ If the upload is still running: | |
HTTP 202 Accepted | ||
{ | ||
"job_status": "PENDING" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
photo,osm_road,osm_building,fav_color,form_completed,meta/instanceID,_uuid,_submission_time,_tags,_notes,_version,_duration,_submitted_by,_total_media,_media_count,_media_all_received,osm_road:ctr:lat,osm_road:ctr:lon,osm_road:highway,osm_road:lanes,osm_road:name,osm_road:way:id,osm_building:building,osm_building:building:levels,osm_building:ctr:lat,osm_building:ctr:lon,osm_building:name,osm_building:way:id | ||
1424308569120.jpg,OSMWay234134797.osm,OSMWay34298972.osm,red,2015-02-19T04:18:21.427+03,uuid:d3ef929e-e3e7-456c-9f27-7679c0074f4f,d3ef929e-e3e7-456c-9f27-7679c0074f4f,2013-02-18T15:54:01,,,201511091147,,bob,3,2,False,23.708174238006087,90.40946505581161,tertiary,2,Patuatuli Road,234134797,yes,4,23.707316084046038,90.40849938337506,kol,34298972 | ||
1424308569120.jpg,OSMWay234134797.osm,OSMWay34298972.osm,red,2015-02-19T04:18:21.427+03,uuid:d3ef929e-e3e7-456c-9f27-7679c0074f4f,d3ef929e-e3e7-456c-9f27-7679c0074f4f,2013-02-18T15:54:01+00:00,,,201511091147,,bob,3,2,False,23.708174238006087,90.40946505581161,tertiary,2,Patuatuli Road,234134797,yes,4,23.707316084046038,90.40849938337506,kol,34298972 |
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.