You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Not all tasks are being converted to proto for some reason.
To Reproduce
Steps to reproduce the behavior:
Sync repo to HEAD
Run the local server with npm run start:local (localhost:5000)
Create a new survey with all task types
Check the Firebase emulator: http://localhost:4000/firestore/default/data/surveys/, see that the tasks under /jobs only have two entries and there are no task descriptions. Also see that the second entry has an index of -1, which is probably incorrect.
Expected behavior
There should be 9 task protos for each task type.
Screenshots
The text was updated successfully, but these errors were encountered:
Ah, I think I have a picture for what's going on here... the trigger for updating /jobs is not happening when you hit "Continue" after the initial job configuration screen, it only triggers on survey title update because of the updateSurvey callback which does:
So in order to properly save the jobs in proto at the initial configuration, we have to trigger an updateSurvey when we hit Continue or something?
sufyanAbbasi
changed the title
[Proto] Tasks in Jobs are not being converted to proto properly
[Proto] Tasks in /job proto don't update on initial configuration
Jul 19, 2024
I think I found the bug! On "Continue" we run saveTasks() which doesn't call updateJob() which does the routine to serialize the tasks to proto. Maybe we can pull that logic in there?
Describe the bug
Not all tasks are being converted to proto for some reason.
To Reproduce
Steps to reproduce the behavior:
npm run start:local
(localhost:5000)Expected behavior
There should be 9 task protos for each task type.
Screenshots


The text was updated successfully, but these errors were encountered: