-
Notifications
You must be signed in to change notification settings - Fork 92
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
Another round of routes refactor #4652
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.
Files not reviewed (2)
- backend/app/db.py: Evaluated as low risk
- backend/tests/main.py: Evaluated as low risk
Comments suppressed due to low confidence (3)
backend/app/routes/favorites.py:31
- [nitpick] The error message should be more descriptive. Consider adding a specific error message.
return Response(status_code=HTTPStatus.OK)
backend/app/routes/favorites.py:50
- [nitpick] The error message should be more descriptive. Consider adding a specific error message.
return Response(status_code=HTTPStatus.OK)
backend/app/routes/favorites.py:56
- [nitpick] The class name 'FavoriteApp' is ambiguous. Consider renaming it to 'UserFavoriteApp'.
class FavoriteApp(BaseModel):
login=Depends(logged_in), | ||
): | ||
""" | ||
Add an app to a users favorites. The appid is the ID of the app to add. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring should be 'Add an app to a user's favorites. The appid is the ID of the app to add.'
Add an app to a users favorites. The appid is the ID of the app to add. | |
Add an app to a user's favorites. The appid is the ID of the app to add. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
login=Depends(logged_in), | ||
): | ||
""" | ||
Remove an app from a users favorites. The appid is the ID of the app to remove. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring should be 'Remove an app from a user's favorites. The appid is the ID of the app to remove.'
Remove an app from a users favorites. The appid is the ID of the app to remove. | |
Remove an app from a user's favorites. The appid is the ID of the app to remove. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Looks good so far, will need to regenerate orval. But we might also want to change the tags for some of these? Not sure. |
No description provided.