-
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
IDM: Migrates kbn_server
to a dev-only package
#145785
IDM: Migrates kbn_server
to a dev-only package
#145785
Conversation
13eb625
to
0ea735c
Compare
…-ref HEAD~1..HEAD --fix'
Pinging @elastic/kibana-core (Team:Core) |
@elasticmachine merge upstream |
Pinging @elastic/fleet (Team:Fleet) |
@@ -10,7 +10,12 @@ import Path from 'path'; | |||
import { range } from 'lodash'; | |||
|
|||
import type { ISavedObjectsRepository } from '@kbn/core/server'; | |||
import * as kbnTestServer from '@kbn/core/test_helpers/kbn_server'; | |||
import type { TestElasticsearchUtils, createRoot } from '@kbn/core-test-helpers-kbn-server'; |
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.
@elastic/fleet I split the imports out into separate methods and/or types after migrating the kbn_server
utilities to a package.
@@ -8,10 +8,11 @@ | |||
import Boom from '@hapi/boom'; | |||
|
|||
// @ts-ignore | |||
import type { createRoot } from '@kbn/core-test-helpers-kbn-server'; |
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.
@elastic/kibana-security I split the imports out into separate methods and/or types after migrating the kbn_server
utilities to a package.
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 could technically also have done this to the same effect:
import {
type createRoot,
request as kbnTestServerRequest
} from '@kbn/core-test-helpers-kbn-server';
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.
True. Done
import type { createRoot } from '@kbn/core-test-helpers-kbn-server'; | ||
import { request } from '@kbn/core-test-helpers-kbn-server'; |
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.
Same thing here if you like:
import type { createRoot } from '@kbn/core-test-helpers-kbn-server'; | |
import { request } from '@kbn/core-test-helpers-kbn-server'; | |
import { type createRoot, request } from '@kbn/core-test-helpers-kbn-server'; |
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.
Kibana Platform Security changes LGTM 👍
I added a few comments about how to combine the imports into one, but it's not important
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.
Fleet changes 🚀
@elasticmachine merge upstream |
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! thanks for migrating!
@elasticmachine merge upstream |
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
import type { TestElasticsearchUtils } from '@kbn/core-test-helpers-kbn-server'; | ||
import { createTestServers } from '@kbn/core-test-helpers-kbn-server'; |
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.
NIT: (multiple occurrences)
import { createTestServers, type TestElasticsearchUtils } from '@kbn/core-test-helpers-kbn-server';
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Any counts in public APIs
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
This reverts commit 25c6535.
This reverts commit 25c6535.
Sorry @TinaHeiligers, I had to revert this - there were multiple failures due to incompatible merges CI job on main: https://buildkite.com/elastic/kibana-on-merge/builds/24078#0184a659-17eb-4c09-ad88-440364ca64eb main: 8e55ec5 |
redo of: #145785 due to failures when it hit main resulting in a revert. fix #145193 Migrates `core/server/test-helpers/kbn_server` to a package Updates imports across repo ### Checklist Delete any items that are not applicable to this PR. - [X] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios Co-authored-by: Christiane (Tina) Heiligers <[email protected]>
fix #145193
Migrates
core/server/test-helpers/kbn_server
to a packageUpdates imports across repo
Checklist
Delete any items that are not applicable to this PR.