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

Merge serialization methods into new Serializer #1570

Merged
merged 3 commits into from May 25, 2021

Conversation

yiminc
Copy link
Member

@yiminc yiminc commented May 25, 2021

What changed?
Added a new interface Serializer that contains all methods defined in PayloadSerializer and methods defined in common/persistence/seraliazation/blob.go.

Why?
We want to move all seralization/deseralization logic to the layer above persistence. The data layer will then use this new interface to do seralization/deseralization, and persistence layer will only deal with DataBlob. This will enforce abstract layering. Follow up PRs will convert existing persistence layer code to avoid doing seralization/deseralization.

Also related to #1531

How did you test it?
This is new separated code that is not hooked up with system yet. Tested in unit test.

Potential risks
No.

Is hotfix candidate?
No.

@yiminc yiminc requested review from wxing1292 and a team May 25, 2021 17:24
@CLAassistant
Copy link

CLAassistant commented May 25, 2021

CLA assistant check
All committers have signed the CLA.

@yiminc yiminc enabled auto-merge (squash) May 25, 2021 17:27
@yiminc yiminc merged commit 103ba39 into temporalio:master May 25, 2021
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.

None yet

3 participants