-
Notifications
You must be signed in to change notification settings - Fork 82
frontend: fix packit_forge_projects_allowed to return list in API #4092
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
frontend: fix packit_forge_projects_allowed to return list in API #4092
Conversation
Schema incorrectly defined field as String instead of List(String), causing Flask-RESTX to stringify the list in API responses. Context: packit/packit-service#2907 (comment) Assisted-by: Cursor(Claude)
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.
Code Review
This pull request correctly fixes an issue where the packit_forge_projects_allowed field was being stringified in API responses. The change updates the schema from String to List(String), which is the correct approach. The description and example in the schema have also been updated for consistency. Furthermore, a new test case has been added to verify that the API now returns a list as expected, ensuring the fix is effective and preventing future regressions. The changes are clear, focused, and well-implemented.
Pull Request validationFailed🔴 Failed or pending checks:
🔴 Review - Missing review from a member (2 required) |
nikromen
left a comment
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.
thanks!
Schema incorrectly defined field as String instead of List(String), causing Flask-RESTX to stringify the list in API responses. Context: packit/packit-service#2907 (comment)
Assisted-by: Cursor(Claude)