Skip to content

Add jsonpath_ng.ext.parse support for SqsSensor#36170

Merged
vincbeck merged 2 commits intoapache:mainfrom
CBitLabs:task/cmw/RP-176593-ext-jsonpath-support
Dec 11, 2023
Merged

Add jsonpath_ng.ext.parse support for SqsSensor#36170
vincbeck merged 2 commits intoapache:mainfrom
CBitLabs:task/cmw/RP-176593-ext-jsonpath-support

Conversation

@cliebBS
Copy link
Contributor

@cliebBS cliebBS commented Dec 11, 2023

This PR extends the message_filtering parameter to the SqsSensor to add a third type of filtering: jsonpath-ext. The existing JSONPath filtering functionality in SqsSensor uses the jsonpath_ng.parse method for constructing the JSONPath engine to search for matching values. This particular engine supports only a subset of the JSONPath language and is missing useful features, such as the ability to retrieve the values for multiple fields at a time. The new jsonpath-ext option uses the jsonpath_ng.ext.parse builder instead, which unlocks the full capabilities of the jsonpath_ng library.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Dec 11, 2023
@vincbeck vincbeck merged commit e37fe8f into apache:main Dec 11, 2023
@boring-cyborg
Copy link

boring-cyborg bot commented Dec 11, 2023

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants