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

Github/Office365 multi-select filters fix to get suggested values #3787

Conversation

asteriscos
Copy link
Member

Hi team,

this PR fixes multi-select filters failing to get suggested values due to the index pattern not having attribute.fields property.

Closes #3779

To test it:

  • Go to Github and/or Office365 module
  • See each multi-select filter suggest values and apply selected filters

Peek 2022-01-05 18-56

@asteriscos asteriscos added the 4.3 label Jan 5, 2022
@asteriscos asteriscos self-assigned this Jan 5, 2022
@Desvelao Desvelao added the type/bug Bug issue label Jan 7, 2022
@Desvelao
Copy link
Member

Desvelao commented Jan 7, 2022

nitpick: The PR should be integrated with apps for Kibana 7.10.2 until 7.16.x, so we should change the base branch of PR to point to the development branch for the app of Kibana 7.10.2.

@@ -69,7 +69,7 @@ export const useValueSuggestion = (
: await data.autocomplete.getValueSuggestions({
query,
indexPattern: indexPattern as IIndexPattern,
field,
field: { ...field, toSpec: (options) => field },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Is this change required to work? I am not sure if only another change of this PR, solves the problem.

@Desvelao
Copy link
Member

Desvelao commented Jan 7, 2022

review

PR requirements:

  • Add the change to the changelog

@Desvelao Desvelao linked an issue Jan 10, 2022 that may be closed by this pull request
@asteriscos asteriscos changed the base branch from 4.3-7.16 to 4.3-7.10-RC2 January 10, 2022 16:37
@asteriscos asteriscos changed the base branch from 4.3-7.10-RC2 to 4.3-7.16 January 10, 2022 16:52
@yenienserrano yenienserrano self-requested a review January 11, 2022 19:12
Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR: ✔️
Test: ✔️
LGTM

@Desvelao Desvelao merged commit 6788bd3 into 4.3-7.16 Jan 13, 2022
@Desvelao Desvelao deleted the fix/github-multi-select-filters-fail-to-get-suggested-values-3779 branch January 13, 2022 08:18
Desvelao pushed a commit that referenced this pull request Jan 13, 2022
)

* Added getValueSuggestions toSpec parameter

* Added changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github/Office365 multi-select filters fail to get suggested values
3 participants