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

CHASM: Get Component & Context implementation #7530

Merged
merged 3 commits into from
Mar 31, 2025

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented Mar 25, 2025

What changed?

  • Implement Component() method on chasm tree
  • Implement chasm Context

Why?

How did you test it?

  • Added unit test

Potential risks

Documentation

Is hotfix candidate?

return componentValue, nil
}

func (n *Node) prepareComponentValue(
Copy link
Member Author

Choose a reason for hiding this comment

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

This method or at least some part of it can be reused by Field.Get() implementation I think. cc @alexshtin

@yycptt yycptt force-pushed the chasm-get-component branch from 9dbb7eb to 67c734c Compare March 31, 2025 17:54
@yycptt yycptt changed the title CHASM: Get Component implementation CHASM: Get Component & Context implementation Mar 31, 2025
@yycptt yycptt marked this pull request as ready for review March 31, 2025 17:55
@yycptt yycptt requested a review from a team as a code owner March 31, 2025 17:55
@@ -107,7 +107,7 @@ func testComponentSerializedNodes() map[string]*persistencespb.ChasmNode {
},
Attributes: &persistencespb.ChasmNodeMetadata_ComponentAttributes{
ComponentAttributes: &persistencespb.ChasmComponentAttributes{
Type: "test_component",
Type: "TestLibrary.test_component",
Copy link
Member Author

Choose a reason for hiding this comment

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

@alexshtin Is this the right place to change? I don't see generateMapInit setting the Type field or probably I missed it.

Copy link
Member

Choose a reason for hiding this comment

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

because it is in #7409.

@yycptt yycptt merged commit 9959ded into temporalio:main Mar 31, 2025
49 checks passed
@yycptt yycptt deleted the chasm-get-component branch March 31, 2025 22:41
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