[ILM] New copy for rollover and small refactor for timeline#89422
[ILM] New copy for rollover and small refactor for timeline#89422jloleysens merged 11 commits intoelastic:masterfrom
Conversation
…tside of edit_policy section
…lean up public API for relative timing calculation
|
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
…updates-and-timeline-cleanup * 'master' of github.com:elastic/kibana: (44 commits) [Discover] Add grid flyout jest test (elastic#89088) [Search Sessions] Improve session restoration back button (elastic#87635) [TSVB] Remove vis_type_timeseries_enhanced plugin (elastic#89274) [Security Solution] Init Osquery plugin (elastic#87109) [Fleet] Do not defined aliases inside datastream template (elastic#89512) skip flaky suite (elastic#86950) chore(NA): bazel machinery installation on kbn bootstrap (elastic#89469) [build/docker] Add support for centos ARM builds (elastic#84831) Convert default_watch.json to a JS object in order to avoid TS complaints (elastic#89488) [CI] Decrease number of Jest workers (elastic#89504) [Maps] remove maps_oss TS project (elastic#89502) Adds migration settings to Docker (elastic#89501) [Lens] Fix crash in transition from unique count to last value (elastic#88916) [kbn-es] Always use bundled JDK when starting Elasticsearch (elastic#89437) unskip getting_started/shakespeare test elasticsearch 64016 (elastic#89346) [Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects (elastic#89439) skip flaky suite (elastic#89478) skip flaky suite (elastic#89476) skip flaky suite (elastic#89477) skip flaky suite (elastic#89475) ... # Conflicts: # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.ts
yuliacech
left a comment
There was a problem hiding this comment.
Hi @jloleysens , tested locally and everything looks good, thanks for adding this rollover warning!
debadair
left a comment
There was a problem hiding this comment.
Provided a couple suggestions to get around the awkwardness of "data age" and "variation to time".
| 'xpack.indexLifecycleMgmt.timeline.hotPhaseRolloverToolTipContent', | ||
| { | ||
| defaultMessage: | ||
| 'Data age is only considered after rollover has occurred which adds variation to time in hot phase. See hot phase settings.', |
There was a problem hiding this comment.
I think this could be clearer. It seems like you're trying to make two different points:
- The min_age for moving to the next phase is based on the elapsed time since rollover, not the absolute age of the data.
- The total time spent in the hot phase can vary depending on what triggers the rollover.
That's a lot to pack into a tooltip. :-) Maybe:
| 'Data age is only considered after rollover has occurred which adds variation to time in hot phase. See hot phase settings.', | |
| 'How long it takes to reach the rollover criteria in the hot phase can vary. Data moves to the next phase when the time since rollover reaches the minimum age.', |
| 'When rollover is active, data age is only considered after rollover has occurred which adds variation to time in hot phase.', | ||
| } |
There was a problem hiding this comment.
I think I'd just re-use the previous suggestion, the qualifier isn't necessary.
| 'When rollover is active, data age is only considered after rollover has occurred which adds variation to time in hot phase.', | |
| } | |
| 'How long it takes to reach the rollover criteria in the hot phase can vary. | |
| Data moves to the next phase when the time since rollover reaches the minimum age.', | |
| } |
|
@elasticmachine merge upstream |
|
Thanks for the reviews all! @debadair I've implemented your suggestions, would you mind taking another look? |
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…89422) * refactor timeline and relative ms calculation logic for easier use outside of edit_policy section * further refactor, move child component to own file in timeline, and clean up public API for relative timing calculation * added copy to call out variation in timing (slop) introduced by rollover * use separate copy for timeline * remove unused import * fix unresolved merge * implement copy feedback * added component integration for showing/hiding hot phase icon on timeline Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…89840) * refactor timeline and relative ms calculation logic for easier use outside of edit_policy section * further refactor, move child component to own file in timeline, and clean up public API for relative timing calculation * added copy to call out variation in timing (slop) introduced by rollover * use separate copy for timeline * remove unused import * fix unresolved merge * implement copy feedback * added component integration for showing/hiding hot phase icon on timeline Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Please note: copy in screenshots may be out-of-date.
Review
ES UI
yarn start)Copy/Docs
New copy was added, specifically in
x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/i18n_texts.tsx-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/timeline/timeline.tsxDesign
@mdefazio I'd like to hear your thoughts on the approach of adding the tooltip in the timeline. Do you think this could work?
Screenshots
Added copy regarding rollover to settings
Calling out rollover on timeline (only when it is active), tooltip closed
Calling out rollover on timeline (only when it is active), tooltip open
Checklist