This is an automated email from the ASF dual-hosted git repository.
arnold pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
from da920b182 refactor: add lombok to closure module
new b8f821714 Add CustomAuditHandler for supporting OffsetDateTime and
store in UTC
new d8f483ab4 Refactor Client to support auditable fields
new 176c5700d Refactor Loan to support auditable fields
new 35cc1fc0d Refactor Loan Transaction to support auditable fields
new 25823a937 Fix some tests
new 700038020 Apply fixes (based on review)
The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
...DateAdapter.java => OffsetDateTimeAdapter.java} | 20 +-
.../core/auditing/CustomDateTimeProvider.java | 53 ++++++
.../core/auditing/JpaAuditingHandlerRegistrar.java | 34 ++++
.../infrastructure/core/config/JPAConfig.java | 3 +
.../AbstractAuditableWithUTCDateTimeCustom.java | 108 +++++++++++
.../core/domain/AuditableFieldsConstants.java} | 17 +-
.../serialization/GoogleGsonSerializerHelper.java | 3 +
.../infrastructure/core/service/DateUtils.java | 6 +
...etailsReadPlatformServiceJpaRepositoryImpl.java | 2 +-
.../api/InternalClientInformationApiResource.java | 88 +++++++++
.../fineract/portfolio/client/domain/Client.java | 36 ++--
.../service/ClientReadPlatformServiceImpl.java | 4 +-
.../data/LoanTransactionData.java | 8 +-
.../api/InternalLoanInformationApiResource.java | 111 +++++++++++
.../portfolio/loanaccount/domain/Loan.java | 18 +-
.../loanaccount/domain/LoanTransaction.java | 14 +-
...ationWritePlatformServiceJpaRepositoryImpl.java | 3 +-
.../loanaccount/service/LoanAssembler.java | 9 +-
.../service/LoanReadPlatformServiceImpl.java | 3 +-
.../LoanWritePlatformServiceJpaRepositoryImpl.java | 4 +-
.../transfer/api/TransferApiConstants.java | 12 +-
.../data/auditing/CustomAuditingHandler.java | 167 ++++++++++++++++
.../src/main/resources/application.properties | 2 +
.../tenant-store/changelog-tenant-store.xml | 1 +
.../parts/0005_jdbc_connection_string.xml} | 10 +-
.../db/changelog/tenant/changelog-tenant.xml | 1 +
.../parts/0019_refactor_loan_transaction.xml | 4 +-
.../tenant/parts/0020_add_audit_entries.xml | 141 ++++++++++++++
.../core/auditing/CustomDateTimeProviderTest.java | 71 +++++++
.../data/auditing/CustomAuditingHandlerTest.java | 119 ++++++++++++
.../ClientAuditingIntegrationTest.java | 133 +++++++++++++
.../LoanAuditingIntegrationTest.java | 201 +++++++++++++++++++
.../LoanTransactionAuditingIntegrationTest.java | 212 +++++++++++++++++++++
.../integrationtests/common/ClientHelper.java | 9 +-
.../common/loans/LoanTransactionHelper.java | 35 ++++
.../useradministration/users/UserHelper.java | 13 ++
36 files changed, 1582 insertions(+), 93 deletions(-)
copy
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/api/{DateAdapter.java
=> OffsetDateTimeAdapter.java} (67%)
create mode 100644
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/auditing/CustomDateTimeProvider.java
create mode 100644
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/auditing/JpaAuditingHandlerRegistrar.java
create mode 100644
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/domain/AbstractAuditableWithUTCDateTimeCustom.java
copy
fineract-provider/src/main/java/org/apache/fineract/{portfolio/fund/service/FundWritePlatformService.java
=> infrastructure/core/domain/AuditableFieldsConstants.java} (57%)
create mode 100644
fineract-provider/src/main/java/org/apache/fineract/portfolio/client/api/InternalClientInformationApiResource.java
create mode 100644
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/InternalLoanInformationApiResource.java
create mode 100644
fineract-provider/src/main/java/org/springframework/data/auditing/CustomAuditingHandler.java
copy
fineract-provider/src/main/resources/db/changelog/{tenant/parts/0006_product_loan_disallow_expected_disbursements.xml
=> tenant-store/parts/0005_jdbc_connection_string.xml} (79%)
create mode 100644
fineract-provider/src/main/resources/db/changelog/tenant/parts/0020_add_audit_entries.xml
create mode 100644
fineract-provider/src/test/java/org/apache/fineract/infrastructure/core/auditing/CustomDateTimeProviderTest.java
create mode 100644
fineract-provider/src/test/java/org/springframework/data/auditing/CustomAuditingHandlerTest.java
create mode 100644
integration-tests/src/test/java/org/apache/fineract/integrationtests/ClientAuditingIntegrationTest.java
create mode 100644
integration-tests/src/test/java/org/apache/fineract/integrationtests/LoanAuditingIntegrationTest.java
create mode 100644
integration-tests/src/test/java/org/apache/fineract/integrationtests/LoanTransactionAuditingIntegrationTest.java