Skip to content

[kibana_utils] remove root index.ts file#137003

Merged
spalger merged 3 commits intoelastic:mainfrom
spalger:fix/kibana_utils/no-root-plugin-imports
Jul 25, 2022
Merged

[kibana_utils] remove root index.ts file#137003
spalger merged 3 commits intoelastic:mainfrom
spalger:fix/kibana_utils/no-root-plugin-imports

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Jul 22, 2022

In the kibana_utils plugin there is an index.ts file outside of the server, public, and common directories that just re-exports some common exports. In the package system this will need to be removed and the common package will need to be imported directly. Additionally, we're working to get a step closer to that state in #136911 and these changes were extracted from there so that we are importing the exact plugin-section we want.

To accomplish this we used the @kbn/eslint/module_migration rule to remap all imports for @kbn/kibana-utils-plugin (exactly) with @kbn/kibana-utils-plugin/common and removed the old index.ts file.

@spalger spalger force-pushed the fix/kibana_utils/no-root-plugin-imports branch from 6be376c to e3f6bdd Compare July 22, 2022 21:05
@spalger spalger changed the title [eslint/module_migration] add exact option [kibana_utils] remove root index.ts file Jul 22, 2022
@spalger spalger force-pushed the fix/kibana_utils/no-root-plugin-imports branch from e3f6bdd to 5c0908d Compare July 22, 2022 22:02
@spalger spalger added Team:Operations Kibana-Operations Team release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor labels Jul 22, 2022
@spalger spalger marked this pull request as ready for review July 22, 2022 22:03
@spalger spalger requested review from a team as code owners July 22, 2022 22:03
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@botelastic botelastic bot added the Feature:Drilldowns Embeddable panel Drilldowns label Jul 22, 2022
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

Copy link
Copy Markdown
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

@spalger spalger merged commit 676be86 into elastic:main Jul 25, 2022
@spalger spalger deleted the fix/kibana_utils/no-root-plugin-imports branch July 25, 2022 13:01
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 25, 2022
* [kibana_utils] remove root-level index.ts file

* autofix all imports

(cherry picked from commit 676be86)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 25, 2022
* [kibana_utils] remove root-level index.ts file

* autofix all imports

(cherry picked from commit 676be86)

Co-authored-by: Spencer <spencer@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Drilldowns Embeddable panel Drilldowns release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v8.3.3 v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants