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

Fallback to zero value for initiatedID in ExternalExecutionInfoFields struct #4720

Merged
merged 2 commits into from
Feb 1, 2022

Conversation

Shaddoll
Copy link
Contributor

@Shaddoll Shaddoll commented Feb 1, 2022

What changed?
Do not panic if initiatedID is missing when mapping ExternalExecutionInfoFields. Instead fallback to zero values.

Why?
To address #4721
Originally both initiatedID and execution are empty, but starting from #4612
execution is not empty for cancelliing child workflows

How did you test it?
unit test

Potential risks

Release notes

Documentation Changes

@coveralls
Copy link

coveralls commented Feb 1, 2022

Pull Request Test Coverage Report for Build 46ad55fc-ab6d-47b3-9ef9-a0015e9c379f

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 29 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.01%) to 56.922%

Files with Coverage Reduction New Missed Lines %
service/matching/matcher.go 2 91.46%
common/persistence/nosql/nosqlplugin/cassandra/workflow.go 3 55.49%
service/history/task/fetcher.go 4 86.15%
common/persistence/nosql/nosqlplugin/cassandra/workflowParsingUtils.go 20 86.62%
Totals Coverage Status
Change from base Build 17b80a8c-3ac6-4182-8c4a-2b08b6f8e3f5: 0.01%
Covered Lines: 83068
Relevant Lines: 145932

💛 - Coveralls

@Shaddoll Shaddoll merged commit dea6429 into uber:master Feb 1, 2022
Shaddoll added a commit to Shaddoll/cadence that referenced this pull request Feb 1, 2022
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.

3 participants