Skip to content

Fix getOriginalExecutionRunId return value and add explicit @NonNull annotations #1737

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

Spikhalskiy
Copy link
Contributor

@Spikhalskiy Spikhalskiy commented Apr 12, 2023

Why

While adding getOriginalExecutionRunId method in the previous release I made a mistake by copying getContinuedExecutionRunId signature and made the return value Optional<String>.
This is an incorrect type and makes users think that they should account for situations when this value is not present.

This change is backward incompatible for users of getOriginalExecutionRunId method and will require a trivial refactoring. I expect the number of users to be affected as close to 0, because this method is not just very new and silently added for a specific user, but also most users should never use it and go for getFirstExecutionRunId instead.

@Spikhalskiy Spikhalskiy marked this pull request as ready for review April 12, 2023 15:38
@Spikhalskiy Spikhalskiy requested a review from a team as a code owner April 12, 2023 15:38
@Spikhalskiy Spikhalskiy force-pushed the getOriginalRunId-return-fix branch from 29d8cc4 to 3b5127b Compare April 12, 2023 19:52
@Spikhalskiy Spikhalskiy merged commit 4f91956 into temporalio:master Apr 12, 2023
@Spikhalskiy Spikhalskiy deleted the getOriginalRunId-return-fix branch April 12, 2023 21:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants