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

Add default query #30

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Add default query #30

merged 4 commits into from
Sep 12, 2024

Conversation

svenrdz
Copy link
Collaborator

@svenrdz svenrdz commented Sep 21, 2023

Module changes

Add Config.api.default_query_id string option (default=""). This enables using a pre-existing query as a parent applied to all queries having no require.

Add Esgpull.insert_default_query method to insert the default query specified in the config to queries having no require, and update children queries require value accordingly.

CLI changes

For both add and search commands, the default query specified in the config is inserted as a require to any "require-less" query provided from the command's arguments.

Add --no-default-query option to add and search commands, to disable the default query mechanism. This is effectively useless if no default query is specified in the config.

@svenrdz svenrdz added the enhancement New feature or request label Jul 17, 2024
@svenrdz svenrdz merged commit 873d668 into main Sep 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant