Skip to content

FINERACT-2571: Migrate NotificationHelper to fineract-client#5713

Open
lliikkii7722-ops wants to merge 2 commits intoapache:developfrom
lliikkii7722-ops:fix-notification-helper-feign
Open

FINERACT-2571: Migrate NotificationHelper to fineract-client#5713
lliikkii7722-ops wants to merge 2 commits intoapache:developfrom
lliikkii7722-ops:fix-notification-helper-feign

Conversation

@lliikkii7722-ops
Copy link
Copy Markdown

Description

This PR migrates NotificationHelper from legacy Utils.performServerGet usage
to fineract-client + Calls.ok.

Changes

  • Replaced legacy GET call in NotificationHelper#getNotifications
  • Removed manual JSON parsing in favor of typed fineract-client response

Notes

  • Small and focused helper migration
  • No business logic changes

@lliikkii7722-ops
Copy link
Copy Markdown
Author

Hi,

I checked the failing workflows.

The PR compliance check is failing because I have not yet added a Jira ticket ID, and the signed commits check is failing because the commit is currently unsigned.

For the build/test failures, the logs appear to show an SWT/Maven dependency resolution issue that seems unrelated to the NotificationHelper change in this PR.

Please let me know if you would prefer that I wait for Jira approval first and then update the PR accordingly.

Thank you.

@adamsaghy
Copy link
Copy Markdown
Contributor

You have a missing licence header:

Execution failed for task ':rat'.
> A failure occurred while executing org.nosphere.apache.rat.RatWork
   > Apache Rat audit failure - 1 unapproved license
     	See file:///home/runner/work/fineract/fineract/build/reports/rat/index.html

Failing integration test:

org.apache.fineract.integrationtests.NotificationApiTest
  
    Test testNotificationRetrievalWorksWhenNoNotificationsAreAvailable() PASSED
    Test testNotificationRetrievalWorksWhenOneNotificationIsAvailable() FAILED (5.2s)
  
    org.opentest4j.AssertionFailedError: expected: <1> but was: <6>
        at app//org.apache.fineract.integrationtests.NotificationApiTest.testNotificationRetrievalWorksWhenOneNotificationIsAvailable(NotificationApiTest.java:104)

@lliikkii7722-ops lliikkii7722-ops changed the title FINERACT: Migrate NotificationHelper to fineract-client FINERACT-2571: Migrate NotificationHelper to fineract-client Mar 30, 2026
@lliikkii7722-ops
Copy link
Copy Markdown
Author

Hi,

I have addressed the review comments:

  • Added Jira ticket and updated PR title
  • Fixed failing tests and integration issues
  • Removed unnecessary log files and ensured RAT check passes

Could you please approve the workflows so that CI checks can run?

Thank you!

@lliikkii7722-ops
Copy link
Copy Markdown
Author

You have a missing licence header:

Execution failed for task ':rat'.
> A failure occurred while executing org.nosphere.apache.rat.RatWork
   > Apache Rat audit failure - 1 unapproved license
     	See file:///home/runner/work/fineract/fineract/build/reports/rat/index.html

Failing integration test:

org.apache.fineract.integrationtests.NotificationApiTest
  
    Test testNotificationRetrievalWorksWhenNoNotificationsAreAvailable() PASSED
    Test testNotificationRetrievalWorksWhenOneNotificationIsAvailable() FAILED (5.2s)
  
    org.opentest4j.AssertionFailedError: expected: <1> but was: <6>
        at app//org.apache.fineract.integrationtests.NotificationApiTest.testNotificationRetrievalWorksWhenOneNotificationIsAvailable(NotificationApiTest.java:104)

Hi,

Thank you for the feedback.

I will fix the missing license header issue and update the failing integration test accordingly.

I will push the updated changes shortly.

Thank you!

@lliikkii7722-ops lliikkii7722-ops force-pushed the fix-notification-helper-feign branch from 98c8ff9 to ef0a69e Compare March 30, 2026 16:49
@AshharAhmadKhan
Copy link
Copy Markdown
Contributor

Hey @lliikkii7722-ops,

Please GPG sign your commits, the signed commits CI check is still failing.

The integration test is still failing, please check the logs and re-review your getNotifications logic.

Also @Deprecated(forRemoval = true) is still on the migrated method, worth a re-review.

@lliikkii7722-ops lliikkii7722-ops force-pushed the fix-notification-helper-feign branch 2 times, most recently from 5d2a260 to c4c9db4 Compare March 31, 2026 14:43
@lliikkii7722-ops lliikkii7722-ops force-pushed the fix-notification-helper-feign branch from c4c9db4 to b16dac4 Compare March 31, 2026 14:44
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