Closed Sujanadh closed 3 weeks ago
Apologies Sujan, I have also been working on XForm related code and have created conflicts for you!
Code look good - we should discuss how best to integrate this into the frontend, as it may require updating a significant number of API endpoints for the frontend to pass the project_id+task_numer combo (instead of the task_id
) 👍
Only the user-facing id will be that project-specific id like that in QR pop up. But for the endpoints, we can still use the same id that we are using till now. Using both project_id and task_index won't be that good. And except id, we don't have other unique fields.
So, we can limit the use of both project_id and task index only in submissions endpoints to interact with odk central.
You are definitely right - the project_id
and task_index
combo isn't a good solution!
Looks like the task details from the API return both the id and index, so the best solution is probably to have both in place:
We use the task.id
for referencing via the API, and use the index for user facing things.
Nice update to the data extract task_id by the way 😄
I will update the frontend to show the index, then merge this PR.
From a brief look I need to update:
Submission page:
Project detail page:
All done - could you review this works ok @Sujanadh please? 🙏
fixed the entity not being uploaded problem
All done - could you review this works ok @Sujanadh please? 🙏
looks good so far
One thing I noticed quickly was the order of task completion. they are not in ascending order.
Nice work - thanks! 🎉
What type of PR is this? (check all applicable)
Related Issue
Describe this PR
Screenshots
N/A
Alternative Approaches Considered
Did you attempt any other approaches that are not documented in code?
Review Guide
Notes for the reviewer. How to test this change?
Checklist before requesting a review
[optional] What gif best describes this PR or how it makes you feel?