-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: take index pattern and user input to t2viz from discover #349
feat: take index pattern and user input to t2viz from discover #349
Conversation
Signed-off-by: Yulong Ruan <[email protected]>
const queryAssistInputEle = document.getElementsByClassName('queryAssist__input')[0]; | ||
if (queryAssistInputEle instanceof HTMLInputElement) { | ||
const input = queryAssistInputEle.value; | ||
if (input) { | ||
url.searchParams.set(ASSISTANT_INPUT_URL_SEARCH_KEY, input); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get the value from the place triggered this action? If so, we can use context to pass the value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit tricky, the context menu is updated based on data.query.queryString.getUpdates$()
, but the query assistant input is not part of it. Didn't find a way to easily update the context when the input changes. I have a todo to refactor this when we moved query assistant to dashboards-assistant plugin.
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
* feat: take index pattern and user input to t2viz from discover Signed-off-by: Yulong Ruan <[email protected]> * import data set type INDEX_PATTERN from data plugin Signed-off-by: Yulong Ruan <[email protected]> * chore: update CHANGELOG Signed-off-by: Yulong Ruan <[email protected]> --------- Signed-off-by: Yulong Ruan <[email protected]> (cherry picked from commit 98bf315) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…#353) * feat: take index pattern and user input to t2viz from discover Signed-off-by: Yulong Ruan <[email protected]> * import data set type INDEX_PATTERN from data plugin Signed-off-by: Yulong Ruan <[email protected]> * chore: update CHANGELOG Signed-off-by: Yulong Ruan <[email protected]> --------- Signed-off-by: Yulong Ruan <[email protected]> (cherry picked from commit 98bf315) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
[Describe what this change achieves]
Screen.Recording.2024-10-15.at.13.34.35.mov
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.