-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[chore] Correct dependency inconsistencies in Presentation team plugins #173778
Open
clintandrewhall
wants to merge
8
commits into
elastic:main
Choose a base branch
from
clintandrewhall:chore/presentation_plugins
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[chore] Correct dependency inconsistencies in Presentation team plugins #173778
clintandrewhall
wants to merge
8
commits into
elastic:main
from
clintandrewhall:chore/presentation_plugins
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clintandrewhall
added
review
chore
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
loe:medium
Medium Level of Effort
release_note:skip
Skip the PR/issue when compiling release notes
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
v8.13.0
labels
Dec 20, 2023
pgayvallet
approved these changes
Dec 21, 2023
ThomThomson
approved these changes
Jan 3, 2024
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.
Changes LGTM! Ran some smoke tests locally and looked through the code changes. Great cleanup!
clintandrewhall
force-pushed
the
chore/presentation_plugins
branch
from
January 9, 2024 20:20
1dd70f1
to
5c00157
Compare
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
chore
Feature:Embedding
Embedding content via iFrame
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
release_note:skip
Skip the PR/issue when compiling release notes
review
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
v8.13.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The script from #171483 can identify inconsistencies and untyped dependencies in Kibana plugins. This PR fixes all of the plugins owned by @elastic/kibana-presentation.
Caveats
Follow-up
expression_*
plugins should be consolidated and moved to a package.controls
server
layer were not explicitly defined on the plugin class.kibanaReact
andpresentationUtil
were used statically, and there should be required bundles.savedObjects
andexpressions
were not used at all-- check for side-effects!dashboard
controls
,kibanaReact
,kibanaUtils
,presentationUtil
,controls
, andsavedObjectsFinder
are all used statically; they should be required bundles instead.share
is used optionally as a dependency and statically to import components. It was likely maderequired
to avoid the build error, (optional plugins cannot be used statically).share
was moved to both collections.taskManager
andusageCollection
are optional plugins, but required in the TS types. The types were refactored to reflect the manifest.dataViews
was not used at all.customBranding
was listed in the Typescript type, but missing from the manifest, and unused. This was likely a leftover from the move tocore
, type removedembeddable
public
andserver
layer were not explicitly defined on the plugin class.data
andsavedObjectsFinder
are both used statically; they should be required bundles instead.usageCollection
was listed in the manifest as optional; updated type.expression_*
start
dependencies relied onexpression
rather thanexpressionS
. They were also entirely unused.presentationUtil
is used statically; it should be a required bundle instead.inputControlVis
public
layer were not explicitly defined on the plugin class.public
start dependencies are used.visDefaultEditor
is used statically; it should be a required bundle instead.inspector
public
layer were not explicitly defined on the plugin class.links
public
layer were not explicitly nor correctly defined on the plugin class.uiActionsEnhanced
andsavedObjects
are both used statically; they should be required bundles instead.kibanaReact
andkibanaUtils
were unused.usageCollection
should be optional in the manifest.presentationUtil
public
andserver
layer were neither explicitly nor correctly defined on the plugin class.savedObjects
,kibanaReact
,expressions
andembeddable
are all used statically; they should be required bundles instead.canvas
server
layer were not explicitly nor correctly defined on the plugin class.fieldFormats
,savedObjectFinder
andexpression*
are all used statically; they should be required bundles instead.usageCollection
should be optional in the manifest.home
should be optional in the Typescript type and in logic.dashboardEnhanced
unifiedSearch
is unused. check for side effects!uiActionsEnhanced
is used statically; it should be a required bundle instead.embeddableEnhanced
kibanaReact
anduiActions
are unused.