Skip to content

#46 As a teacher, so I can have sensible Cohort names, I want to be able to specify the Cohort Name when adding a new Cohort  #232

@hubertlemczak

Description

@hubertlemczak

User Story

As a teacher, so I can have sensible Cohort names, I want to be able to specify the Cohort Name when adding a new Cohort

  • Add Cohort button now takes the user to a new "Add Cohort" Page
  • On that page, the user is presented with a form with a single input for now - "Cohort Name".
  • The Cohort Name should be unique (note: might need to handle this in prisma migrations)
  • Pressing Save takes the user to the view Cohort Page for the newly added cohort.

Tasks

  • Add unique name field to prisma Cohort schema
  • Update post /cohort endpoint on API-Spec to have name in request and response body
  • Update post /cohort endpoint to accept name parameter to send to the database
    • If request sucessful cohort information is sent back to the client and is navigated to the new cohort page
    • If request failed error message will be sent back to client
  • Create get/cohort/:id endpoint on API-Spec
  • Create get /cohort/:id endpoint to retrieve all information about a cohort. (list of users in cohort)
    • Think about if the endpoint can be accesed by students or only teachers

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions