Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

FINERACT-2829: Document disabled field in roles OpenAPI responses - #6587

Merged
IOhacker merged 1 commit into
apache:developfrom
jenny1371:FINERACT-2829-roles-openapi-disabled
Oct 9, 2026
Merged

IOhacker merged 1 commit into
apache:developfrom
jenny1371:FINERACT-2829-roles-openapi-disabled

Conversation

@jenny1371

@jenny1371 jenny1371 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

FINERACT-2829 reports that the roles OpenAPI response is missing a status field for /system/roles-and-permissions.
That path does not exist, and the roles responses contain no status. The real responses (GET /roles, GET /roles/{id}, GET /roles/{id}/permissions) return "disabled": true|false (from RoleData / RolePermissionsData), which the OpenAPI classes did not declare.

This adds Boolean disabled to GetRolesResponse, GetRolesRoleIdResponse and GetRolesRoleIdPermissionsResponse. Documentation-only: no behaviour change.

Verified against a running instance built from develop (4684c66) and with ./gradlew :fineract-provider:spotlessCheck :fineract-provider:compileJava on JDK 25.

Checklist

  • Write the commit message as per our guidelines
  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • Create/update unit or integration tests for verifying the changes made. (OpenAPI documentation classes only; no behaviour to test.)
  • Follow our coding conventions.
  • Add required Swagger annotation and update API documentation (Swagger annotations added; legacy apiLive.htm not touched.)
  • This PR must not be a "code dump". (6 lines, 1 file.)
  • If merging this PR resolves a JIRA issue, I will mark that issue as resolved and set "Fix Version/s" appropriately. (My ASF JIRA account is pending; a committer may need to do this.)

The issue reports a missing "status" field for roles. The endpoint it names
(/system/roles-and-permissions) does not exist, and the real responses do not
contain "status": GET /roles, /roles/{id} and /roles/{id}/permissions return
"disabled" (boolean, from RoleData / RolePermissionsData), which the OpenAPI
classes did not declare. Add it to GetRolesResponse, GetRolesRoleIdResponse and
GetRolesRoleIdPermissionsResponse.

Verified against a running instance built from develop (4684c66), and with
./gradlew :fineract-provider:spotlessCheck :fineract-provider:compileJava.

Assisted-By: claude-code-sonnet-5.5
@jenny1371
jenny1371 force-pushed the FINERACT-2829-roles-openapi-disabled branch from d95595e to 65fe03a Compare October 6, 2026 08:35
@IOhacker
IOhacker merged commit 7804507 into apache:develop Oct 9, 2026
94 checks passed
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