This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit 0af182c14b45a09216c1ef2b964b0f0277486abe
Merge: 5f92961df0 a769be83f9
Author: Adam Saghy <[email protected]>
AuthorDate: Mon Nov 30 10:04:40 2026 +0000

    Merge pull request #6913 from 
adamsaghy/FINERACT-2485/step-7-idempotency-module
    
    FINERACT-2485: Add idempotency to the new command processing (step 7/9)

 build.gradle                                       |   2 +
 .../command/audit/AuditCommandConstants.java       |   8 +
 .../command/audit/hook/AuditCommandHookAfter.java  |   3 +-
 .../command/audit/hook/AuditCommandHookBefore.java |   3 +-
 .../command/audit/hook/AuditCommandHookError.java  |   3 +-
 fineract-command-idempotency/build.gradle          |  72 ++++++
 fineract-command-idempotency/dependencies.gradle   |  59 +++++
 .../idempotency/IdempotencyCommandConstants.java   |  52 ++++
 .../idempotency/IdempotencyCommandProperties.java  |  69 +++++
 .../check/IdempotencyCommandPropertyCheck.java     | 136 ++++++++++
 .../distinctor/CustomIdempotencyDistinctor.java    |  52 ++++
 .../CustomIdempotencyDistinctorType.java           |  39 +++
 ...tyAndActionNameCustomIdempotencyDistinctor.java |  39 +++
 .../distinctor/NoCustomIdempotencyDistinctor.java  |  35 +++
 .../hook/IdempotencyCheckCommandHook.java          | 212 ++++++++++++++++
 .../hook/IdempotencyKeyHeaderCommandHook.java      |  23 +-
 .../IdempotencyCommandAutoConfiguration.java       |  77 ++++++
 ...tencyCommandPropertyCheckAutoConfiguration.java |  35 +++
 .../web/IdempotencyCommandExceptionHandler.java    |  50 ++++
 .../web/IdempotencyCommandExceptionMapper.java     |  53 ++++
 .../web/IdempotencyResponseCaptureFilter.java      | 172 +++++++++++++
 ...rk.boot.autoconfigure.AutoConfiguration.imports |   2 +
 .../idempotency/IdempotencyEndToEndTest.java       | 266 +++++++++++++++++++
 ...dempotencyEntityAndActionScopeEndToEndTest.java | 137 ++++++++++
 .../IdempotencyNoDistinctorEndToEndTest.java       | 110 ++++++++
 .../command/idempotency/TestConfiguration.java     |  38 +++
 .../check/IdempotencyCommandPropertyCheckTest.java | 150 +++++++++++
 .../CustomIdempotencyDistinctorTest.java           |  97 +++++++
 .../hook/IdempotencyCheckCommandHookTest.java      | 281 +++++++++++++++++++++
 .../web/IdempotencyResponseCaptureFilterTest.java  | 203 +++++++++++++++
 .../src/test/resources/application-test.properties |  45 ++++
 .../org/apache/fineract/messages.properties        |  71 ++++++
 .../test/sample/api/DummyApiController.java        |  15 ++
 .../fineract/command/core/CommandProperties.java   |   3 -
 .../AbstractCommandIdempotencyException.java       |  57 +++++
 .../CommandIdempotencyConflictException.java       |  37 +++
 .../CommandIdempotencyFailedException.java         |  31 +++
 .../CommandIdempotencyInProgressException.java     |  33 +++
 .../CommandIdempotencyProcessedException.java      |  30 +++
 .../command/hook/ServletHeadersCommandHook.java    |   6 -
 .../fineract/command/util/ServletHeaderUtil.java   |  21 ++
 .../fineract/command/CommandSampleApiTest.java     |  21 +-
 .../exception/CommandIdempotencyExceptionTest.java |  74 ++++++
 .../en/chapters/architecture/command-audit.adoc    | 144 +++++++++++
 .../docs/en/chapters/architecture/idempotency.adoc | 149 ++++++++++-
 .../src/docs/en/chapters/architecture/index.adoc   |   2 +
 fineract-provider/dependencies.gradle              |   1 +
 .../src/main/resources/application.properties      |  14 +-
 ...dempotencyCommandExceptionMapperJerseyTest.java | 123 +++++++++
 .../src/test/resources/application-test.properties |   4 +
 settings.gradle                                    |   1 +
 51 files changed, 3314 insertions(+), 46 deletions(-)


Reply via email to