Skip to content

[expressions] remove root-level redirect, import from common#136997

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

[expressions] remove root-level redirect, import from common#136997
spalger merged 6 commits intoelastic:mainfrom
spalger:fix/expressions/no-root-plugin-imports

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Jul 22, 2022

In the expressions plugin there is an index.ts file outside of the server, public, and common directories that just re-exports the 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/expressions-plugin (exactly) with @kbn/expressions-plugin/common and removed the old index.ts file.

@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 requested review from a team as code owners July 22, 2022 19:33
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@botelastic botelastic bot added Feature:Embedding Embedding content via iFrame Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) labels Jul 22, 2022
@spalger spalger force-pushed the fix/expressions/no-root-plugin-imports branch from b25a2f2 to 475f750 Compare July 22, 2022 22:00
Copy link
Copy Markdown
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

kibana-gis changes LGTM
code review

@spalger spalger requested a review from nreese July 22, 2022 22:32
Copy link
Copy Markdown
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

kibana-gis changes LGTM

Copy link
Copy Markdown
Contributor

@dokmic dokmic left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Copy Markdown
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

VisEditors changes LGTM, code review only

Copy link
Copy Markdown
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Presentation team import changes LGTM! Code only review

@spalger spalger enabled auto-merge (squash) July 25, 2022 15:02
@spalger spalger merged commit 36260fb into elastic:main Jul 25, 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

@spalger spalger deleted the fix/expressions/no-root-plugin-imports branch July 25, 2022 15:07
@kibanamachine

This comment was marked as outdated.

@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Jul 25, 2022
@spalger spalger added backport:prev-minor and removed backport:skip This PR does not require backporting labels Jul 25, 2022
spalger pushed a commit to spalger/kibana that referenced this pull request Jul 25, 2022
@kibanamachine

This comment was marked as outdated.

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Jul 25, 2022

Merged backports with #137103 because of the files changed being so close

spalger pushed a commit that referenced this pull request Jul 25, 2022
#136997) (#137103)

* [inspector/expressions] remove root-level redirect to common (#136999) (#136997)

(cherry picked from commit 0596007)

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 136997 locally

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 26, 2022
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Feature:Embedding Embedding content via iFrame Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants