hotosm / fmtm

Field Mapping Tasking Manager - coordinated field mapping.
https://fmtm.hotosm.org/
GNU Affero General Public License v3.0
42 stars 44 forks source link

Frontend task_id is out of sync with db task_id #1673

Closed spwoodcock closed 1 month ago

spwoodcock commented 1 month ago

Describe the bug

When updating task 9, the popup shows I am looking at task 8:

image

image

image

Expected behavior

The task id on the task popup should match the actual task index id from the backend.

NSUWAL123 commented 1 month ago

@spwoodcock, I think it's working fine.

Here I have tested with task id of 1260 with task index of 4.

/Project API response: image

Post new status and it's response: image image

Task History API fetch: image image

@spwoodcock and @manjitapandey also, could you please confirm from your side too.

And Sam, your action text seems to look different from the current action text: "action_text": "Status changed from MAPPED to LOCKED_FOR_VALIDATION by: localadmin",

spwoodcock commented 1 month ago

Thanks for such detail!

I can check this on Monday 👍

I'm testing on the mapper frontend branch, so perhaps it's just an issue on my end. I tweaked the action text a bit on the branch.

@spwoodcock

manjitapandey commented 1 month ago

@spwoodcock waiting for your confirmation.

spwoodcock commented 1 month ago

This is actually fine 👍

Perhaps a bug introduced on my local mapper frontend branch, or just a some confusion somewhere - closing!