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

Another round of routes refactor #4652

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Another round of routes refactor #4652

wants to merge 5 commits into from

Conversation

barthalion
Copy link
Member

No description provided.

@barthalion barthalion requested a review from Copilot February 12, 2025 21:24
Copy link

@Copilot Copilot AI left a 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.
Copy link
Preview

Copilot AI Feb 12, 2025

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.'

Suggested change
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.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
login=Depends(logged_in),
):
"""
Remove an app from a users favorites. The appid is the ID of the app to remove.
Copy link
Preview

Copilot AI Feb 12, 2025

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.'

Suggested change
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.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@razzeee
Copy link
Member

razzeee commented Feb 13, 2025

Looks good so far, will need to regenerate orval.

But we might also want to change the tags for some of these? Not sure.

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