micronutrientsupport / database-architecture

The Postgres database code for the MAPS tool
3 stars 0 forks source link

Update intervention views to include 'default' parent values #289

Closed bgsandan closed 2 years ago

bgsandan commented 2 years ago
andy-bevan commented 2 years ago

Can I just check the workflow?

  1. User opens an intervention which is s starting point - not editable created by scientist.
  2. User can change some of the values and if they hit 'save' it creates a new intervention, with the initial intervention being the parent
  3. The user is now editing the new intervention and any further saves update the new intervention.
  4. The user can return to the new intervention at any time and update further
  5. The user can, at any point, reset the whole (or part being displayed) of the new intervention back to the values of the parent
  6. The user can reset values that are visible on screen back to saved values (not parent values) but not once those values are saved
  7. The user can at some point lock the new intervention when complete so that it cannot be edited again
  8. The user can then use the locked intervention as a parent for another new intervention

If all the above is true then I think the merge request looks good.

bgsandan commented 2 years ago

Hi @andy-bevan 

Pretty much as you described :smile:.  A few bits simplified for v1 (like no user control over locking interventions - they automatically get locked when used as a parent for creating a new one) but that is largely the (intended) workflow