studyu icon indicating copy to clipboard operation
studyu copied to clipboard

Bug: Intervention or Survey not correctly saved when creating them first time

Open johannesvedder opened this issue 1 year ago • 2 comments

Bug seems to occur on all branches, including main (https://designer.studyu.health)

Steps to reproduce:

  • Create a new study
  • Give that study a name
  • Go to Intervention
  • Add a new intervention, modify the title and fill out the description
  • Add a intervention task, fill out title
  • Save both
  • Click on "Unnamed intervention". Neither the intervention title nor the intervention description are saved. Only the task is saved correctly.

The same happens with a new measurement survey. After the bug occured once, it does not happen anymore.

Solution

Seems to be related to https://github.com/hpi-studyu/studyu/blob/dev/designer_v2/lib/features/study/study_test_controller.dart

Removing all occurences of studyTestControllerProvider solves the issue (here and here)

johannesvedder avatar Nov 14 '23 16:11 johannesvedder