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

ALCS-2325 Tag/Category entities and cruds #1937

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

fbarreta
Copy link
Collaborator

  • Created Category and Tag entities
  • Basic API CRUD functions

return await this.service.create(createDto);
}

@Put('/:uuid')
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like in the downstream service you are updating only one field of the entity which is the name. Since it is a partial update, would it be better to use PATCH request instead of PUT?

@fbarreta fbarreta self-assigned this Oct 24, 2024
return await this.service.create(createDto);
}

@Put('/:uuid')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tag Category Controller is now using PATCH request for updating. Since both seem to be partial update, do you want to change this one to PATCH to be aligned?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure !

@trslater
Copy link
Collaborator

Looking good overall! Impressed you took on such an ambitious ticket this early. My only sort of general comment would be to use more type annotations in the services and controllers. I feel like the majority of the issues I encounter day-to-day are due to ambiguous typing.

Copy link
Collaborator

@Abradat Abradat left a comment

Choose a reason for hiding this comment

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

LGTM!

@fbarreta fbarreta merged commit 2539cb5 into develop Oct 24, 2024
5 checks passed
@fbarreta fbarreta deleted the feature/ALCS-2325-create-tags-entity branch October 24, 2024 20:25
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