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

Formalize TryUpdateDisplayName and EvaluateDisplayName as members of interface IStep #2374

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

jww3
Copy link
Contributor

@jww3 jww3 commented Jan 16, 2023

based on a conversation with @fhammerl regarding #2313

@jww3 jww3 requested a review from a team as a code owner January 16, 2023 19:08
Comment on lines +24 to +25
bool TryUpdateDisplayName(out bool updated);
bool EvaluateDisplayName(DictionaryContextData contextData, IExecutionContext context, out bool updated);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I co-located these in the IStep interface because I strongly suspect the latter can be eliminated in a second pass refactor. Having them side-by-side should make that refactor easier to reason about.

Copy link
Contributor

@fhammerl fhammerl left a comment

Choose a reason for hiding this comment

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

LGTM, let's merge it in the original PR then let's go over the refactoring you mentioned with EvaluateDisplayName

@jww3 jww3 merged commit 9c8a4b4 into users/jww3/jit-displayname-evaluation Jan 23, 2023
@jww3 jww3 deleted the jit-displayname-take3 branch January 23, 2023 12:37
jww3 added a commit that referenced this pull request Feb 7, 2023
…ated. (#2313)

* Defer evaluation of a step's DisplayName until its condition is evaluated.
* Formalize TryUpdateDisplayName and EvaluateDisplayName as members of interface `IStep` (#2374)
ashb pushed a commit to ashb/runner that referenced this pull request Feb 7, 2023
…ated. (actions#2313)

* Defer evaluation of a step's DisplayName until its condition is evaluated.
* Formalize TryUpdateDisplayName and EvaluateDisplayName as members of interface `IStep` (actions#2374)
nikola-jokic pushed a commit to nikola-jokic/runner that referenced this pull request May 12, 2023
…ated. (actions#2313)

* Defer evaluation of a step's DisplayName until its condition is evaluated.
* Formalize TryUpdateDisplayName and EvaluateDisplayName as members of interface `IStep` (actions#2374)
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.

2 participants