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

[Maps] custom category ramp auto complete is broken #61095

Closed
nreese opened this issue Mar 24, 2020 · 1 comment · Fixed by #61186
Closed

[Maps] custom category ramp auto complete is broken #61095

nreese opened this issue Mar 24, 2020 · 1 comment · Fixed by #61186
Assignees
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation regression

Comments

@nreese
Copy link
Contributor

nreese commented Mar 24, 2020

Looks like this is a regression caused by #59585. getAutocompleteService is returning null in the code snippet below

https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/maps/public/layers/sources/es_source.js#L335

getValueSuggestions = async (field, query) => {
    try {
      const indexPattern = await this.getIndexPattern();
      return await getAutocompleteService().getValueSuggestions({
        indexPattern,
        field: indexPattern.fields.getByName(field.getRootName()),
        query,
      });
    } catch (error) {
      console.warn(
        `Unable to fetch suggestions for field: ${field.getRootName()}, query: ${query}, error: ${
          error.message
        }`
      );
      return [];
    }
  };

Screen Shot 2020-03-24 at 9 24 31 AM

Screen Shot 2020-03-24 at 9 24 50 AM

@nreese nreese added bug Fixes for quality problems that affect the customer experience regression [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Mar 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants