Commit Graph

655 Commits

Author SHA1 Message Date
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
67c1b50239 fix setting relation mark via API (#24)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #24
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-03-14 12:52:24 +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
Michael Hoennig
6a01002a05 all direct partner tests green 2024-02-19 13:21:19 +01:00
Michael Hoennig
717bdca948 WIP 2024-02-16 17:04:48 +01:00
Michael Hoennig
84ce1e34bf Merge branch 'fix-findPermissionId' into remove-direct-partner-person-and-contact
# Conflicts:
#	src/main/resources/db/changelog/050-rbac-base.sql
2024-02-16 16:55:58 +01:00
Michael Hoennig
36654a69d8 fix misleading findPermissionId naming 2024-02-16 16:48:37 +01:00
Michael Hoennig
85ad05a77e improve RbacGrantsMermaidService formatting 2024-02-15 17:20:50 +01:00
Michael Hoennig
fb00b36b2f build graph with Grant nodes and show uuid in RbacGrantsMermaidService 2024-02-15 16:04:48 +01:00
Michael Hoennig
5d9e81630b add allGrantsFrom to RbacGrantsMermaidService 2024-02-14 11:10:21 +01:00
Michael Hoennig
188f5677f5 amend SepaMandate tests according to changed string representation 2024-02-14 09:50:48 +01:00
Michael Hoennig
dee12b8f08 multi line node formatting in RbacGrantsMermaidService 2024-02-13 17:55:16 +01:00
Michael Hoennig
9c03e7441f add RbacGrantsMermaidService and related cleanup 2024-02-13 11:47:02 +01:00
Michael Hoennig
e272b5b2ae amend test data to new grant structure (e.g. person with referrer but no guest+tenant roles) 2024-02-12 20:01:19 +01:00
Michael Hoennig
2df5ddd87e Merge branch 'add-trigger-object-to-rbacgrant' into remove-direct-partner-person-and-contact
# Conflicts:
#	src/main/resources/db/changelog/233-hs-office-partner-rbac.sql
#	src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java
2024-02-12 18:22:10 +01:00
Michael Hoennig
fd1466c667 cleanup 2024-02-12 16:50:57 +01:00
Michael Hoennig
607a6c9424 references and on delete cascade 2024-02-12 16:21:01 +01:00
Michael Hoennig
db76a57807 add rbacgrants.grantedByTriggerOf (WIP: references and delete trigger/cascade still missing) 2024-02-12 15:38:31 +01:00
Michael Hoennig
201a8d34af remove precondition checks, now covered by checks in @BeforeEach and @AfterEach 2024-02-12 13:06:54 +01:00
Michael Hoennig
f71b769cb9 WIP: implement an endpoint to create a Mermaid flowchart with all grants of a given user 2024-02-12 12:27:02 +01:00
Michael Hoennig
370c00923c WIP with fix for Relationship-internal grants and Mermaid dump for user grants 2024-02-11 18:17:44 +01:00
Michael Hoennig
443b9b4b8a fix relationship-related grants (WIP) 2024-02-08 17:36:49 +01:00
Michael Hoennig
ecc91592b0 amend string representations in ImportOfficeData to new toString/toShortString implementations 2024-02-08 14:05:56 +01:00
Michael Hoennig
3261e92b2c remove partner roles and amend grants accordingly 2024-02-08 13:28:13 +01:00
Michael Hoennig
4c6b7beb2d Schema-F um Root-Objekt Beziehungen zu weiteren Objekten ergänzt 2024-02-07 13:47:46 +01:00
Michael Hoennig
4398299854 draft for debitor permission grant model (cleanup + with refundBankAccount) 2024-02-07 13:45:01 +01:00
Michael Hoennig
2bae7dee2f draft for debitor permission grant model (reduced) 2024-02-07 12:33:49 +01:00
Michael Hoennig
a71a7b308f draft for debitor permission grant model (reduced - WIP) 2024-02-07 12:25:47 +01:00
Michael Hoennig
1e7089702c draft for debitor permission grant model (detailed) 2024-02-07 11:30:01 +01:00
Michael Hoennig
28c873212d fixes for partner permission grant model 2024-02-07 11:29:49 +01:00
Michael Hoennig
b8cd633c5a draft for partner permission grant model 2024-02-06 16:57:21 +01:00
Michael Hoennig
5ef16c11d5 improve error message for duplicate grant 2024-02-06 16:19:56 +01:00