memberNumber as partnerNumber+memberNumberSuffix #13

Merged
hsh-michaelhoennig merged 78 commits from memberNumberSuffix-and-partnerNumber into master 2024-01-24 15:57:16 +01:00
No description provided.
hsh-michaelhoennig added 71 commits 2024-01-24 12:47:12 +01:00
Script that is a able to dump HSDB (legacy) data to csv files.
Dump of "office" module data already implemented.
Reviewed-on: #9
Reviewed-by: Michael Hoennig <michael.hoennig@hostsharing.net>
# Conflicts:
#	src/main/java/net/hostsharing/hsadminng/hs/office/coopassets/HsOfficeCoopAssetsTransactionEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/coopshares/HsOfficeCoopSharesTransactionEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorRepository.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerEntity.java
#	src/main/resources/api-definition/hs-office/hs-office-partner-schemas.yaml
#	src/main/resources/db/changelog/220-hs-office-partner.sql
#	src/main/resources/db/changelog/223-hs-office-partner-rbac.sql
#	src/main/resources/db/changelog/228-hs-office-partner-test-data.sql
#	src/main/resources/db/changelog/270-hs-office-debitor.sql
#	src/main/resources/db/changelog/273-hs-office-debitor-rbac.sql
#	src/main/resources/db/changelog/303-hs-office-membership-rbac.sql
#	src/main/resources/db/changelog/308-hs-office-membership-test-data.sql
#	src/test/java/net/hostsharing/hsadminng/hs/office/coopshares/HsOfficeCoopSharesTransactionEntityUnitTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorEntityPatcherUnitTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorEntityUnitTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipControllerAcceptanceTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipControllerRestTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntityUnitTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerControllerAcceptanceTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/partner/TestHsOfficePartner.java
#	src/test/java/net/hostsharing/hsadminng/rbac/rbacrole/RbacRoleControllerAcceptanceTest.java
#	src/test/resources/migration/dump.sh
hsh-michaelhoennig added 1 commit 2024-01-24 12:50:51 +01:00
hsh-michaelhoennig added 2 commits 2024-01-24 13:23:27 +01:00
hsh-michaelhoennig added 1 commit 2024-01-24 13:25:00 +01:00
hsh-michaelhoennig reviewed 2024-01-24 14:11:10 +01:00
@ -53,2 +60,4 @@
private int shareCount;
/**
* The ooking reference.
Author
Member

B

B
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhoennig reviewed 2024-01-24 14:21:01 +01:00
@ -181,3 +180,3 @@
'(select idName from hs_office_person_iv p where p.uuid = target.personUuid)',
$updates$
debitorNumberPrefix = new.debitorNumberPrefix,
partnerNumber = new.partnerNumber,
Author
Member

entfernen, nicht sinnvoll

entfernen, nicht sinnvoll
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhoennig reviewed 2024-01-24 14:22:20 +01:00
@ -14,3 +14,3 @@
partnerUuid uuid not null references hs_office_partner(uuid),
mainDebitorUuid uuid not null references hs_office_debitor(uuid),
memberNumber numeric(5) not null unique,
memberNumberSuffix char(2) not null check (
Author
Member

add unique constraint mit partnerNumber

add unique constraint mit partnerNumber
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhoennig reviewed 2024-01-24 14:25:47 +01:00
@ -73,3 +73,3 @@
@Test
void globalAdmin_canFindCoopAssetsTransactionsByMemberNumber() {
void globalAdmin_canFindCoopAssetsTransactionsByMemberNumberSuffix() {
Author
Member

ohne "Suffix" im Namen

ohne "Suffix" im Namen
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhoennig reviewed 2024-01-24 14:26:50 +01:00
@ -116,3 +115,3 @@
@Test
void globalAdmin_canFindCoopAssetsTransactionsByMemberNumberAndDateRange() {
void globalAdmin_canFindCoopAssetsTransactionsByMemberNumberSuffixAndDateRange() {
Author
Member

ohne "Suffix" im Namen

ohne "Suffix" im Namen
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhoennig reviewed 2024-01-24 14:28:36 +01:00
@ -73,3 +73,3 @@
@Test
void globalAdmin_canFindCoopSharesTransactionsByMemberNumber() {
void globalAdmin_canFindCoopSharesTransactionsByMemberNumberSuffix() {
Author
Member

ohne "Suffix" im Namen

ohne "Suffix" im Namen
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhoennig reviewed 2024-01-24 14:32:53 +01:00
@ -104,6 +104,12 @@ class HsOfficeDebitorEntityPatcherUnitTest extends PatchUnitTestBase<
HsOfficeDebitorEntity::setBillingContact,
newBillingContact(PATCHED_CONTACT_UUID))
.notNullable(),
new SimpleProperty<>(
Author
Member

Dublette entfernen

Dublette entfernen
hsh-michaelhoennig marked this conversation as resolved
hsh-michaelhierweck requested review from hsh-michaelhierweck 2024-01-24 14:54:03 +01:00
hsh-michaelhierweck refused to review 2024-01-24 14:54:38 +01:00
hsh-michaelhierweck approved these changes 2024-01-24 14:55:03 +01:00
hsh-michaelhoennig added 3 commits 2024-01-24 15:56:41 +01:00
# Conflicts:
#	src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorEntityUnitTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipEntityUnitTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/sepamandate/HsOfficeSepaMandateControllerAcceptanceTest.java
hsh-michaelhoennig merged commit fb974a3b43 into master 2024-01-24 15:57:16 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hostsharing/hs.hsadmin.ng#13
No description provided.