-
Notifications
You must be signed in to change notification settings - Fork 2
Feature | Extend Swagger Coverage for controller OAuth2GroupsApiController
#365
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
base: main
Are you sure you want to change the base?
Conversation
2c68dd1 to
da8fd46
Compare
c94fc68 to
9a8387b
Compare
da8fd46 to
519673e
Compare
OAuth2GroupsApiController
e01245b to
3f0b170
Compare
caseylocker
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.
One line change needed: File: OAuth2GroupsApiController.php
Line: 32
-
- OAuth2MembersApiController constructor.
-
- OAuth2GroupsApiController constructor.
3f0b170 to
d619644
Compare
Done @caseylocker , thanks! |
caseylocker
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.
The '%s/groups/read' => 'Read Groups Data', in the controller looks like a placeholder or template string, is that correct? Check the seeder for actual scope constant.
Security schemas should be in schemas.php.
'members' is called out as an expand option but the Group schema doesn't include it.
The value Also On the other hand @caseylocker this PR is ready to be approved |
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.
Close, please fix the following 2 issues and then this should be good:
-
Improve the Expand Parameter documentation to be -
"description: 'Comma-separated list of related resources to include. Available relations: members (expands member IDs to full member objects)'," and use this format, or a generalized version, in the future for all expand parameters. -
Change line 2 of app/Swagger/Security/GroupsOAuthSchema.php from namespace App\OpenApi\schemas to namespace App\Swagger\schemas;
323b3bc to
dadf122
Compare
dadf122 to
ad0f318
Compare
caseylocker
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.
@matiasperrone-exo The namespace App\OpenApi\schemas; in GroupsOAuthSchema.php needs to be changed to namespace App\Swagger\schemas;
After that this should be good to go.
8f4a3df to
d704939
Compare
|
@caseylocker thanks. done. |
d704939 to
ee298ed
Compare
caseylocker
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.
Approved.
|
@matiasperrone please rebase against main and fix the conflicts many thanks |
c6ecdd0 to
728ae67
Compare
fix: improve ticket repository performance remove not needed extra joins fix: set fetchJoinCollection to false for ticket repo fix: get always owner to avoid N+1 on ticket repository fix: improve get tickets generic pagination
chore: fix .gitmessage.txt chore: increase header size to 150
- Add controller's response to OpenAPI schema
…ma was moved to its own file
ee298ed to
5dff35c
Compare
|
@smarcet you may now merge it, as all the conflicts were addressed |
| const ReadAttendeeNotesData = '%s/attendee/notes/read'; | ||
| } | ||
|
|
||
| const ReadGroupsData = '%s/groups/read'; |
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.
@matiasperrone-exo
please remove this ( rollback this file)
due this scope does not belongs to this file
and rebase against main and use this c9726df
| scopes: [ | ||
| SummitScopes::ReadAllSummitData => 'Read All Summit Data', | ||
| SummitScopes::ReadSummitData => 'Read Summit Data', | ||
| SummitScopes::ReadGroupsData => 'Read Groups Data', |
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.
@matiasperrone-exo please review c9726df
| 'groups_oauth2' => [ | ||
| SummitScopes::ReadAllSummitData, | ||
| SummitScopes::ReadSummitData, | ||
| SummitScopes::ReadGroupsData, |
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.
@matiasperrone please review c9726df
smarcet
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.
@matiasperrone-exo please review comments


Task:
Ref: https://app.clickup.com/t/86b6wkgk3