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

FINERACT-2535: Data type 'BOOLEAN' is not supported in runreports endpoint - #5637

Merged
adamsaghy merged 1 commit into
apache:developfrom
leonardoalunno:FINERACT-2535-boolean-runreports
Apr 17, 2026
Merged

adamsaghy merged 1 commit into
apache:developfrom
leonardoalunno:FINERACT-2535-boolean-runreports

Conversation

@leonardoalunno

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.

Copilot AI review requested due to automatic review settings March 16, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes MySQL report column type resolution so that columns reported as BOOLEAN (and BOOL) are recognized by the runreports/data-queries type mapping logic instead of throwing “Data type 'BOOLEAN' is not supported”.

Changes:

  • Extend MySQL dialect type aliases for JdbcJavaType.BOOLEAN to include BOOLEAN (and BOOL).
  • Add unit tests covering MySQL resolution for BOOLEAN, BOOL, and BIT type names.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
fineract-core/src/main/java/org/apache/fineract/infrastructure/core/service/database/JdbcJavaType.java Adds BOOLEAN (and BOOL) as accepted MySQL type-name aliases for the BOOLEAN mapping.
fineract-core/src/test/java/org/apache/fineract/infrastructure/core/service/database/JdbcJavaTypeTest.java Introduces tests ensuring MySQL resolves BOOLEAN/BOOL/BIT to JdbcJavaType.BOOLEAN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@adamsaghy adamsaghy left a comment

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.

Can you write an integration test which tests whether the reported report can be executed successfully?

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch 3 times, most recently from 6cf0200 to 080057a Compare March 17, 2026 15:36
@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch 2 times, most recently from 1fc714b to a3ecd7c Compare March 17, 2026 21:16
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

Can you write an integration test which tests whether the reported report can be executed successfully?

Thanks for the review.
I added an integration test shouldExecuteReportSuccessfullyWhenReportContainsBooleanColumn() that creates a report with a BOOLEAN column and verifies successful execution via the runreports endpoint.
I also adjusted the SQL used by the test to be cross-database compatible and hardened cleanup behavior.

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch 4 times, most recently from 2da9339 to 20298a3 Compare March 21, 2026 14:39
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

Asking for review and eventually merge

@leonardoalunno

Copy link
Copy Markdown
Contributor Author

It was a mistake, could you double check now?

@adamsaghy

Copy link
Copy Markdown
Contributor

It was a mistake, could you double check now?

you need to push your changes! ;)

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 20298a3 to 18c15fe Compare March 27, 2026 10:05
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

It was a mistake, could you double check now?

you need to push your changes! ;)

Done!

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 18c15fe to 1135b9f Compare March 28, 2026 01:36
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

Asking for review and eventually merge

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 1135b9f to e5fbf64 Compare March 30, 2026 12:36
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

Asking for review and eventually merge

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch 2 times, most recently from b18ff0c to 1a97347 Compare April 1, 2026 12:32
@adamsaghy

Copy link
Copy Markdown
Contributor

@leonardoalunno Please dont remove valid comments!

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 1a97347 to 1913c28 Compare April 2, 2026 14:45
@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 1913c28 to ef19233 Compare April 2, 2026 14:48
@adamsaghy

adamsaghy commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

@leonardoalunno Please dont remove valid comments!
Example:

     /**
     * UC1: Test legitimate report execution works correctly Validates that the SQL injection prevention doesn't break
     * normal functionality
     */

@leonardoalunno

Copy link
Copy Markdown
Contributor Author

@leonardoalunno Please dont remove valid comments! Example:

     /**
     * UC1: Test legitimate report execution works correctly Validates that the SQL injection prevention doesn't break
     * normal functionality
     */

I'm doing it now, sorry but I've been busy these days

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch 3 times, most recently from 6119971 to 1f0c7a7 Compare April 7, 2026 10:36
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

Done!

@adamsaghy

Copy link
Copy Markdown
Contributor

@leonardoalunno Please rebase this PR with latest develop branch. Many of the checks were skipped due to incorrect dependency in Github Actions CI jobs!

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 1f0c7a7 to 027a4c4 Compare April 8, 2026 11:06
@leonardoalunno

Copy link
Copy Markdown
Contributor Author

Rebase done!

@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch 2 times, most recently from 02caefb to 86de76c Compare April 10, 2026 11:05
# Conflicts:
#	.github/workflows/build-documentation.yml
@leonardoalunno
leonardoalunno force-pushed the FINERACT-2535-boolean-runreports branch from 86de76c to d250ddb Compare April 10, 2026 11:08
@adamsaghy
adamsaghy merged commit f1cb567 into apache:develop Apr 17, 2026
43 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.

3 participants