-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow multiple query combined with versionfilter to json source #944
Conversation
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Like in #945 (comment), it seems that this would be a broader change as it implies having a multi-valued source. How is the order managed? |
Can you update the PR description to show the result? The example is not clear on what is it doing exactly? |
The source output doesn't change as we still return one single value. Here
Basically we retrieve a list of information and we delegate the responsability to the versionfilter to identify the value we are looking for So this pullrequest introduced two parameters
In the context of a source, both must be used together |
I added an example in the PR body |
🤔 the boolean WDYT about having either |
I am open to change if it makes things clearier. Ideally I would like to use the same wording for csv/toml/xml/json/yaml |
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Before merging I need to correctly deprecate the key |
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak me@olblak.com
As discussed on #942 (comment)
I realized that it would be super usefull to be able to do a multiple query combined with versionfilter on the json resource
This pullrequest allows the following manifest to work
Example
Test
To test this pull request, you can run the following commands:
Additional Information
Tradeoff
Potential improvement
I'll try to find some time to open a similar pullrquest for toml and csv as they also use Dasel
I need to investigate for the xml resource but it should be possible
Unfortunately, it won't work for the yaml resource as it doesn't support multiple query