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

[BP] Lazily calculate value when using StyledTable::add_kv_row_if and predicate is true #1633

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

tillrohrmann
Copy link
Contributor

This is a backport of #1632 to release-1.0.

…icate is true

We use StyledTable::add_kv_row_if to check if a value exists. We should only access the
value if the predicate passes. That's why this command changes the value parameter into
a closure that is evaluated if the predicate is true.

This fixes restatedev#1631.
@tillrohrmann
Copy link
Contributor Author

CI passes and #1632 was approved. Merging now.

@tillrohrmann tillrohrmann merged commit 6f1a4e2 into restatedev:release-1.0 Jun 17, 2024
4 checks passed
@tillrohrmann tillrohrmann deleted the issues/1631-1.0 branch June 17, 2024 08:47
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

1 participant