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

Manual Study Order Feature for lab home pages #1024

Closed
5 tasks done
ianchandlercampbell opened this issue Sep 6, 2022 · 0 comments · Fixed by #1044
Closed
5 tasks done

Manual Study Order Feature for lab home pages #1024

ianchandlercampbell opened this issue Sep 6, 2022 · 0 comments · Fixed by #1044
Assignees
Labels
NSF-CRADLE [Project] New or key feature that supports CRADLE deliverables

Comments

@ianchandlercampbell
Copy link
Collaborator

ianchandlercampbell commented Sep 6, 2022

TL;DR

CRADLE: Create a feature that allows labs to manually order their studies on the lab home page created for #620.

Narrative

From Ian: It will be helpful to visually show participants the suggested order for study completion. We will also need this feature to work with #625's eligibility criteria modification, as we want this order to adapt to remaining studies for the particular participant.

As a researcher, I want to be able to assign priority to individual studies in my lab, rather than accepting the random/hashed ordering that's automatically produced on the Search and Lab pages.

Acceptance Criteria

  • New field appears on Edit Study page allowing a 'priority' integer between 1 and 99 to be assigned. This corresponds to a new variable on a study object called 'study_queue_priority.'
  • By default, all studies (including existing studies) are given a priority of 1 (highest) - the logic here is that, if a lab is not ranking studies, a nefarious lab member would have to modify someone elses study, rather than their own, to try and sneakily jump ahead of the other studies.
  • On Search and Lab pages, studies continue to be displayed according to whether they are discoverable, and if the user selects from the drop downs, according to if a particular child is eligible, if the study takes place on or off Lookit, etc.
  • On the main Search page, sorting continues to be by hash only (status quo).
  • On the Lab page, sorting is first by priority, and then by hash. This means that if a set of studies-to-be-shown contains three with priority 1 and two with priority 10, then they would be displayed as [priority 1 studies ordered by hash]-[priority 10 studies ordered by hash]

Implementation Notes

It's likely that accomplishing the final 2 criteria will require modifying existing sorting code, and we should proceed with the idea that future changes to sorting could come up in the future - so for instance this might involve defining a set of rankings across both of these page views, where the Search page is set to ["Sort by hash = first", "Sort by lab priority = "no"], and the Lab page is set to ["Sort by lab priority = first", "Sort by hash = second"]

@mekline mekline changed the title CRADLE: Manual Study Order Feature for lab home pages Manual Study Order Feature for lab home pages Nov 16, 2022
@mekline mekline added the NSF-CRADLE [Project] New or key feature that supports CRADLE deliverables label Nov 16, 2022
@okaycj okaycj self-assigned this Dec 1, 2022
@okaycj okaycj mentioned this issue Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NSF-CRADLE [Project] New or key feature that supports CRADLE deliverables
Projects
Status: Researcher QOL
Development

Successfully merging a pull request may close this issue.

3 participants