-
Notifications
You must be signed in to change notification settings - Fork 126
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
Remove the unnecessary code line because of fix in common #2135
base: dev
Are you sure you want to change the base?
Changes from 4 commits
87e051c
44e0f07
5d8f15c
304ba3b
2780cc6
e6614e3
a4ae188
11605bb
b07663c
862c126
f87a447
f799c82
73c241c
2a024b5
c10ec23
0ce6946
74d3658
1262d2c
b392bda
0b1cd98
2050eb2
319bd43
c6f864a
856c013
d2f0162
43be7bf
f056483
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,8 @@ | |
import java.util.HashSet; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Objects; | ||
import java.util.UUID; | ||
|
||
|
||
/** | ||
|
@@ -360,8 +362,8 @@ public static SignUpStartCommandParameters createSignUpStartCommandParameters( | |
.challengeType(configuration.getChallengeTypes()) | ||
.userAttributes(userAttributes) | ||
// Start of the flow, so there is no correlation ID to use from a previous API response. | ||
// Set it to a default value. | ||
.correlationId(DiagnosticContext.INSTANCE.getThreadCorrelationId()) | ||
// If default value "UNSET", generate a new UUID as correlationId. | ||
.correlationId(Objects.equals(DiagnosticContext.INSTANCE.getThreadCorrelationId(), "UNSET") ? UUID.randomUUID().toString() : DiagnosticContext.INSTANCE.getThreadCorrelationId()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This logic doesn't belong here. it's the responsibility of DiagnosticContext to generate an ID, and do additional null checks to ensure an actual ID is returned. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update the logic inside DiagnosticContext getThreadCorrelationId() |
||
.build(); | ||
} | ||
|
||
|
@@ -563,8 +565,8 @@ public static SignInStartCommandParameters createSignInStartCommandParameters( | |
.challengeType(configuration.getChallengeTypes()) | ||
.scopes(scopes) | ||
// Start of the flow, so there is no correlation ID to use from a previous API response. | ||
// Set it to a default value. | ||
.correlationId(DiagnosticContext.INSTANCE.getThreadCorrelationId()) | ||
// If default value "UNSET", generate a new UUID as correlationId. | ||
.correlationId(Objects.equals(DiagnosticContext.INSTANCE.getThreadCorrelationId(), "UNSET") ? UUID.randomUUID().toString() : DiagnosticContext.INSTANCE.getThreadCorrelationId()) | ||
.build(); | ||
|
||
return commandParameters; | ||
|
@@ -792,8 +794,8 @@ public static ResetPasswordStartCommandParameters createResetPasswordStartComman | |
.challengeType(configuration.getChallengeTypes()) | ||
.clientId(configuration.getClientId()) | ||
// Start of the flow, so there is no correlation ID to use from a previous API response. | ||
// Set it to a default value. | ||
.correlationId(DiagnosticContext.INSTANCE.getThreadCorrelationId()) | ||
// If default value "UNSET", generate a new UUID as correlationId. | ||
.correlationId(Objects.equals(DiagnosticContext.INSTANCE.getThreadCorrelationId(), "UNSET") ? UUID.randomUUID().toString() : DiagnosticContext.INSTANCE.getThreadCorrelationId()) | ||
.build(); | ||
|
||
return commandParameters; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert it back before the merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot change the targe branch in the DevOps portal thus change the command here.