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

Add category collection #19

Merged
merged 14 commits into from
Sep 28, 2024
Merged

Add category collection #19

merged 14 commits into from
Sep 28, 2024

Conversation

lynnetteeee
Copy link

  • add CRUD for categories

    • GET /categories used to render the list of categories in Edit/Add question FE (@AidenLYT)
    • POST /categories for admin to create new categories via the dropdown when they wish to edit/add questions
    • update/delete categories included for completion, but don't necessarily need to be integrated to frontend at the moment
  • trigger the addition of new categories to the category collection when adding/updating question (if category does not already exist in the collection)

    • note: deleted questions have no effect on the category collection, category is retained for future use when adding/editing questions
  • add GET /questionCategories endpoint to retrieve active categories (i.e. categories that are tagged to at least 1 qn at the moment)

* feat/question-service-api:
  Update question.go
  Added filter
  Fix sorting algorithm to check against lowercase values instead of plain question_title values
* feat/question-service-api:
  Update Dockerfile
  Clean up SearchQuestion function
  Added search endpoint
Implement triggered category creation from adding/updating questions
@lynnetteeee lynnetteeee self-assigned this Sep 27, 2024
@kervyntan kervyntan self-assigned this Sep 28, 2024
@kervyntan
Copy link

  • Fixed bugs for CreateQuestion and UpdateQuestion related endpoints to remove UpsertCategories
  • Fixed bugs for wrong id returned to Frontend response upon category/question creation
  • Refactored code segments

@smolegz smolegz merged commit dc03986 into main Sep 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants