-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Search] Remove unused kbn-search-api-panels code #236713
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
base: main
Are you sure you want to change the base?
[Search] Remove unused kbn-search-api-panels code #236713
Conversation
943b88a
to
f252ae0
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.
Overall looks good, left some comments.
} | ||
); | ||
export const API_KEY_PLACEHOLDER = 'your_api_key'; | ||
export const ELASTICSEARCH_URL_PLACEHOLDER = 'https://your_deployment_url'; |
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.
ELASTICSEARCH_URL_PLACEHOLDER
only refers from cloud_details
which is also getting removed. May be we can remove this whole?
import type { AuthenticatedUser } from '@kbn/security-plugin/common'; | ||
|
||
export * from './components/cloud_details'; | ||
export * from './components/code_box'; |
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.
Curious why are we keeping code_box
, ingest_pipeline_panel
, and github_link
? It looks like all references to them are being removed from the plugin. Unless they are used outside the plugin or somewhere else, maybe we can remove those too?
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.
They are still used in index management if I recall correctly.
"node", | ||
"react" | ||
] | ||
"types": ["jest", "node", "react"] |
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.
You probably need to disable linting for .json
files to avoid reformatting existing files in the Kibana.
Summary
This PR removes unused code within the
kbn-search-api-panels
package.Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support`Documentation was added for features that require explanation or tutorialsIf a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker listThis was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. Therelease_note:breaking
label should be applied in these situations.The PR description includes the appropriate Release Notes section, and the correctrelease_note:*
label is applied per the guidelinesReview the backport guidelines and apply applicablebackport:*
labels.