-
-
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: update API to use events and task states + fixes to backend ref…
…actor (#1838) * build: add migrations to update task_history --> task_events * refactor(backend): wip update to use TaskEvent / State enums * refactor(frontend): wip update to use TaskEvent / State enums * build: add trigger to set task_event.state automatically from event * refactor: continued wip to use task events * refactor: fixes to task state/event distinction * fix: additional fixes to backend usage action --> event * build: fix migration conflict if task_history does not exist * build: add conflate to enums in case for future * refactor: further wip updates for task events * refactor(frontend): update enums * feat: set db default for UUID --> gen_random_uuid() * build: fix during development building postgis db images * build: fix migrations * fix: working event creation endpoint on tasks * fix(frontend): update to use new /events endpoint * fix: basemap generation via frontend (use POST) * build: add validation and comment to automatic state trigger func * test: fix task event + comment routes * fix: usage of task events endpoints * fix: activities panel status --> state * build: move api healthcheck to docker-compose file * build: fix up-mapper working with playwright * build: update playwright on mapper frontend to match react frontend * Fix/event driven tasks continuation (#1839) * build: add migrations to update task_history --> task_events * refactor(backend): wip update to use TaskEvent / State enums * refactor(frontend): wip update to use TaskEvent / State enums * build: add trigger to set task_event.state automatically from event * refactor: continued wip to use task events * refactor: fixes to task state/event distinction * fix: additional fixes to backend usage action --> event * build: fix migration conflict if task_history does not exist * build: add conflate to enums in case for future * refactor: further wip updates for task events * fix(taskSelectionPopup): project task index display on task popup * fix(submissionsInfographics): handle undefined task_history * fix(dialogTaskActions): remove taskBoundary from args, pass geojsonStyles to as args * fix(taskEvent): use response state to track and update current task state color * fix(featureSelectionPopup): page crash on taskStateEnum undefined fix * fix(getTaskStatusStyle): update feature style key based on entiy_state enums * fix(projectInfo): change card title accessor key * fix(taskSubmissionsMap): fix taskGeojson schema * fix(submissionDetails): update get comments api * fix(updateReviewStatusModal): update reviewList id, update post submission comments api --------- Co-authored-by: spwoodcock <[email protected]> * fix(backend): fix logic returning all tasks with project * refactor: update logging on task event * build: add NOT NULL constraints to required task_event fields * fix(frontend): marking task as mapped when not all buildings done * fix(frontend): getting task history comments=false, comments=true * fix: enable tasks/activity endpoint until merged with dashboard * build: add Just command to load prod data into current db * fix: use timezone aware timezones from db, fix dashboard api * build: ensure task_events.created_at has timezone * test: fix e2e test expecting 'mapped' when 'unlocked_to_validate' * fix(frontend): bug where task state was not updated in task dialog * fix: remove duplicate use of state selector * test: small fixes to playwright test strings to validate * build: disable ui-mapper in playwright tests for now * build: update cloudflare/cloudflared version 2024.5.0 --> 2024.10.1 * build: simplify justfile command for tunnelling * fix(frontend): check for empty taskId when new geopoint submission * fix: updating review state for a submission --------- Co-authored-by: Nishit Suwal <[email protected]>
- Loading branch information
1 parent
8ee0882
commit b8887b3
Showing
70 changed files
with
1,288 additions
and
966 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
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
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.