Skip to content

Commit af956f6

Browse files
authored
[8.x] Kibana Sustainable Architecture: Expose StatusResponse in core-status-common (#200524) (#200685)
# Backport This will backport the following commits from `main` to `8.x`: - [Kibana Sustainable Architecture: Expose `StatusResponse` in core-status-common (#200524)](#200524) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-11-18T13:34:54Z","message":"Kibana Sustainable Architecture: Expose `StatusResponse` in core-status-common (#200524)\n\n## Summary\n\n- Exposes the interfaces that define the format of the response of the\n`/api/status` endpoint.\n- Moves them from `@kbn/core-status-common-internal` to\n`@kbn/core-status-common`.\n- Removes the former package, as it no longer contains anything.\n- Fixes some of the illegal dependencies uncovered by\nhttps://github.com//pull/199630.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"ab0375f56fb9af1548631bf07e7c3fc4c06dc012","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"number":200524,"url":"https://github.com/elastic/kibana/pull/200524","mergeCommit":{"message":"Kibana Sustainable Architecture: Expose `StatusResponse` in core-status-common (#200524)\n\n## Summary\n\n- Exposes the interfaces that define the format of the response of the\n`/api/status` endpoint.\n- Moves them from `@kbn/core-status-common-internal` to\n`@kbn/core-status-common`.\n- Removes the former package, as it no longer contains anything.\n- Fixes some of the illegal dependencies uncovered by\nhttps://github.com//pull/199630.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"ab0375f56fb9af1548631bf07e7c3fc4c06dc012"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200524","number":200524,"mergeCommit":{"message":"Kibana Sustainable Architecture: Expose `StatusResponse` in core-status-common (#200524)\n\n## Summary\n\n- Exposes the interfaces that define the format of the response of the\n`/api/status` endpoint.\n- Moves them from `@kbn/core-status-common-internal` to\n`@kbn/core-status-common`.\n- Removes the former package, as it no longer contains anything.\n- Fixes some of the illegal dependencies uncovered by\nhttps://github.com//pull/199630.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"ab0375f56fb9af1548631bf07e7c3fc4c06dc012"}}]}] BACKPORT-->
1 parent 1d5d9f1 commit af956f6

30 files changed

Lines changed: 35 additions & 129 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@
386386
"@kbn/core-security-server-internal": "link:packages/core/security/core-security-server-internal",
387387
"@kbn/core-security-server-mocks": "link:packages/core/security/core-security-server-mocks",
388388
"@kbn/core-status-common": "link:packages/core/status/core-status-common",
389-
"@kbn/core-status-common-internal": "link:packages/core/status/core-status-common-internal",
390389
"@kbn/core-status-server": "link:packages/core/status/core-status-server",
391390
"@kbn/core-status-server-internal": "link:packages/core/status/core-status-server-internal",
392391
"@kbn/core-test-helpers-deprecations-getters": "link:packages/core/test-helpers/core-test-helpers-deprecations-getters",

packages/core/apps/core-apps-browser-internal/src/status/components/status_table.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import React from 'react';
1111
import { shallow } from 'enzyme';
12-
import type { StatusInfoServiceStatus as ServiceStatus } from '@kbn/core-status-common-internal';
12+
import type { StatusInfoServiceStatus as ServiceStatus } from '@kbn/core-status-common';
1313
import { StatusTable } from './status_table';
1414

1515
const state = {

packages/core/apps/core-apps-browser-internal/src/status/components/version_header.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import React from 'react';
1111
import { mountWithIntl, findTestSubject } from '@kbn/test-jest-helpers';
12-
import type { ServerVersion } from '@kbn/core-status-common-internal';
12+
import type { ServerVersion } from '@kbn/core-status-common';
1313
import { VersionHeader } from './version_header';
1414

1515
const buildServerVersion = (parts: Partial<ServerVersion> = {}): ServerVersion => ({

packages/core/apps/core-apps-browser-internal/src/status/components/version_header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import React, { FC } from 'react';
1111
import { EuiFlexGroup, EuiFlexItem, EuiPanel, EuiText } from '@elastic/eui';
1212
import { FormattedMessage } from '@kbn/i18n-react';
13-
import type { ServerVersion } from '@kbn/core-status-common-internal';
13+
import type { ServerVersion } from '@kbn/core-status-common';
1414

1515
interface VersionHeaderProps {
1616
version: ServerVersion;

packages/core/apps/core-apps-browser-internal/src/status/lib/load_status.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
import { httpServiceMock } from '@kbn/core-http-browser-mocks';
11-
import type { StatusResponse } from '@kbn/core-status-common-internal';
11+
import type { StatusResponse } from '@kbn/core-status-common';
1212
import { notificationServiceMock } from '@kbn/core-notifications-browser-mocks';
1313
import { mocked } from '@kbn/core-metrics-collectors-server-mocks';
1414
import { loadStatus } from './load_status';

packages/core/apps/core-apps-browser-internal/src/status/lib/load_status.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import numeral from '@elastic/numeral';
1111
import { i18n } from '@kbn/i18n';
1212
import type { HttpSetup } from '@kbn/core-http-browser';
1313
import type { NotificationsSetup } from '@kbn/core-notifications-browser';
14-
import type { ServiceStatusLevelId } from '@kbn/core-status-common';
1514
import type {
15+
ServiceStatusLevelId,
1616
StatusResponse,
1717
StatusInfoServiceStatus as ServiceStatus,
18-
} from '@kbn/core-status-common-internal';
18+
} from '@kbn/core-status-common';
1919
import type { DataType } from './format_number';
2020

2121
interface MetricMeta {

packages/core/apps/core-apps-browser-internal/src/status/lib/status_level.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
99

10-
import type { StatusInfoServiceStatus as ServiceStatus } from '@kbn/core-status-common-internal';
10+
import type { StatusInfoServiceStatus as ServiceStatus } from '@kbn/core-status-common';
1111
import { getLevelSortValue, groupByLevel, getHighestStatus } from './status_level';
1212
import { FormattedStatus, StatusState } from './load_status';
1313

packages/core/apps/core-apps-browser-internal/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@kbn/core-application-browser",
2525
"@kbn/core-application-browser-internal",
2626
"@kbn/core-mount-utils-browser-internal",
27-
"@kbn/core-status-common-internal",
2827
"@kbn/core-http-browser-internal",
2928
"@kbn/core-application-browser-mocks",
3029
"@kbn/core-notifications-browser-mocks",

packages/core/status/core-status-common-internal/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/core/status/core-status-common-internal/index.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)