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

feat: add computed fields #304

Merged
merged 1 commit into from
Jan 21, 2025
Merged

feat: add computed fields #304

merged 1 commit into from
Jan 21, 2025

Conversation

thalesmg
Copy link
Contributor

This allows us to compute fields from checked configurations, so we may cache arbitrary values we want to associate with the field. Only map()'s and structs may have computed fields attached. The resulting value is added to a ?COMPUTED atom key inside the resulting checked configuration.

This allows us to compute fields _from checked configurations_, so we may cache arbitrary
values we want to associate with the field.  Only `map()`'s and structs may have computed
fields attached.  The resulting value is added to a `?COMPUTED` atom key inside the
resulting checked configuration.
@thalesmg thalesmg marked this pull request as ready for review January 21, 2025 13:43
@thalesmg thalesmg requested a review from zmstone January 21, 2025 13:45
@thalesmg thalesmg merged commit dea6db6 into emqx:master Jan 21, 2025
4 checks passed
@thalesmg thalesmg deleted the computed-fields branch January 21, 2025 14:31
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.

2 participants