-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FINERACT-2320: Return false instead of throwing exception when LOAN_COB is disabled #5283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FINERACT-2320: Return false instead of throwing exception when LOAN_COB is disabled #5283
Conversation
Please run: |
993ad03 to
0a23eaa
Compare
The test failures (testPostInterestNotZero) should be resolved since they were caused by being behind upstream. |
They might have been resolved. Can you rebase with latest develop branch? Please let me know if it is still failing and i will take a look. |
|
adamsaghy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly check the failing build!
0a23eaa to
9095203
Compare
Can you please share the details of the failing case, also is there any way where I can see the details of failing case? |
|
@airajena Please rebase this PR with latest |
adamsaghy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be rebased as base branch is out of sync.
|
Duplicate #5291 |
Description
Fixes the error "Job LOAN_COB is not found or it is disabled" that appears when navigating to Manage Jobs with LOAN_COB disabled.
Root Cause
When
fineract.job.loan-cob-enabled=false, the/api/v1/loans/is-catch-up-runningendpoint throwsJobIsNotFoundOrNotEnabledException, which maps to HTTP 403 Forbidden.Fix
Changed the
isCatchUpRunning()method to return a defaultIsCatchUpRunningDTO(false, null)when the service is not available, instead of throwing an exception.Before:
After:
Related Issue
Fixes FINERACT-2320