-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ES|QL] open the suggestion menu automatically in more places #189585
Conversation
/ci |
/ci |
Pinging @elastic/kibana-esql (Team:ESQL) |
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.
|
||
type GetSourceFn = () => Promise<SuggestionRawDefinition[]>; | ||
type GetDataStreamsForIntegrationFn = ( | ||
sourceName: string | ||
) => Promise<Array<{ name: string; title?: string }> | undefined>; | ||
type GetFieldsByTypeFn = ( | ||
type: string | string[], | ||
ignored?: string[] | ||
ignored?: string[], | ||
options?: { advanceCursorAndOpenSuggestions?: boolean; addComma?: boolean } |
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.
Naming is hard but this is a very nice variable name!
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.
MUCH smoother. This rounds off some sharp edges and left me feeling like I got to a result much more quickly. Great update!
/ci |
@stratoula I fixed that bug and added a test so that it doesn't happen again! |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
This is awesome Drew, thanx a ton. Great enhancement!
More ideas that we could explore:
- If the user selects an index and then comma, we could immediately open again the sources suggestions
- Similar with keep, if the user selects a field, then open the suggestions menu to select comma and then again fields etc. I am anticipating that the keep command will be quite popular
My suggestions are just ideas we could explore in another PR or at some other time. I am approving, this is great as it is already!
Summary
Closes #189662
Before
Screen.Recording.2024-07-30.at.4.51.29.PM.mov
After
Screen.Recording.2024-07-30.at.4.50.45.PM.mov
|
var0 =
Also made a couple of improvements
date_diff("day", <cursor here>)
)Checklist