Skip to content

FINERACT-2165: Migrate AuditHelper to fineract-client-feign#6100

Open
elnafateh wants to merge 1 commit into
apache:developfrom
elnafateh:FINERACT-2165/migrate-Audit-Helper
Open

FINERACT-2165: Migrate AuditHelper to fineract-client-feign#6100
elnafateh wants to merge 1 commit into
apache:developfrom
elnafateh:FINERACT-2165/migrate-Audit-Helper

Conversation

@elnafateh

Copy link
Copy Markdown
Contributor

Description

Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • 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.
  • Follow our coding conventions.
  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
  • This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Your assigned reviewer(s) will follow our guidelines for code reviews.

@elnafateh
elnafateh force-pushed the FINERACT-2165/migrate-Audit-Helper branch from c5a02d4 to 36a8bad Compare July 8, 2026 22:38
@elnafateh

Copy link
Copy Markdown
Contributor Author

@adamsaghy kindly rerun tests

@elnafateh

Copy link
Copy Markdown
Contributor Author

@adamsaghy kindly review this PR

+ "\n" + "Example Requests:\n" + "\n" + "audits\n" + "\n" + "audits?fields=madeOnDate,maker,processingResult\n" + "\n"
+ "audits?makerDateTimeFrom=2013-03-25 08:00:00&makerDateTimeTo=2013-04-04 18:00:00\n" + "\n" + "audits?officeId=1\n" + "\n"
+ "audits?officeId=1&includeJson=true")
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = AuditsApiResourceSwagger.PageGetAuditsResponse.class)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems incorrect. The problem is this API can return 2 types of data :(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@adamsaghy Fair point , the schema shouldn't claim one shape when the wire response actually depends on paged. Same ambiguity already exists in GroupsApiResource/CentersApiResource/FixedDepositAccountsApiResource (all document only the wrapper shape too), so it's not a new pattern, but that doesn't make it fully accurate here either. pls what do u think I should do here ?

@adamsaghy adamsaghy Jul 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

At this point i think we cannot set ApiResponse and use the "String" for now till this decided how to handle.

I would undo this change for now.

However, please open a discussion about this on the Fineract DEV mail list and we can figure out how to handle there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok 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