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

Move history API logic into its own package #2778

Merged
merged 1 commit into from
Apr 28, 2022
Merged

Move history API logic into its own package #2778

merged 1 commit into from
Apr 28, 2022

Conversation

wxing1292
Copy link
Contributor

What changed?

  • Move workflow creation logic util into api package
  • Simplify history engine impl

Why?
Code simplification & restructure

How did you test it?
N/A

Potential risks
N/A

Is hotfix candidate?
No

* Move workflow creation logic util into api package
* Simplify history engine impl
@wxing1292 wxing1292 requested a review from a team as a code owner April 28, 2022 17:43
return newWorkflowContext, newMutableState, nil
}

func CreateMutableState(
Copy link
Member

@yycptt yycptt Apr 28, 2022

Choose a reason for hiding this comment

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

probably workflow/util.go as it's not only used by api logic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is actually only used by API:

  • start
  • signal with start
  • command causing workflow to retry

let me know you comment, will address in later PRs

Copy link
Member

Choose a reason for hiding this comment

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

I think I saw it used in task executor. I don't actually have a very strong opinion on where it should be placed.

@wxing1292 wxing1292 merged commit 130d36e into temporalio:master Apr 28, 2022
@wxing1292 wxing1292 deleted the perf-signal-with-start-0 branch April 28, 2022 18:16
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