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

FIX metadata expression evaluation in doc #1641

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Conversation

fgalan
Copy link
Member

@fgalan fgalan commented Aug 8, 2024

Maybe related (not sure) #1634

@@ -353,45 +354,6 @@ e.g.:
}
```

Metadata could also has `expression` like attributes in order to expand it:
Copy link
Member Author

@fgalan fgalan Aug 8, 2024

Choose a reason for hiding this comment

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

Moved to new section "Metadata transformation" "Expression support in metadata".

Comment on lines -616 to -618
Moreover, if attribute metadata has an expression metadata attribute value in jexl context it is updated after that
expression is evaluated. Note that there is no order into metadata structure and there is no warranty about which
metadata attribute expression will be evaluated first.
Copy link
Member Author

@fgalan fgalan Aug 8, 2024

Choose a reason for hiding this comment

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

Moreover, if attribute metadata has an expression metadata attribute value in jexl context it is updated after that
expression is evaluated

I think this is redundant with the contents of "Measurement tranformation" section, so it is removed.

Note that there is no order into metadata structure and there is no warranty about which
metadata attribute expression will be evaluated first.

This is about evaluation ordering, so moved to "Measurement transformation order" "Expression support in metadata" section.

doc/api.md Outdated Show resolved Hide resolved
Copy link
Member

@AlvaroVega AlvaroVega left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mapedraza mapedraza left a comment

Choose a reason for hiding this comment

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

LGTM

@mapedraza mapedraza merged commit 3b80414 into master Aug 8, 2024
8 checks passed
@mapedraza mapedraza deleted the metadata-doc-improvement branch August 8, 2024 09:38
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