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

Fix : Update Profile when synchronized profile property setting from AD - EXO-65023 - Meeds-io/meeds#1084 #85

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

sofyenne
Copy link
Contributor

@sofyenne sofyenne commented Sep 1, 2023

Prior to this change, when we searched for synchronized people by their phone numbers, no results were displayed. This issue was due to the multi-valued synchronized property, which was saved as a map of string key-value pairs like "phones.home."

This change is going to prevent the profile property from being saved using the old user profile format and will instead be saved in the format of parent and child using a map of string and object key-value pairs.
It also adds the Mockito framework.

@sonarcloud
Copy link

sonarcloud bot commented Sep 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@sofyenne sofyenne marked this pull request as ready for review September 4, 2023 15:41
@sofyenne sofyenne requested a review from ahamdi September 4, 2023 15:56
Copy link
Member

@ahamdi ahamdi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COuld you add a UT for this change too ?

}
return internalUserProfile;
listenerService.broadcast(IDMExternalStoreService.USER_PROFILE_ADDED_FROM_EXTERNAL_STORE, this, userInfoMap);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should not be fired unles there is a modification

}
return internalUserProfile;
listenerService.broadcast(IDMExternalStoreService.USER_PROFILE_ADDED_FROM_EXTERNAL_STORE, this, userInfoMap);
return null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this function does not have top return a value, we change the signature, otherwise we return the user profile as it was done

@sofyenne sofyenne force-pushed the Task/65023 branch 3 times, most recently from 4b77ead to d0082d5 Compare September 7, 2023 11:50
@exo-swf exo-swf marked this pull request as draft September 7, 2023 11:52
@exo-swf
Copy link
Contributor

exo-swf commented Sep 7, 2023

Your PR triggers too many exo-ci builds! Please finish your work and then, set your PR ready! Thank you

@sofyenne sofyenne marked this pull request as ready for review September 7, 2023 12:58
@sofyenne sofyenne force-pushed the Task/65023 branch 2 times, most recently from 88e287a to a5916a7 Compare September 7, 2023 14:06
@exo-swf exo-swf marked this pull request as draft September 7, 2023 14:08
@exo-swf
Copy link
Contributor

exo-swf commented Sep 7, 2023

Your PR triggers too many exo-ci builds! Please finish your work and then, set your PR ready! Thank you

@sofyenne sofyenne marked this pull request as ready for review September 7, 2023 14:15
@sofyenne sofyenne force-pushed the Task/65023 branch 3 times, most recently from 454c6ba to 97dc253 Compare September 7, 2023 16:05
@exo-swf exo-swf marked this pull request as draft September 7, 2023 16:07
@exo-swf
Copy link
Contributor

exo-swf commented Sep 7, 2023

Your PR triggers too many exo-ci builds! Please finish your work and then, set your PR ready! Thank you

@sofyenne sofyenne marked this pull request as ready for review September 7, 2023 16:16
@sofyenne sofyenne force-pushed the Task/65023 branch 5 times, most recently from be8de9e to cb43a0b Compare September 7, 2023 20:17
…AD - EXO-65023 - Meeds-io/meeds#1084

update ipmortUserProfile method and add the unit test

update UT
@exo-swf
Copy link
Contributor

exo-swf commented Sep 7, 2023

Your PR triggers too many exo-ci builds! Please finish your work and then, set your PR ready! Thank you

@ahamdi ahamdi marked this pull request as ready for review September 8, 2023 08:50
@sofyenne sofyenne requested a review from ahamdi September 8, 2023 14:33
@sofyenne sofyenne enabled auto-merge (squash) September 8, 2023 14:34
@sofyenne sofyenne merged commit bcd3dc9 into feature/maintenance Sep 8, 2023
1 of 2 checks passed
@sofyenne sofyenne deleted the Task/65023 branch September 8, 2023 15:43
exo-swf pushed a commit that referenced this pull request Sep 11, 2023
…AD - EXO-65023 - Meeds-io/meeds#1084 (#85)

Prior to this change, when we searched for synchronized people by their phone numbers, no results were displayed. This issue was due to the multi-valued synchronized property, which was saved as a map of string key-value pairs like "phones.home."

This change is going to prevent the profile property from being saved using the old user profile format and will instead be saved in the format of parent and child using a map of string and object key-value pairs.
It also adds the Mockito framework.
sofyenne added a commit that referenced this pull request Sep 13, 2023
…AD - EXO-65023 - Meeds-io/meeds#1084 (#85)

Prior to this change, when we searched for synchronized people by their phone numbers, no results were displayed. This issue was due to the multi-valued synchronized property, which was saved as a map of string key-value pairs like "phones.home."

This change is going to prevent the profile property from being saved using the old user profile format and will instead be saved in the format of parent and child using a map of string and object key-value pairs.
It also adds the Mockito framework.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants