cleanup
This commit is contained in:
parent
4ef2d5b66b
commit
c85d47c237
@ -20,7 +20,8 @@ wrapper {
|
||||
gradleVersion = '8.5'
|
||||
}
|
||||
|
||||
// FIXME: Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3
|
||||
// TODO.impl: self-attaching is deprecated, see:
|
||||
// https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3
|
||||
|
||||
configurations {
|
||||
compileOnly {
|
||||
|
@ -142,6 +142,7 @@ public class HsOfficeCoopSharesTransactionEntity implements Stringifyable, BaseE
|
||||
directlyFetchedByDependsOnColumn(),
|
||||
NOT_NULL)
|
||||
|
||||
// the membership:ADMIN is not to be confused with the member itself, it's an account manager of the coop
|
||||
.toRole("membership", ADMIN).grantPermission(INSERT)
|
||||
.toRole("membership", ADMIN).grantPermission(UPDATE)
|
||||
.toRole("membership", AGENT).grantPermission(SELECT);
|
||||
|
@ -169,7 +169,7 @@ public class HsOfficeMembershipController implements HsOfficeMembershipsApi {
|
||||
if (entity.getValidity().hasUpperBound()) {
|
||||
resource.setValidTo(entity.getValidity().upper().minusDays(1));
|
||||
}
|
||||
resource.getPartner().setPartnerNumber(entity.getPartner().getTaggedPartnerNumber()); // FIXME: use partner mapper?
|
||||
resource.getPartner().setPartnerNumber(entity.getPartner().getTaggedPartnerNumber()); // TODO.refa: use partner mapper?
|
||||
};
|
||||
|
||||
final BiConsumer<HsOfficeMembershipInsertResource, HsOfficeMembershipEntity> SEPA_MANDATE_RESOURCE_TO_ENTITY_POSTMAPPER = (resource, entity) -> {
|
||||
|
@ -43,7 +43,10 @@ end; $$;
|
||||
|
||||
do language plpgsql $$
|
||||
begin
|
||||
call base.defineContext('creating coopSharesTransaction test-data');
|
||||
call base.defineContext('creating coopSharesTransaction test-data',
|
||||
null,
|
||||
'superuser-alex@hostsharing.net',
|
||||
'rbac.global#global:ADMIN');
|
||||
SET CONSTRAINTS ALL DEFERRED;
|
||||
|
||||
call hs_office.coopsharetx_create_test_data(10001, '01');
|
||||
|
@ -49,7 +49,10 @@ end; $$;
|
||||
|
||||
do language plpgsql $$
|
||||
begin
|
||||
call base.defineContext('creating coopAssetsTransaction test-data');
|
||||
call base.defineContext('creating coopAssetsTransaction test-data',
|
||||
null,
|
||||
'superuser-alex@hostsharing.net',
|
||||
'rbac.global#global:ADMIN');
|
||||
SET CONSTRAINTS ALL DEFERRED;
|
||||
|
||||
call hs_office.coopassettx_create_test_data(10001, '01');
|
||||
|
Loading…
x
Reference in New Issue
Block a user