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

SAC-12 Category RUD #41

Merged
merged 17 commits into from
Jan 24, 2024
Merged

SAC-12 Category RUD #41

merged 17 commits into from
Jan 24, 2024

Conversation

alderwhiteford
Copy link
Collaborator

Description

This Pull Request handles the remaining CRUD logic for the Category entity (RUD)

How Has This Been Tested?

A complete test suite has been written in category_test under the tests directory.

Checklist

  • I have performed a self-review of my code
  • I have reached out to another developer to review my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

@garrettladley garrettladley requested review from a team, sunnyh2024 and edwinliiiii and removed request for a team January 22, 2024 00:21
@garrettladley garrettladley requested review from DOOduneye and garrettladley and removed request for a team January 22, 2024 00:21
CreateCategory(category models.Category) (*models.Category, error)
}
CreateCategory(category models.CreateUpdateCategoryRequestBody) (*models.Category, error)
GetCategories() (*[]models.Category, error)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GetCategories() (*[]models.Category, error)
GetCategories() ([]models.Category, error)

for consistency, let's return an empty slice instead of a nil pointer. Agreed @DOOduneye ?

Copy link
Member

@garrettladley garrettladley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits just for consistency, I can fix if you'd like

@garrettladley
Copy link
Member

also CI seems to be failing

@garrettladley garrettladley merged commit a8320a4 into main Jan 24, 2024
5 checks passed
@garrettladley garrettladley deleted the SAC-12-Category-RUD branch January 24, 2024 03:46
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.

2 participants