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

IWF-141: Disable global version search attribute #485

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

lwolczynski
Copy link
Contributor

Description

Checklist

  • Code compiles correctly
  • Tests for the changes have been added
  • All tests passing
  • This PR change is backwards-compatible
  • This PR CONTAINS a (planned) breaking change (it is not backward compatible)

Related Issue

Closes #427

@@ -58,6 +59,10 @@ func (p *GlobalVersioner) IsAfterVersionOfTemporal26SDK() bool {
return p.version >= StartingVersionTemporal26SDK
}

func (p *GlobalVersioner) IsAfterVersionOfNoIwfGlobalVersionSearchAttribute() bool {
Copy link
Contributor

@longquanzheng longquanzheng Nov 19, 2024

Choose a reason for hiding this comment

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

actually, we don't have to strictly use this naming pattern. I think we could just rename the existing one to

IsUsingGlobalVersionSearchAttribute(){
   return version >= .. && <= ...; 
}

@@ -58,6 +61,16 @@ func (p *GlobalVersioner) IsAfterVersionOfTemporal26SDK() bool {
return p.version >= StartingVersionTemporal26SDK
}

func (p *GlobalVersioner) IsAfterVersionOfNoIwfGlobalVersionSearchAttribute() bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: it is not being used so can be removed. Do you put it here intentionally for consistency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I added it for consistency

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah Sounds good. I am fine to keep it

Copy link
Contributor

@longquanzheng longquanzheng left a comment

Choose a reason for hiding this comment

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

Lgtm with a nit comment

@lwolczynski lwolczynski merged commit cd87220 into main Nov 20, 2024
10 checks passed
@lwolczynski lwolczynski deleted the jira/lwolczynski/IWF-141 branch November 20, 2024 19:49
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.

Disable global version search attribute(IwfGlobalWorkflowVersion) to save an action
2 participants