Skip to content

[ILM] Refactor types and fix missing aria labels#101518

Merged
yuliacech merged 5 commits intoelastic:masterfrom
yuliacech:ilm_types_refactor
Jun 9, 2021
Merged

[ILM] Refactor types and fix missing aria labels#101518
yuliacech merged 5 commits intoelastic:masterfrom
yuliacech:ilm_types_refactor

Conversation

@yuliacech
Copy link
Contributor

@yuliacech yuliacech commented Jun 7, 2021

Summary

Follow up to PR#100807.

This PR refactors a type union like 'warm' | 'cold' | 'frozen' | 'delete' to an interface PhaseWithTiming and extracts it into the types.ts file. While refactoring I also found that aria labels for timing in frozen phase were missing.

@yuliacech yuliacech added release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// technical debt Improvement of the software architecture and operational architecture v7.14.0 v8.0.0 labels Jun 8, 2021
@yuliacech yuliacech marked this pull request as ready for review June 8, 2021 15:08
@yuliacech yuliacech requested a review from a team as a code owner June 8, 2021 15:08
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

@yuliacech yuliacech requested a review from sebelga June 8, 2021 15:09
@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
indexLifecycleManagement 248.8KB 249.2KB +372.0B

History

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

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for tidy things up @yuliacech and great catch on the missing arial labels! 👍


export type PhaseWithTiming = keyof Omit<Phases, 'hot'>;

export type PhaseExceptDelete = keyof Omit<Phases, 'delete'>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tidy up! 👍

@yuliacech
Copy link
Contributor Author

Thank you so much for the review, @sebelga!

@yuliacech yuliacech merged commit fb88c99 into elastic:master Jun 9, 2021
yuliacech added a commit to yuliacech/kibana that referenced this pull request Jun 9, 2021
* Refactor phase types (mostly moving imports)

* Refactor phase types (mostly moving imports)

* Renamed a type for consistency and replaced more hard coded strings with types

* Fixed remaining references to the deleted MinAgePhase
yuliacech added a commit that referenced this pull request Jun 9, 2021
* Refactor phase types (mostly moving imports)

* Refactor phase types (mostly moving imports)

* Renamed a type for consistency and replaced more hard coded strings with types

* Fixed remaining references to the deleted MinAgePhase
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jun 9, 2021
* master:
  clarify which parts of TM are experimental (elastic#101757)
  Add sh scripts with _bulk_action route usage examples (elastic#101736)
  [Uptime] Only register route in side nav if uptime show capability is true (elastic#101709)
  Use KIBANA_DOCS in doc link service (elastic#101667)
  [Alerting][Event log] Persisting duration information for active alerts in event log (elastic#101387)
  Address design issues in Discover/Graph (elastic#101584)
  Optimize performance for document table (elastic#101715)
  Change file data visualizer links to point to new location in home application (elastic#101393)
  [Fleet] Tighten policy permissions, take II (elastic#97366)
  [ML] Add debounce to the severity control update  (elastic#101581)
  [Fleet] Fix routing issues with `getPath` and `history.push` (elastic#101658)
  [APM] Add link-to/transaction route (elastic#101731)
  [Index Patterns] Runtime fields CRUD REST API  (elastic#101164)
  [ILM] Refactor types and fix missing aria labels (elastic#101518)
  [Lens] New summary row feature for datatable (elastic#101075)
  Blocks save event filter with a white space name (elastic#101599)
  Improve security server types (elastic#101661)
  [APM] Replace side nav with tabs on Settings page (elastic#101460)
  [APM] Only register items in side nav if user has permissions to see app (elastic#101707)
  [Security solution][Endpoint] Add back button when to the event filters list (elastic#101280)
@yuliacech yuliacech deleted the ilm_types_refactor branch July 21, 2021 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:ILM release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// technical debt Improvement of the software architecture and operational architecture v7.14.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants