Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing custom field visibility options within a study #150

Closed
simroux opened this issue Aug 7, 2024 · 6 comments · Fixed by #206
Closed

Sharing custom field visibility options within a study #150

simroux opened this issue Aug 7, 2024 · 6 comments · Fixed by #206
Assignees
Labels
beta-feedback Related to feedback received from beta testers enhancement New feature or request v1-release 🚀 Features and bug fixes that must be included in the first public release (i.e. general release)

Comments

@simroux
Copy link
Collaborator

simroux commented Aug 7, 2024

This is a feedback / user request coming from the GSC workshop, probably a low-priority feature request but I wanted to create an issue while still fresh in my mind :-). It seems like there is (a large) interest for users to toggle field visibility, then share these choices with others in the same study. The use case is a PI with a group of undergrads who will do the actual sampling: their "ideal" process would be (i) they create a study, and pre-select fields to be visible in the App, (ii) the students go into the field, and only see these fields to fill in so are not overwhelmed / have less chances of making mistakes.

Thinking (briefly) about this, I feel one way to do this would be to allow for these field visibility options to be stored and shared at the study level ? So my thoughts/questions for now would be:

  • 1: Could we store custom field visibility options at the study level, and set them available for all users when in this study ?
  • 2: Could we store multiple custom field visibility options per extension/package ? (may be complex, but I could imagine users asking for this as soon as 1 is implemented, could be fine to say "no we can't")
  • 3: Could we export / import multiple custom field visibility options across studies ? (same as 2, I could imagine it being useful, but also not a major barrier, worst case scenario PIs just have to redo the initial selection for their new study, should be reasonable).
@simroux simroux added the enhancement New feature or request label Aug 7, 2024
@eecavanna
Copy link
Collaborator

During today's squad meeting, I proposed the following as a potential solution. This is an elaboration on item 3 in the issue description above. It doesn't involve any servers or any distributing of files.

Export

The "export" could be achieved by allowing the user to get the custom field visibility options as a URL with the options embedded into it (e.g. as a query parameter), similar to how diagrams.net can generate a URL that has the diagram data, itself, embedded into it. So, the PI can generate such a URL and then provide that URL to his or her students.

Import

We can then update the app's deep link-handling code to check for that payload and—if found—update the app's field visibility options to match it. So, when a student visits that URL, their app automatically adopts those field visibility options.

@pkalita-lbl
Copy link
Collaborator

@pkalita-lbl consider splitting this into a few issues

@pkalita-lbl pkalita-lbl added the v1-release 🚀 Features and bug fixes that must be included in the first public release (i.e. general release) label Nov 4, 2024
@pkalita-lbl
Copy link
Collaborator

See also #191 for details on confusion around the current workflow

@pkalita-lbl pkalita-lbl added the beta-feedback Related to feedback received from beta testers label Nov 12, 2024
@pkalita-lbl
Copy link
Collaborator

Feedback from Emiley: when selecting which slots to include from a template in a study, the sample name, collection date, and lat/lon slots should be prioritized above all other slots for every template.

@pkalita-lbl pkalita-lbl self-assigned this Nov 18, 2024
@pkalita-lbl
Copy link
Collaborator

This is what I propose we do for the v1 release:

  1. Store the field visibility settings as an attribute of the Study (technically speaking the SubmissionMetadata object, as the backend calls it). This means that all users with access to a given Study will see the same set of visible fields. This also means that if a user has access to two Studies, they may see different sets of visible fields on those two Studies.
  2. Add a step to the Study creation process where the user chooses which fields should be visible for that Study. This interface should visually prioritize and pre-select slots that we determine are likely to be collected in the field.
  3. The user should be able to get back to the slot selection interface through the Study edit interface.
  4. The slot selection interface should allow applying the slot visibility settings of a different Study (of the same template) to the current one.

@pkalita-lbl
Copy link
Collaborator

From 2024-11-18 squad meeting:

  • Consider saving the name of the user who last updated the field visibility settings for a Study and the timestamp of the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-feedback Related to feedback received from beta testers enhancement New feature or request v1-release 🚀 Features and bug fixes that must be included in the first public release (i.e. general release)
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants