Commit Graph

634 Commits

Author SHA1 Message Date
Michael Hoennig
acd1bd9e51 rename grantedByRoleUuid to userGrantsByRoleUuid 2024-03-23 11:38:26 +01:00
Michael Hoennig
6b8d677670 fix TestCustomer tests + remove hack in currentSubjects() 2024-03-23 11:35:05 +01:00
Michael Hoennig
2c552ff90a fix ImportOfficeData 2024-03-23 10:08:49 +01:00
Michael Hoennig
c02d3237dd fix ArchUnitTest 2024-03-23 07:08:01 +01:00
Michael Hoennig
37f00a19f0 merging master aftermath, ImportOfficeData not fully working yet 2024-03-22 17:23:17 +01:00
Michael Hoennig
6e663cf525 Merge branch 'improved-rbac-generator' into remove-direct-partner-person-and-contact
# Conflicts:
#	src/main/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerController.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerDetailsEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/sepamandate/HsOfficeSepaMandateEntity.java
#	src/main/java/net/hostsharing/hsadminng/rbac/rbacdef/InsertTriggerGenerator.java
#	src/main/java/net/hostsharing/hsadminng/rbac/rbacdef/RbacRestrictedViewGenerator.java
#	src/main/resources/api-definition/hs-office/hs-office-partner-schemas.yaml
#	src/main/resources/db/changelog/123-test-package-rbac.sql
#	src/main/resources/db/changelog/133-test-domain-rbac.sql
#	src/main/resources/db/changelog/223-hs-office-relation-rbac.md
#	src/main/resources/db/changelog/223-hs-office-relation-rbac.sql
#	src/main/resources/db/changelog/228-hs-office-relation-test-data.sql
#	src/main/resources/db/changelog/230-hs-office-partner.sql
#	src/main/resources/db/changelog/233-hs-office-partner-rbac.sql
#	src/main/resources/db/changelog/238-hs-office-partner-test-data.sql
#	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/HsOfficePartnerControllerRestTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationControllerAcceptanceTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationRepositoryIntegrationTest.java
2024-03-22 15:16:34 +01:00
Michael Hoennig
83b16dfe5e imroved indentation 2024-03-22 14:46:29 +01:00
Michael Hoennig
e118cfac73 simplify InsertTriggerGenerator cases 2024-03-22 14:14:17 +01:00
Michael Hoennig
a991c45bc9 code improvements and documentation in InsertTriggerGenerator 2024-03-22 11:28:56 +01:00
Michael Hoennig
20cc98b48e reverse arguments of grantPermissionToRole according to reading order 2024-03-22 10:00:16 +01:00
Michael Hoennig
3551ef087b fix RbacGrantsDiagramService grant limit treatment 2024-03-22 09:49:36 +01:00
Michael Hoennig
0decfe1132 copy improved generators from branch remove-direct-partner-person-and-contact 2024-03-22 09:49:35 +01:00
Michael Hoennig
ae2672e845 fix RbacGrantsDiagramService grant limit treatment 2024-03-22 09:44:33 +01:00
Michael Hoennig
0680b25ecf fix sepa mandate tests 2024-03-22 09:24:38 +01:00
Michael Hoennig
6052cd7b9c coopasset tests 2024-03-22 09:24:30 +01:00
Michael Hoennig
029ea9df9b TODO about conditional grants for rel type REPRESENTATIVE 2024-03-22 08:46:59 +01:00
Michael Hoennig
ac32f1138c fix coopshares tests 2024-03-22 06:40:15 +01:00
Michael Hoennig
f54a699e8c fix memberhip acceptance tests 2024-03-22 06:32:42 +01:00
Michael Hoennig
9b8b50b065 fix memberhip integration tests 2024-03-21 17:14:14 +01:00
Michael Hoennig
fa46f339a8 all debitor tests green 2024-03-21 12:46:07 +01:00
Michael Hoennig
b97243f28f simplified updateRbacGrants for entities with nullable updatable references 2024-03-20 14:09:18 +01:00
Michael Hoennig
d62fcd45cf conditional RBAC update for debitor 2024-03-20 10:06:45 +01:00
Michael Hoennig
bb3f979273 HsOfficeDebitorRepositoryIntegrationTest green 2024-03-20 09:10:33 +01:00
Michael Hoennig
74b20ed86c fix partner rbac system and tests 2024-03-19 09:06:05 +01:00
Michael Hoennig
5e0d9df6f1 fix debitor rbac update rules 2024-03-17 19:35:16 +01:00
Michael Hoennig
cbc524f567 re-generated partner and some fixes in tests 2024-03-16 12:15:04 +01:00
Michael Hoennig
690454d80f fix debitor_iv and person.optionalPartner 2024-03-16 12:12:20 +01:00
Michael Hoennig
86148c3258 fix HsOfficeRelationshipEntity tests 2024-03-15 18:41:02 +01:00
Michael Hoennig
3c8eb13f0a refactory toRole...grantPermission, always use root entity 2024-03-15 16:39:37 +01:00
Michael Hoennig
878a87f1c4 fix HsOfficeSepaMandateRepositoryIntegrationTest 2024-03-15 09:54:09 +01:00
Michael Hoennig
72859015b3 add RbacGrantsDiagramService.ALL_TEST_ENTITY_RELATED and helper method 2024-03-15 09:52:20 +01:00
Michael Hoennig
266cd16b52 new case for insert permission trigger generator: indirect role check (via relation) 2024-03-15 06:18:02 +01:00
Michael Hoennig
386bea0e51 generated Contact RBAC rules, Contact tests green again 2024-03-15 06:17:00 +01:00
Michael Hoennig
6b68b93082 generated BankAccount RBAC rules, BankAccount tests green again 2024-03-14 09:17:54 +01:00
Michael Hoennig
2774707801 WIP 2024-03-13 17:02:49 +01:00
3faf2ea99e rename partnerRole -> partnerRel, relationship -> relation and remove rel-Prefix (relAnchor etc.) (#23)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #23
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-03-13 15:01:24 +01:00
Michael Hoennig
fe23a496e6 test-data-generation working up to membership, fails in coop-shares 2024-03-12 17:41:01 +01:00
Michael Hoennig
76b98eab2e test-data-generation working up to debitor, fails in membership 2024-03-12 16:34:16 +01:00
Michael Hoennig
a9c3df6c7c fix membership test data 2024-03-12 11:51:31 +01:00
907e27ec19 import-debitor-relationship (into intermediate data structure) (#22)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #22
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-03-12 10:13:36 +01:00
Michael Hoennig
9788205724 WIP 2024-03-12 08:31:50 +01:00
Michael Hoennig
e422db9081 Merge remote-tracking branch 'origin/master' into remove-direct-partner-person-and-contact
# Conflicts:
#	src/main/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorEntity.java
#	src/main/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerEntity.java
#	src/main/resources/db/changelog/050-rbac-base.sql
#	src/main/resources/db/changelog/058-rbac-generators.sql
#	src/main/resources/db/changelog/113-test-customer-rbac.sql
#	src/main/resources/db/changelog/123-test-package-rbac.sql
#	src/main/resources/db/changelog/133-test-domain-rbac.sql
#	src/main/resources/db/changelog/203-hs-office-contact-rbac.sql
#	src/main/resources/db/changelog/213-hs-office-person-rbac.sql
#	src/main/resources/db/changelog/223-hs-office-relationship-rbac.md
#	src/main/resources/db/changelog/223-hs-office-relationship-rbac.sql
#	src/main/resources/db/changelog/233-hs-office-partner-rbac.sql
#	src/main/resources/db/changelog/243-hs-office-bankaccount-rbac.md
#	src/main/resources/db/changelog/243-hs-office-bankaccount-rbac.sql
#	src/main/resources/db/changelog/253-hs-office-sepamandate-rbac.sql
#	src/main/resources/db/changelog/273-hs-office-debitor-rbac.sql
#	src/main/resources/db/changelog/303-hs-office-membership-rbac.sql
#	src/test/java/net/hostsharing/hsadminng/hs/office/contact/HsOfficeContactRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/partner/HsOfficePartnerRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonRepositoryIntegrationTest.java
#	src/test/java/net/hostsharing/hsadminng/hs/office/relationship/HsOfficeRelationshipRepositoryIntegrationTest.java
2024-03-11 12:57:32 +01:00
187c0db8e2 RBAC Diagram+PostgreSQL Generator and view->SELECT etc. refactoring (#21)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #21
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-03-11 12:30:43 +01:00
d9558f2cfe add-trigger-object-to-rbacgrant (#18)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #18
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-02-24 09:04:07 +01:00
c7003148ae Merge pull request 'fix misleading findPermissionId naming' (#19) from fix-findPermissionId into master
Reviewed-on: #19
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-02-22 09:27:07 +01:00
Michael Hoennig
8111e092ee WIP for fixing debitor RBAC definition + related references 2024-02-21 13:01:10 +01:00
Michael Hoennig
032ce6d16e fix HsOfficeDebitorEntityPatcherUnitTest 2024-02-20 14:06:05 +01:00
Michael Hoennig
45aab03d36 remove partner from debitor and use debitorRel instead, WIP with working EntityUnitTest 2024-02-20 13:03:17 +01:00
Michael Hoennig
82b7a00dd2 amend HsOfficePersonControllerAcceptanceTest assertion 2024-02-19 14:18:48 +01:00
Michael Hoennig
b61bcea62c fix ImportOfficeData test data+assertions 2024-02-19 13:53:56 +01:00