-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Responded to feedback in PR #2313 #2318
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
Responded to feedback in PR #2313 #2318
Conversation
| if (_didFullyEvaluateDisplayName || !string.IsNullOrEmpty(Action.DisplayName)) | ||
| { | ||
| return false; | ||
| return true; |
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.
This is a subtle change in behavior, but fortunately there weren't many existing callers (mainly just unit tests) and even fewer existing callers that even bothered checking the return value.
| { | ||
| if (updated) | ||
| { | ||
| actionRunner.ExecutionContext.UpdateTimelineRecordDisplayName(actionRunner.DisplayName); |
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.
when updated is true, actionRunner.DisplayName is effectively guaranteed to be non-null.
| } | ||
| catch (Exception ex) | ||
| { | ||
| Trace.Warning("Caught exception while attempting to evaulate/update the step's DisplayName. Exception Details: {0}", ex); |
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.
now a warning since I can't assume anything about the caller of this new method.
| DisplayName = explicitDisplayName, | ||
| DisplayNameToken = new BasicExpressionToken(null, null, null, "matrix.node"), |
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.
in this unit test, we're setting both DisplayName and DisplayNameToken.
see #2313
Note above: if approved, I'll merge this branch into the branch that backs #2313 (users/jww3/jit-displayname-evaluation). That PR already has a detailed description.
Before
After