Skip to content

[Feature] Block redundant assignments in create/Edit assignment #618

@CCuskley

Description

@CCuskley

Description:
Currently, when creating an assignment, it's possible to assign it to a site, e.g., Chrissy-Test and to group(s), e.g., schools, classes, cohorts, that already sit under that site. This doesn't actually duplicate the assignment.

In watching some users try to make assignments, I think they interpret the current selector as hierarchical, e.g., they think they must select the site, then school, then class to assign only to the class.

Could be better to have a dropdown that says "select by..." with site, school, class, cohort rather than the current tabbed approach?

Functional Requirements:

Regardless of tabs vs dropdown:

  • Once a site is selected for an assignment, schools, classes, cohorts that sit under that site should not be selectable ("greyed out"), with a tooltip/popup/error if/when they try to click it that says something like "[school/class/cohort] already in assignment via [site]"
  • As above for schools: once a school is selected for an assignment, classes or cohorts that sit under that school should not be selectable in the same manner
  • Preference for "greyed out" rather than completely unavailable/invisible in the selector, as this may lead admins to think a group was not properly created, i.e., they should still appear in the selector, just not be usable.

Acceptance Criteria:

  • Researcher user cannot create an assignment where site and school/class/cohort-under-that-site are both assigned
  • Researcher user cannot create an assignment where school and class/cohort-under-that-school are both assigned
  • Task assignment is otherwise unaffected

QA Testing Requirements:

Platform Elements affected: Dashboard, Tasks/Surveys

User Type: Researcher (but visibilty of correct assignments should also be verified on participant user side)

Checklist

  • Navigate to Assignments>Create assignment
  • Create an assignment for a whole site which includes only instructions and survey
  • Try to also assign this same assignment to a school or class which sits under the site. It should not be possible.
  • Create a separate assignment for a school or class within the site that includes 1-2 other tasks.
  • Find each assignment under Assignments>View assignment and view details to verify they are correct/visible.
  • By signing in as a child user who is in the site but not the school/class with the additional assignment, verify they can see only the first assignment
  • By signing in as a child user who is in the school/class with the additional assignment, verify they can see both the first and second assignment

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions