Skip to content

FINERACT-2181: Global configuration queries now return proper http codes - #4405

Merged
adamsaghy merged 1 commit into
apache:developfrom
openMF:PS-2295-api-fetch-config-by-name-returns-500-for-invalid-config-name
Mar 5, 2025
Merged

FINERACT-2181: Global configuration queries now return proper http codes#4405
adamsaghy merged 1 commit into
apache:developfrom
openMF:PS-2295-api-fetch-config-by-name-returns-500-for-invalid-config-name

Conversation

@Cocoa-Puffs

@Cocoa-Puffs Cocoa-Puffs commented Mar 3, 2025

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 https://github.com/apache/fineract/#pull-requests

  • 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 coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/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

  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@adamsaghy

Copy link
Copy Markdown
Contributor

@Cocoa-Puffs FINERACT-2081 was a story to cover minor changes in 1.11. Since this version of release process started, we cannot use this story anymore. Kindly use the https://issues.apache.org/jira/browse/FINERACT-2196 instead

@Cocoa-Puffs
Cocoa-Puffs force-pushed the PS-2295-api-fetch-config-by-name-returns-500-for-invalid-config-name branch from f8e1547 to 23faa22 Compare March 4, 2025 15:16
@Cocoa-Puffs Cocoa-Puffs changed the title FINERACT-2081: Global configuration queries now return proper http codes FINERACT-2181: Global configuration queries now return proper http codes Mar 4, 2025
@Cocoa-Puffs
Cocoa-Puffs force-pushed the PS-2295-api-fetch-config-by-name-returns-500-for-invalid-config-name branch from 1c4d44e to 88750c6 Compare March 5, 2025 09:44
@Cocoa-Puffs
Cocoa-Puffs force-pushed the PS-2295-api-fetch-config-by-name-returns-500-for-invalid-config-name branch from 88750c6 to 5204be3 Compare March 5, 2025 09:45
@Cocoa-Puffs
Cocoa-Puffs marked this pull request as ready for review March 5, 2025 13:10
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;

@Order(1)

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.

Why do we need @Order? This isn't a good practice for tests because it breaks their atomicity and independence.

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.

This test broke non deterministically. When I pushed the branch the tests ran without problems, but that test failed on the pr. I have another branch in the works and on that branch the tests failed, but ran without errors on the pr.

I wrote to @adamsaghy about this and he suggested adding an order on that test so it would run first. Thereby minimizing the chance of the test failing due to the async validations and checks in it.

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.

There are exceptions, like this where the catch up functionality responsibility to pick up every loan that is considered behind (based on date) and run the COB on them till the current business date.

if these type of tests got executed in the middle of the integration tests or at the end there will be a lot of loan to be processed, so it make sense to do it early stage

@adamsaghy
adamsaghy merged commit 1921606 into apache:develop Mar 5, 2025
@adamsaghy
adamsaghy deleted the PS-2295-api-fetch-config-by-name-returns-500-for-invalid-config-name branch March 5, 2025 14:06
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