Backbase / stream-services

Stream Services are an Open-Source accelerator to connect with Backbase "out-of-the-box" components responsible for orchestrating calls to Banking Services.
http://engineering.backbase.com/stream-services/
Other
28 stars 20 forks source link

Added a flag to skip identity updates #397

Closed shafiquech closed 8 months ago

shafiquech commented 8 months ago

Description

This PR contains add a flag to skip updates to User in Identity. After the recent Identity and Core Service Upgrade (2023.09-LTS) simultaneously updates to the Identity User often results in HTTP 409 Conflict this happens in the scenarios where there are more than 1 service agreements for a single user (i.e. one for Retail and other for Business). To make the change seamless for existing consumers the default value is set to true.

Reference ISD ticket: https://backbase.atlassian.net/servicedesk/customer/portal/27/ISD-318

Checklist

shafiquech commented 8 months ago

instead of this, why not simply set user.setIdentityLinkStrategy(IDENTITY_AGNOSTIC) in the request payload?

@uesleilima That can not be done, we still need IMPORT_FROM_IDENTIY identity because we create the user in identity during enrollment process. This is more like a partial of IMPORT_FROM_IDENTIY i.e do import but do not update if its already in identity to avoid the issue mentioned in desc.

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud