Skip to content
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

Merged
merged 46 commits into from
Jul 18, 2024
Merged

User profile replica #173

merged 46 commits into from
Jul 18, 2024

Conversation

ElisKina-dev
Copy link
Collaborator

merged dev with userProfile

GabrieleMaiocchiFilippo and others added 30 commits May 15, 2024 11:59
# Conflicts:
#	src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorCodeEnum.java
ElisKina-dev and others added 16 commits June 6, 2024 10:14
# 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

This log entry depends on a
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

This log entry depends on a
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

This log entry depends on a
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

This log entry depends on a
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

This log entry depends on a
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

This log entry depends on a
user-provided value
.
Copy link

@ElisKina-dev ElisKina-dev merged commit 54fa31b into dev Jul 18, 2024
9 of 10 checks passed
@ElisKina-dev ElisKina-dev deleted the userProfileReplica branch July 18, 2024 10:48
Copy link

🎉 This PR is included in version 1.19.0-dev.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Sep 3, 2024

🎉 This PR is included in version 1.21.0-dev.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 1.25.0-dev.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants