-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/event driven tasks continuation #1839
Fix/event driven tasks continuation #1839
Conversation
Please rebase with There are definitely still a few bugs lurking around though - would be really grateful if you can test it out and fix remaining errors! |
18ff58c
to
4ceb30d
Compare
Oh also, if you get a chance, could you possibly take a look at the Playwright tests? It's probably a simple fix π I'll look into how we get the Entities |
β¦yles to as args
β¦ fix/event-driven-tasks-continuation
β¦ssion comments api
@@ -27,7 +27,7 @@ const TaskSelectionPopup = ({ taskId, body, feature }: TaskSelectionPopupPropTyp | |||
const authDetails = CoreModules.useAppSelector((state) => state.login.authDetails); | |||
const selectedTask = { | |||
...projectData?.[projectIndex]?.taskBoundries?.filter((indTask, i) => { | |||
return indTask?.index == taskId; | |||
return indTask?.id == taskId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies Nishit, I think I messed up the usage if task id vs index again π
β¦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]>
What type of PR is this? (check all applicable)
Related Issue
Describe this PR
Frontend fixes based on backend changes.
Screenshots