Skip to content

Conversation

@matiasperrone-exo
Copy link
Contributor

@matiasperrone-exo matiasperrone-exo commented Sep 30, 2025

@matiasperrone-exo matiasperrone-exo self-assigned this Sep 30, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from 2c68dd1 to da8fd46 Compare September 30, 2025 20:51
@smarcet smarcet force-pushed the main branch 9 times, most recently from c94fc68 to 9a8387b Compare October 2, 2025 17:58
@matiasperrone-exo matiasperrone-exo added the documentation Improvements or additions to documentation label Oct 7, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from da8fd46 to 519673e Compare October 7, 2025 21:42
@matiasperrone-exo matiasperrone-exo changed the title Feature | Extend Swagger Coverage for controller Apis/Protected/Main/OAuth2GroupsApiController.php Feature | Extend Swagger Coverage for controller OAuth2GroupsApiController Oct 9, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch 2 times, most recently from e01245b to 3f0b170 Compare October 14, 2025 16:08
Copy link

@caseylocker caseylocker left a 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.

@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from 3f0b170 to d619644 Compare October 31, 2025 14:03
@matiasperrone-exo
Copy link
Contributor Author

matiasperrone-exo commented Oct 31, 2025

One line change needed: File: OAuth2GroupsApiController.php Line: 32

    • OAuth2MembersApiController constructor.
    • OAuth2GroupsApiController constructor.

Done @caseylocker , thanks!

@matiasperrone-exo matiasperrone-exo added the review Need reviewing from the developer label Nov 10, 2025
Copy link

@caseylocker caseylocker left a 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.

@matiasperrone-exo
Copy link
Contributor Author

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 members is included in the serializer:
image

Also getMembers() is a valid method:
image

On the other hand ReadGroupsData was added to SummitScopes and the security schema for the controller was moved to its own file in app/Swagger/Security/GroupsOAuthSchema.php as discussed with @smarcet by our TL.

@caseylocker this PR is ready to be approved

Copy link

@caseylocker caseylocker left a 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;

@matiasperrone-exo matiasperrone-exo removed the review Need reviewing from the developer label Nov 18, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch 2 times, most recently from 323b3bc to dadf122 Compare November 20, 2025 22:37
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from dadf122 to ad0f318 Compare November 21, 2025 13:35
Copy link

@caseylocker caseylocker left a 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.

@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from 8f4a3df to d704939 Compare December 2, 2025 21:20
@matiasperrone-exo
Copy link
Contributor Author

@caseylocker thanks. done.

@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from d704939 to ee298ed Compare December 4, 2025 21:06
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

Approved.

@smarcet
Copy link
Collaborator

smarcet commented Dec 16, 2025

@matiasperrone please rebase against main and fix the conflicts many thanks

@smarcet smarcet force-pushed the main branch 4 times, most recently from c6ecdd0 to 728ae67 Compare December 17, 2025 00:43
smarcet and others added 10 commits December 18, 2025 21:40
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
@matiasperrone-exo matiasperrone-exo force-pushed the feature/add-openapi-documentation-to-controller---apis---protected---main---oauth2groupsapicontroller branch from ee298ed to 5dff35c Compare December 18, 2025 21:48
@matiasperrone-exo
Copy link
Contributor Author

matiasperrone-exo commented Dec 18, 2025

@smarcet you may now merge it, as all the conflicts were addressed

const ReadAttendeeNotesData = '%s/attendee/notes/read';
}

const ReadGroupsData = '%s/groups/read';
Copy link
Collaborator

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',
Copy link
Collaborator

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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@matiasperrone please review c9726df

Copy link
Collaborator

@smarcet smarcet left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants