Commit Graph

657 Commits

Author SHA1 Message Date
Michael Hoennig
cfb3c6d8b4 fix issues from code-review 2024-03-28 12:04:51 +01:00
Michael Hoennig
9997563883 move deletion of debitorRel from JPA Cascade to SQL after delete trigger 2024-03-28 10:24:55 +01:00
Michael Hoennig
37c1886845 move deletion of partnerRel from JPA Cascade to SQL after delete trigger 2024-03-28 10:18:47 +01:00
Michael Hoennig
ca9a865019 cleanup scribbled+temp-documents 2024-03-28 09:25:08 +01:00
Michael Hoennig
d236a7aca4 fix fixme's 2024-03-27 18:17:10 +01:00
Michael Hoennig
8bc3c17b89 fix assumedRole max length, so it appears in error messages 2024-03-27 14:14:15 +01:00
Michael Hoennig
954b24ec7c remove *-generated files 2024-03-27 09:42:15 +01:00
Michael Hoennig
1f59462f1b fix insert grants + assertions and improve generated formatting 2024-03-27 09:30:59 +01:00
Michael Hoennig
3872f5dc19 fixing wrong assertion 2024-03-26 12:17:38 +01:00
Michael Hoennig
f0472a5dc4 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/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/test/java/net/hostsharing/hsadminng/hs/office/membership/HsOfficeMembershipControllerAcceptanceTest.java
2024-03-26 11:29:24 +01:00
4572c6bda0 improved RBAC generators (#26)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #26
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-03-26 11:25:18 +01:00
Michael Hoennig
09fc332dcc fix spurious revoke of insert permission and add sorted for stable order 2024-03-26 09:48:14 +01:00
Michael Hoennig
86bdeaabe3 get rid of fixme, fix or amend to todo 2024-03-25 19:58:58 +01:00
Michael Hoennig
8f080f407d remove calcualted personUuid from hs_office_person 2024-03-25 17:13:49 +01:00
Michael Hoennig
fc51f2a532 avoid nested subselect for insert permission check 2024-03-25 16:26:24 +01:00
Michael Hoennig
86ee6dfe16 code cleanup 2024-03-25 08:55:39 +01:00
Michael Hoennig
399e1d23d9 merging aftermaths 2024-03-25 08:36:42 +01:00
Michael Hoennig
29c7708188 generate indirect permission by indirect foreign key depending on directlyFetchedByDependsOnColumn vs. fetchedBySql 2024-03-25 06:14:49 +01:00
Michael Hoennig
e6ef5b59c7 fix indrirect permission by indirect foreign key 2024-03-25 05:57:58 +01:00
Michael Hoennig
78ecf98913 remove unnecessary try/catch 2024-03-23 11:46:08 +01:00
Michael Hoennig
b75e0c9dd6 remove uncommented code 2024-03-23 11:43:49 +01:00
Michael Hoennig
36d96b543a use _rv in sub-query for partner in DebitorEntity 2024-03-23 11:41:59 +01:00
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