Skip to content

Studycard reaplication [DRAFT]

Julien Louis edited this page Aug 19, 2021 · 2 revisions

Use cases

  • reapply from studycard page

    • update every dataset (that I can edit) that have previously been converted with this studycard
    • display stats on those datasets before confirmation ?
  • reapply from dataset / dataset acquisition

    • first choose the studycard to apply
  • reapply from study

    • possibly several equipements in the study = as many studycards
      • cannot choose only one study card to reaply from here
    • reapply corresponding studycards on the whole study
    • is this really usefull ?
      • usefull only to update datasets after updating a studycard's rules
        • in this case, better do it from the studycard page
  • select datasets to be converted with a selected studycard

    • can be done :
      • from the studycard page
        • display a list of the datasets with checkboxes that match with the studycard's
          • study
          • equipment
      • from the solr page
        • add a button "apply studycard"
        • works only if the selected datasets share the same study + equipment
        • then let you choose between available studycards that match study + equipment of the selected datasets
  • know if a dataset has been converted with the latest version of the studycard or an older one

    • could be usefull for the user in oder to know if he needs to reapply
    • technical solution :
      • every time a studycard is updated, generate a unique version id
      • when convert a dataset, save the version along with the studycard id

Questions

  • what if a studycard equipment is edited ?
    • reapication would fail if the equipment doesn't match ?
    • does it make any sense to edit the equipment ?
    • what to do :
      • display a warning on studycard edit page ?
        • display a warning if the user tries to edit an equipment from a studycard that have already convert data ?
      • forbid editing the equipment ?
      • not for admins ?

Rights

  • rights needed to apply a studycard :
    • EXPERT + CAN_ADMINISTRATE
Clone this wiki locally