Skip to content

Conversation

@Sushisource
Copy link
Member

@Sushisource Sushisource commented Jan 22, 2025

What was changed

Title. Automatically derived from client settings, no lang-visible change needed.

Why?

Parity, useful for investigations

Checklist

  1. Closes [Feature Request] Update sdk-name and sdk-version in task-level metadata if changed #588

  2. How was this tested:

  1. Any docs updates needed?

@Sushisource Sushisource requested a review from a team as a code owner January 22, 2025 22:23
Comment on lines 179 to 183
if last_sdk_name != sdk_name || last_sdk_version != sdk_version {
(sdk_name.clone(), sdk_version.clone())
} else {
("".to_owned(), "".to_owned())
};
Copy link
Member

Choose a reason for hiding this comment

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

I think other SDKs (and mentioned at temporalio/features#321) compare name and version independently, meaning if the version upgraded but not the SDK, only the version is written.

Copy link
Member Author

@Sushisource Sushisource Jan 22, 2025

Choose a reason for hiding this comment

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

Well, that wouldn't be totally independent, since it wouldn't make sense the other way around (although I suppose it is benign, just hard to read), but, yeah can do

Copy link
Member

@cretz cretz Jan 22, 2025

Choose a reason for hiding this comment

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

Thanks! I think technically the other SDK impls are independent meaning if in some strange world you are able to switch from Go to Java but keep the version number, the version is unchanged.

@Sushisource Sushisource merged commit b94b2fc into master Jan 22, 2025
8 checks passed
@Sushisource Sushisource deleted the write-sdk-name-ver branch January 22, 2025 23:44
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.

[Feature Request] Update sdk-name and sdk-version in task-level metadata if changed

3 participants