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

Allow setting the query string programatically #52522

Closed
lizozom opened this issue Dec 9, 2019 · 3 comments
Closed

Allow setting the query string programatically #52522

lizozom opened this issue Dec 9, 2019 · 3 comments
Assignees
Labels
enhancement New value added to drive a business result Feature:Filters v7.10.0 v8.0.0

Comments

@lizozom
Copy link
Contributor

lizozom commented Dec 9, 2019

This is a follow up on #44377

At the moment, developers may use the following APIs:

const { filterManager, timefilter } = data.query;
filterManager.setFilters(...);
timefilter.timefilter.setTime(...);

To gain programmatic access to the modify SearchBar settings.

However, the value of the query string is inaccessible and is held by each application only.
As a result, there is no way to programmatically change it (and there were frequent requests to enable this behavior).

There should be an additional API to get \ set \ clear the query string.

const { queryString } = data.query;
queryString.get(...);
queryString.set(...);
queryString.clear(...);
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@LeeDr
Copy link

LeeDr commented Jan 16, 2020

We're past 7.6.0 Feature Freeze so if this isn't a bug it should probably bump to v7.7.0.

@lizozom
Copy link
Contributor Author

lizozom commented Jul 29, 2020

Query string can now be modified programatically by using the data.query.queryString.setQuery() API on the data plugin's public contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Filters v7.10.0 v8.0.0
Projects
None yet
Development

No branches or pull requests

5 participants