-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User profile replica #173
User profile replica #173
Conversation
# Conflicts: # src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorCodeEnum.java
…and added delete of association
… into userProfile
… into userProfile
… into userProfile
… into userProfile
… into userProfile
… into userProfile
… into userProfile
# Conflicts: # src/main/java/it/gov/pagopa/atmlayer/service/model/dto/FileS3Dto.java # src/main/java/it/gov/pagopa/atmlayer/service/model/dto/UserProfileAllDto.java # src/main/java/it/gov/pagopa/atmlayer/service/model/dto/UserProfileCreationDto.java # src/main/java/it/gov/pagopa/atmlayer/service/model/dto/UserProfileDto.java # src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorType.java # src/main/java/it/gov/pagopa/atmlayer/service/model/mapper/UserProfileMapper.java # src/main/java/it/gov/pagopa/atmlayer/service/model/model/WorkflowResourceFrontEndDTO.java # src/main/java/it/gov/pagopa/atmlayer/service/model/resource/BpmnResource.java # src/main/java/it/gov/pagopa/atmlayer/service/model/resource/UserProfileResource.java # src/main/java/it/gov/pagopa/atmlayer/service/model/resource/WorkflowResourceResource.java # src/main/java/it/gov/pagopa/atmlayer/service/model/service/UserProfileService.java # src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/BpmnVersionServiceImpl.java # src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/UserProfileServiceImpl.java # src/test/java/it/gov/pagopa/atmlayer/service/model/dto/UserProfileCreationDtoTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/enumeration/UserProfileEnumTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/mapper/WorkflowResourceMapperTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/model/ATMLayerErrorResponseTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/resource/BpmnResourceTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/resource/ResourceEntityResourceTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/resource/UserProfileResourceTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/resource/WorkflowResourceResourceTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/BpmnVersionServiceImplTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImplTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/S3ObjectStoreServiceImplTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/UserProfileServiceImplTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/utils/BpmnUtilsTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/utils/FileUtilitiesTest.java # src/test/java/it/gov/pagopa/atmlayer/service/model/validators/UserProfileValidatorTest.java # src/test/resources/integration-test/output/result.html # src/test/resources/integration-test/output/result.json
@WithTransaction | ||
public Uni<User> insertUser(UserInsertionDTO userInsertionDTO) { | ||
String userId = userInsertionDTO.getUserId(); | ||
log.info("Inserting user with userId : {}", userId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
.onItem() | ||
.transformToUni(Unchecked.function(x -> { | ||
if (x != null) { | ||
log.error("userId {} already exists", userId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
.onItem() | ||
.transformToUni(Unchecked.function(x -> { | ||
if (x != null) { | ||
log.error("userId {} already exists", user.getUserId()); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
This log entry depends on a
user-provided value
@WithTransaction | ||
public Uni<User> updateUser(UserInsertionDTO userInsertionDTO) { | ||
String userId = userInsertionDTO.getUserId(); | ||
log.info("Updating user with userId : {}", userId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
@Override | ||
@WithTransaction | ||
public Uni<Boolean> deleteUser(String userId) { | ||
log.info("Deleting user with userId : {}", userId); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
.onItem() | ||
.transformToUni(existingUserProfile -> { | ||
if (existingUserProfile == null) { | ||
log.error("UserProfile for userId {} and profileId {} doesn't exist", userProfilesIDs.getUserId(), userProfilesIDs.getProfileId()); |
Check failure
Code scanning / CodeQL
Log Injection High
user-provided value
jacoco
|
🎉 This PR is included in version 1.19.0-dev.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.21.0-dev.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.25.0-dev.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
merged dev with userProfile