-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature request
We need to implement a CategoryScore for each category for a User
Model
courseId: foreign_key
The CourseId linked to CategoryScore
userId: foreign_key
The UserId linked to CategoryScore
category: foreign_key
The Category linked to CategoryScore
score: integer
The score for Category
letterGrade: string[enum]
The letter-grade equivalent for the CategoryScore
Checklist
To add assignments to the app, all of the following will be needed.
- model
- how to represent the fields above in the database
- router
- Create paths for CRUD (Create, Retrieve, Update, Delete) for assignments and routes to the appropriate controller function
- validator
- Checks the request for proper formatting, existence of all required fields, etc. Used when the user is creating or updating an assignment to ensure the data is valid
- controller
- Handles the web requests and prepares the data of a response to the user
- Defers to the service for core functionality
- service
- The core functionality of the app. For this issue, it will just forward the CRUD commands to the database
- serializer
- Receives the response data from the controller, as a assignment object following your model, and formats it into a JSON string for FE consumption
- testing
- Write tests modeled after User tests to ensure that you feature works properly
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request