-
Notifications
You must be signed in to change notification settings - Fork 817
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 workflow utility components to separate package #4015
Conversation
service/history/workflow/util.go
Outdated
@@ -272,12 +288,11 @@ func GetActiveDomainEntry( | |||
domainUUID string, |
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.
Can this move to shard context?
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.
+1
This would makes more sense as it does not have anything workflow related.
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.
Yeah, I was thinking probably this should be moved to domain
package instead of shard
as it has not much to do with shard, which is only for getting the domain cache.
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.
Synced with @yux0 offline. So GetActivityDomainEntry
now is a method of the DomainCache
interface and ValidateDomainUUID
is moved to common
package.
5c268c6
to
b5e4baa
Compare
3ee8e16
to
1e0e3f0
Compare
What changed?
Why?
#3181
How did you test it?
Existing tests.
Potential risks
Risk is minimal as it only moves code around.