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

added documentation, shoutoutAPI #579

Merged
merged 4 commits into from
Mar 4, 2024
Merged

added documentation, shoutoutAPI #579

merged 4 commits into from
Mar 4, 2024

Conversation

kevinmram
Copy link
Contributor

added documentation to shoutoutAPI- documenting the purpose and usage of each method within the class.

@kevinmram kevinmram requested a review from a team as a code owner February 12, 2024 03:50
@dti-github-bot
Copy link
Member

dti-github-bot commented Feb 12, 2024

[diff-counting] Significant lines: 24.

export const getAllShoutouts = (): Promise<Shoutout[]> => shoutoutsDao.getAllShoutouts();

/**
* Gives a shoutout, ensuring the giver has the correct permissions.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would change "Gives" to "Create" here

Copy link
Collaborator

@andrew032011 andrew032011 left a comment

Choose a reason for hiding this comment

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

I find it a bit redundant to mention permissions in the docstring. I think in general it is implied. If we want to include info about permissions here, we should be more specific as to what we're checking. Otherwise, I might remove it (you can keep the @throws).

Also soon we'll have an auth model that takes care of some of this logic.

@andrew032011 andrew032011 requested a review from oscarwang20 March 4, 2024 06:33
@kevinmram kevinmram merged commit a4e1ab9 into main Mar 4, 2024
17 checks passed
@kevinmram kevinmram deleted the so-api-documentation branch March 4, 2024 18:08
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.

5 participants