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

Wrap all custom jq filters in implicit '()' #18

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Conversation

jgriff
Copy link
Owner

@jgriff jgriff commented Sep 8, 2021

Wrapped all custom jq filter expressions provided by the user's
configuration in (...). Prior to this, if the user's expression
included a pipe | operator, it would break the filter join.
The workaround would force the user to wrap all of his
expressions in a (...) in his resource config, which is a little
verbose and repetitive (not to mention annoying).

Now, it's handled automatically. This doesn't cause any problems if the
user also provides his own (...) wrapping, so this is a
backwards compatible "fix".

Also polished the README section discussing the jq filter. It was a
bit confusing, and had a few spelling and grammar errors.

Wrapped all custom jq filter expressions provided by the user's
configuration in `(...)`.  Prior to this, if the user's expression
included a pipe `|` operator, it would break the filter join.
The workaround would force the user to wrap all of his
expressions in a `(...)` in his resource config, which is a little
verbose and repetitive (not to mention annoying).

Now, it's handled automatically.  This doesn't cause any problems if the
user also provides his own `(...)` wrapping, so this is a
backwards compatible "fix".

Also polished the README section discussing the jq filter.  It was a
bit confusing, and had a few spelling and grammar errors.
@jgriff jgriff merged commit c464076 into master Sep 8, 2021
@jgriff jgriff deleted the check-jq-filter-wrap branch September 8, 2021 15:23
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.

1 participant