-
Notifications
You must be signed in to change notification settings - Fork 801
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
Fix bug that headers are removed in indexes for closed workflows #6234
Conversation
if attr == nil || attr.Header == nil { | ||
return nil | ||
} | ||
headers := make(map[string][]byte) |
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.
minor nit: this could be make(map[string][]byte, len(attr.Header.Fields))
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.
fixed
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
... and 13 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Looks ok, but you'll need to add more tests, since we want new code to have at least 75% coverage.
What changed?
Cause:
For recording closed workflow task, headers are not appended into search attributes and thus the last closed event would remove the header in visibility.
Fix
Why?
From staging and production rolled out environment, we found header are not indexed correctly for closed workflows.
How did you test it?
unit test
Potential risks
Release notes
Documentation Changes