-
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
[Actions] Hiding time field selector if no field with date mapping in index in Index Connector flyout #96080
[Actions] Hiding time field selector if no field with date mapping in index in Index Connector flyout #96080
Conversation
...ctions_ui/public/application/components/builtin_action_types/es_index/es_index_connector.tsx
Outdated
Show resolved
Hide resolved
…ing/index-connector-timefield
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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.
Change LGTM but there is one scenario where the Time field
still displays.
- Select
.kibana
as the index - Check "Define time field for each document"
- Empty the index field
Result: The Time field
doesn't hide with the Define time field for each document
field. It should?
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.
LGTM. Good point by Mike, above. Tested this use case and think we should clean up the state.
…ing/index-connector-timefield
Good catch thanks! Fixed in 1f726bb |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @ymao1 |
… index in Index Connector flyout (elastic#96080) * Hiding time field selector if no field with date mapping in index * Fixing types check * Updating tooltip * PR fixes
… index in Index Connector flyout (#96080) (#96423) * Hiding time field selector if no field with date mapping in index * Fixing types check * Updating tooltip * PR fixes Co-authored-by: ymao1 <[email protected]>
Resolves #91695
Summary
Confusing UX when creating an Index Connector where the wording of the tooltip makes it seem like you can add a timestamp field automatically and the time field selector shows nothing if there is not a
date
mapped field in the selected index.Updated UX to only show the time field switch & dropdown if the selected index has 1 or more fields mapped as
date
. Also updated the tooltip wording.To Verify
date
type mapped fields (I used.kibana
)true
, the time field selector will appear and you can select a fielddate
type mapped field (or create a new unmapped index)Checklist
Delete any items that are not applicable to this PR.