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

Better Filters Error Handling #171

Merged
merged 5 commits into from
Aug 6, 2024
Merged

Better Filters Error Handling #171

merged 5 commits into from
Aug 6, 2024

Conversation

soldni
Copy link
Member

@soldni soldni commented Jun 7, 2024

This PR refactors the jaq-based query selector (jq mode) so it raises appropriate error if non-existent key is requested. jsonpath_rs selector is left as-is since it never returns errors when keys don't exist.

@soldni soldni requested a review from Whattabatt June 7, 2024 03:40
@soldni soldni changed the title Better Mixer Error Handling Better Filters Error Handling Jun 7, 2024
@soldni soldni requested review from undfined and removed request for Whattabatt August 5, 2024 23:54
Copy link
Contributor

@undfined undfined left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines -335 to -343
// if self.span_replacements.is_some() {
// let mut replacements = self
// .span_replacements
// .as_ref()
// .unwrap()
// .iter()
// .flat_map(|r| r.find_spans_to_replace(&data).unwrap())
// .collect::<Vec<SpanReplacement>>();

Copy link
Contributor

Choose a reason for hiding this comment

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

Drop?

@soldni soldni merged commit b406546 into main Aug 6, 2024
9 checks passed
@soldni soldni deleted the soldni/mixer-fix branch August 6, 2024 03:29
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