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

Serialize state as JSON. #208

Merged
merged 5 commits into from
Jan 30, 2024
Merged

Serialize state as JSON. #208

merged 5 commits into from
Jan 30, 2024

Conversation

slinkydeveloper
Copy link
Contributor

Fix #206

Copy link
Contributor

github-actions bot commented Jan 30, 2024

Test Results

0 files   - 102  0 suites   - 102   0s ⏱️ - 11m 30s
0 tests  -  93  0 ✅  -  93  0 💤 ±0  0 ❌ ±0 
0 runs   - 232  0 ✅  - 232  0 💤 ±0  0 ❌ ±0 

Results for commit 0aa6575. ± Comparison against base commit 095018a.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 30, 2024

Unit Test Results

  10 files   - 36    10 suites   - 36   10s ⏱️ - 3m 52s
521 tests  - 75  514 ✔️  - 75  7 💤 ±0  0 ±0 
522 runs   - 75  515 ✔️  - 75  7 💤 ±0  0 ±0 

Results for commit 0aa6575. ± Comparison against base commit 095018a.

♻️ This comment has been updated with latest results.

@slinkydeveloper
Copy link
Contributor Author

E2E PR: restatedev/e2e#257

Copy link

@igalshilman igalshilman left a comment

Choose a reason for hiding this comment

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

cool, looks good!
a slight preference from my side is:

CoreSerdes.jsonString()

@slinkydeveloper
Copy link
Contributor Author

Why that? Do you prefer methods over static fields?

@igalshilman
Copy link

Why that? Do you prefer methods over static fields?

Reads better to me, and also it opens the door for some logic in the future, for example log a deprecation or any other logic that you'd wish.

@igalshilman
Copy link

@slinkydeveloper I can totally live with the static fields as-well

@slinkydeveloper slinkydeveloper merged commit 04176fe into main Jan 30, 2024
4 of 5 checks passed
@slinkydeveloper slinkydeveloper deleted the issues/206 branch January 30, 2024 16:40
slinkydeveloper added a commit to restatedev/e2e that referenced this pull request Jan 30, 2024
slinkydeveloper added a commit to restatedev/e2e that referenced this pull request Jan 30, 2024
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.

Use JSON in CoreSerdes for ser/de
2 participants