NewcastleRSE / dolfin-flutter

The Flutter-based app for the Dolfin Project
0 stars 0 forks source link

15) Database Entry Input #189

Closed notimre closed 5 months ago

notimre commented 6 months ago

Task

Look into Andy's question.

Andy's question:

Many thanks from me, too. Just one question regarding the video which demonstrated that selecting “Yes, all of it” for the first question wiped out the dependent question answers on the screen for the record being edited. Can you just confirm that if a record that has been previously saved with dependent answers completed is reopened and the first answer is edited to “Yes, all of it”, then the dependent answers are saved as blank in the database when the record is resaved?

KateCourt commented 6 months ago

To determine this, @notimre you need to create a child and enter a record where you select one of the answers that has a reason associated with it (i.e. no 'yes, all of it') and select a reason. Then, once this record is saved in the database, you will need to try editing the record in the app to change the answer to 'yes, all of it'. Once you've done this, check that record in the database to see if the reason has been wiped. If it hasn't been, then I imagine you need to change what is returned from the app to firebase, perhaps putting 'null' in the reason fields to wipe them.

KateCourt commented 5 months ago

Child1 - enter record selecting 'No' and 'I forgot'. Successfully saved in db. Changed to 'Yes, all of it' in app. Record in db correctly has other fields removed.