Skip to content
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

Migrate server-side deprecation service to packages #139789

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Aug 31, 2022

Summary

Fix #135961

#139305 already handled moving most of the public types

This PR creates the following packages:

  • @kbn/core-deprecations-server-internal
  • @kbn/core-deprecations-server-mocks

and move the content of src/core/server/deprecations accordingly.

@pgayvallet pgayvallet added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:skip Skip the PR/issue when compiling release notes v8.5.0 labels Aug 31, 2022
Copy link
Contributor Author

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-review

Comment on lines +9 to +10
export { mockDeprecationsRegistry } from './deprecations_registry.mock';
export { mockDeprecationsFactory } from './deprecations_factory.mock';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two mocks were only used for internal testing. There is no code duplication involved this time.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/core-deprecations-server 11 13 +2
@kbn/core-deprecations-server-internal - 3 +3
@kbn/core-deprecations-server-mocks - 6 +6
core 103 101 -2
total +9
Unknown metric groups

API count

id before after diff
@kbn/core-deprecations-server 12 16 +4
@kbn/core-deprecations-server-internal - 4 +4
@kbn/core-deprecations-server-mocks - 6 +6
total +14

ESLint disabled in files

id before after diff
@kbn/core-deprecations-server-internal - 2 +2
core 4 2 -2
total -0

Total ESLint disabled count

id before after diff
@kbn/core-deprecations-server-internal - 2 +2
core 26 24 -2
total -0

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pgayvallet pgayvallet marked this pull request as ready for review August 31, 2022 13:04
@pgayvallet pgayvallet requested a review from a team as a code owner August 31, 2022 13:04
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pgayvallet pgayvallet merged commit 980e80b into elastic:main Aug 31, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Aug 31, 2022
Copy link
Contributor

@gsoldevila gsoldevila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (better late than never)

Mpdreamz pushed a commit to Mpdreamz/kibana that referenced this pull request Sep 6, 2022
* Move files to packages

* start fixing usages

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix more usages

* move mdx files

* update READMEs

* add author to package files

* snake casing

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate core domain services to packages: Server-side deprecations service
6 participants