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

Implement CategoryScore #42

Open
7 tasks
emilkovacev opened this issue Oct 19, 2022 · 0 comments
Open
7 tasks

Implement CategoryScore #42

emilkovacev opened this issue Oct 19, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@emilkovacev
Copy link
Contributor

emilkovacev commented Oct 19, 2022

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
@emilkovacev emilkovacev added the enhancement New feature or request label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants