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

[Actions] Hiding time field selector if no field with date mapping in index in Index Connector flyout #96080

Merged
merged 6 commits into from
Apr 7, 2021

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Apr 1, 2021

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.

Screen Shot 2021-04-02 at 9 54 38 AM

To Verify

  • Create a new ES Index connector
  • Notice the time field switch doesn't show up on connector flyout
  • Select an index with date type mapped fields (I used .kibana)
  • Notice the time field switch shows up. If you switch it to true, the time field selector will appear and you can select a field
  • Clear the index selector field
  • Select an index without a date type mapped field (or create a new unmapped index)
  • Notice the time field switch doesn't show up
  • Verify that ES index connectors created with these various configurations shows up correctly when editing.

Checklist

Delete any items that are not applicable to this PR.

@ymao1 ymao1 self-assigned this Apr 2, 2021
@ymao1 ymao1 added Feature:Actions release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.13.0 v8.0.0 labels Apr 2, 2021
@ymao1 ymao1 marked this pull request as ready for review April 2, 2021 13:57
@ymao1 ymao1 requested a review from a team as a code owner April 2, 2021 13:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

Copy link
Contributor

@mikecote mikecote left a 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.

  1. Select .kibana as the index
  2. Check "Define time field for each document"
  3. Empty the index field

Result: The Time field doesn't hide with the Define time field for each document field. It should?

Copy link
Contributor

@YulNaumenko YulNaumenko left a 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.

@ymao1
Copy link
Contributor Author

ymao1 commented Apr 7, 2021

Change LGTM but there is one scenario where the Time field still displays.

  1. Select .kibana as the index
  2. Check "Define time field for each document"
  3. Empty the index field

Result: The Time field doesn't hide with the Define time field for each document field. It should?

Good catch thanks! Fixed in 1f726bb

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.5MB 1.5MB +171.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ymao1

@ymao1 ymao1 added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 7, 2021
@ymao1 ymao1 merged commit bb109b5 into elastic:master Apr 7, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 7, 2021
… 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
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #96423

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Apr 7, 2021
… 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]>
@ymao1 ymao1 deleted the alerting/index-connector-timefield branch May 19, 2021 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Actions release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM - Alerting] GUI bug creating an "Index Connector" creating an APM Transaction Latency alert
6 participants