-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[expressions] Remove legacy APIs. #75517
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
[expressions] Remove legacy APIs. #75517
Conversation
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
980bb21 to
24fe22f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this is the only remaining usage of createKibanaUtilsCore in the repo, so I've removed that in this PR as well.
Considering that it isn't used elsewhere and is also based on createGetterSetter which we've been moving away from, I thought it was safe to remove... but please let me know if there's any reason you feel we need to keep it.
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
page load bundle size
History
To update your PR or re-run it, just comment with: |
streamich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM.
poffdeluxe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #46906
Summary
Now that Canvas has removed their dependencies on the legacy Expressions APIs, we are able to remove the unused code from both the client & server, and officially consider the expressions server API "complete".
Changes
__LEGACYAPIs from client & serverpublic/services.tsby removing unneeded getter/settersbfetchdependency as it is no longer neededbfetchkibana_utilshelpercreateKibanaUtilsCore, which is now no longer being used in the repoTesting
This PR is simply removing dead code, and therefore introduces no functional changes. Should there be any issues, they would most likely surface in Canvas and be quite obvious.
Dev Docs
The
expressionsplugin has officially removed its__LEGACYAPIs beginning in7.10, which were designed for internal use in Canvas. In the unlikely event you are relying on anything in theexpressions.__LEGACYnamespace, you will need to copy the relevant code into your plugin before updating.Also removed in this change was the
createKibanaUtilsCorehelper from thekibana_utilsplugin, which was only used in the legacy Expressions APIs.