-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
Minor
Issue Summary
Cannot modify the value of a metric update on a previous goal update if the metric has since been changed on the goal itself.
Steps to Reproduce
- have a goal with a progress metric attached
- post an update, including an update to the metric progress
- remove or change the metric attached to the goal itself
- edit the last goal update and change the progress value for the metric in that goal update
- confirm the update by pressing 'update'
Expected Results
Value of the progress in the last goal update is now changed.
Actual Results
If the metric has been swapped to another metric:
The below error is returned by the network request:
"Exception while fetching data (/editGoalUpdate) : Metric update does not belong to the goal update"
If the metric has only been removed from the goal:
no error is returned, and the page behaves as if the update has been successful, but the value of the metric in the previous goal update remains unchanged.
Workaround
Change the metric on the goal itself back to the same metric which is in the previous goal update, make the change to the previous goal update, then remove/change the metric and progress back to the new desired one.
Form Name |
---|