sequencescape icon indicating copy to clipboard operation
sequencescape copied to clipboard

DPL-500 View and edit retention instructions on a labware

Open KatyTaylor opened this issue 2 years ago • 4 comments

User story N.B. If the 'Retention instructions' are stored in the custom metadata table, this functionality could be achieved using Limber, as functionality has been recently developed to allow viewing and editing of custom metadata. You would need to add configuration to Limber to show the new field against the relevant plate purposes. Custom metadata can also already be viewed (but not edited) on the labware page in Sequencescape.

As a Sample Management user, I want to be able to view and edit the 'Retention instructions' on a labware, so that I can manually enter this information against the stock plates made from extraction tubes (we only get 2 or 3 of these every couple of months, so the manual work is not too much).

Who are the primary contacts for this story Danni W, Siobhan A-G, Katy

Who is the nominated tester for UAT Danni W, Siobhan A-G

Acceptance criteria To be considered successful the solution must allow:

  • [ ] I can view the 'Retention instructions' for a particular labware
  • [ ] I can update the 'Retention instructions' for a particular labware

Dependencies This story is blocked by the following dependencies: https://github.com/sanger/sequencescape/issues/3673

References This story has a non-blocking relationship with: https://github.com/sanger/sequencescape/issues/3675

KatyTaylor avatar Sep 20 '22 15:09 KatyTaylor

Need to review the occurrence of a request to update the value. Also, need to validate the correct values to be shown to the user and identify if the change can be made in bulk v/s per plate. As the policy is new, the assumption is that the SSRs may have to manually re-upload the manifest for each plate/tube.

SujitDey2022 avatar Aug 22 '23 12:08 SujitDey2022

Refinement 21/11/23:

  1. Limit Edit access to Admin roles in SS
  2. May need a separate story for identifying how the retention data is stored
  3. Record who and when made the change and is viewable in the plate event section
  4. Changes to apply at the stock plate level
  5. Changes to be verified for samples in tubes as well

SujitDey2022 avatar Nov 21 '23 11:11 SujitDey2022

This was implemented in https://github.com/sanger/sequencescape/issues/3673 using custom metadata.

In order to satisfy the requirement "Limit Edit access to Admin roles in SS", we might need to change where the data is stored - because custom metadata is a key-value pair store, and we wouldn't want to limit edit access to ALL custom metadata, just retention instructions.

KatyTaylor avatar Jan 09 '24 09:01 KatyTaylor

09Jan2024 - Team Discussion

  1. Research on how and where metadata is stored from point of view admin access to editing. (New story)
  2. Limit Edit access to Admin roles should be implemented across SS and Limber

SujitDey2022 avatar Jan 16 '24 15:01 SujitDey2022

@dasunpubudumal think this could do with updating, following our recent decisions.

  • remove the italic text from the top
  • actually you've added the 'view' functionality to https://github.com/sanger/sequencescape/issues/4093 already - so this could just be about the 'edit' functionality
  • add the UX idea for it to be a separate page accessed via a link on the RHS of the page?

KatyTaylor avatar Apr 26 '24 10:04 KatyTaylor

@KatyTaylor I updated the description :)

dasunpubudumal avatar Apr 29 '24 13:04 dasunpubudumal

A note about existing labware that has retention instructions stored in custom_metadata

  • In perspective of the Asset Summary: When displaying the asset summary (see the screenshot below), the sequence of procedures is as follows:
    1. Check if labware.retention_instruction is populated. If it is, display its value.
    2. If not, check if there's a corresponding retention instruction in custom_metadata. If there is, it will display its value.
    3. Else, the value will be displayed as "Not Set".
image
  • In perspective of the "Edit Retention Instruction" page: When displaying the update page (see the screenshot below), the user is able to select any retention instruction, as in the asset summary. The initial value in the dropdown (i.e., select) is set to be the value in labware.retention_instruction. If labware.retention_instruction is not populated, it will check for the custom_metadata table and set the corresponding retention instruction.
image

dasunpubudumal avatar May 01 '24 18:05 dasunpubudumal