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

ILM locators #102313

Merged
merged 36 commits into from
Jun 21, 2021
Merged

ILM locators #102313

merged 36 commits into from
Jun 21, 2021

Conversation

streamich
Copy link
Contributor

@streamich streamich commented Jun 16, 2021

Summary

Partially addresses #98107

This change removes and replaces ILM URL generator createIlmUrlGenerator with a new ILM locator.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

Testing

ILM URL generator was used in two places (you can see them below). Both links are still working and are now generated using the locator.

(Add new data stream tutorial)

image

and here:

image

streamich added 30 commits May 14, 2021 17:23
@streamich streamich marked this pull request as ready for review June 19, 2021 08:35
@streamich streamich requested a review from a team June 19, 2021 08:35
@streamich streamich requested review from a team as code owners June 19, 2021 08:35
@streamich streamich added Feature:SharingURLs Short URLs and Share URL features release_note:skip Skip the PR/issue when compiling release notes review Team:AppServices v7.14.0 v8.0.0 labels Jun 19, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@streamich
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

KibanaApp changes look good.

@streamich streamich requested review from ppisljar and yuliacech June 21, 2021 07:54
@vadimkibana
Copy link
Contributor

@elasticmachine merge upstream

@streamich streamich requested a review from ppisljar June 21, 2021 09:50
Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

code LGTM

@streamich streamich requested a review from yuliacech June 21, 2021 18:01
Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Hi @streamich,
thanks a lot for migrating ILM from url generators to url locators! Code changes LGTM, tested locally and all worked 👍

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
share 53 55 +2

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
indexLifecycleManagement 5 4 -1
management 39 40 +1
share 68 78 +10
total +10

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.6KB 248.6KB -1.0B
indexManagement 1.3MB 1.3MB -404.0B
total -405.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
share 6 7 +1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
indexLifecycleManagement 50.3KB 50.1KB -249.0B
indexManagement 36.6KB 36.8KB +232.0B
management 16.2KB 16.2KB +17.0B
share 71.8KB 73.8KB +2.0KB
total +2.0KB
Unknown metric groups

API count

id before after diff
indexLifecycleManagement 5 4 -1
management 39 40 +1
share 85 102 +17
total +17

History

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

@streamich streamich merged commit 1fb2640 into elastic:master Jun 21, 2021
streamich added a commit that referenced this pull request Jun 21, 2021
* feat: 🎸 add url service types

* refactor: 💡 move locator types into its own folder

* feat: 🎸 add abstract locator implementation

* feat: 🎸 implement abstract locator client

* feat: 🎸 add browser-side locators service

* feat: 🎸 implement locator .getLocation()

* feat: 🎸 implement navigate function

* feat: 🎸 implement locator service in /common folder

* feat: 🎸 expose locators client on browser and server

* refactor: 💡 make locators async

* chore: 🤖 add deprecation notice to URL generators

* docs: ✏️ add deprecation notice to readme

* feat: 🎸 create management app locator

* refactor: 💡 simplify management locator

* feat: 🎸 export management app locator from plugin contract

* feat: 🎸 implement ILM locator

* feat: 🎸 improve share plugin exports

* feat: 🎸 improve management app locator

* feat: 🎸 add useLocatorUrl React hook

* feat: 🎸 add .getUrl() method to locators

* feat: 🎸 migrate ILM app to use URL locators

* fix: 🐛 correct typescript errors

* Fix TypeScript errors in mock

* Fix ILM locator unit tests

* style: 💄 shorten import

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@streamich streamich mentioned this pull request Jun 22, 2021
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:SharingURLs Short URLs and Share URL features release_note:skip Skip the PR/issue when compiling release notes review v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants