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 remaining src/core/**/*.js files to typescript #117259

Merged
merged 24 commits into from
Nov 8, 2021

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Nov 3, 2021

Summary

Part of #117123

Migrate the following files from js to ts:

  • src/core/server/saved_objects/service/lib/scoped_client_provider.test.js
  • src/core/server/saved_objects/service/saved_objects_client.test.js
  • src/core/server/saved_objects/service/lib/repository.test.js

will backport to 8.0 to avoid potential backport conflicts of other PRs as this is not impacting any production code.

I will create a follow-up issue to split src/core/server/saved_objects/service/lib/repository.test.js into multiple files (one per API)

@pgayvallet pgayvallet added v8.1.0 v8.0.0 chore technical debt Improvement of the software architecture and operational architecture Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Nov 3, 2021
@pgayvallet pgayvallet force-pushed the kbn-117123-migrate-core-js-to-ts branch from 51f1967 to 62f2fc3 Compare November 3, 2021 07:26
@pgayvallet pgayvallet added the release_note:skip Skip the PR/issue when compiling release notes label Nov 3, 2021
@pgayvallet pgayvallet added the auto-backport Deprecated - use backport:version if exact versions are needed label Nov 5, 2021
@pgayvallet pgayvallet marked this pull request as ready for review November 5, 2021 14:03
@pgayvallet pgayvallet requested a review from a team as a code owner November 5, 2021 14:03
@elasticmachine
Copy link
Contributor

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

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.

2qfyuj

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@pgayvallet pgayvallet merged commit 2f52294 into elastic:main Nov 8, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 8, 2021
)

* migrate scoped_client_provider tests

* migrate saved_objects_client to ts

* fix return values assertions

* start fixing violations for repository.test.ts

* fix ~750 violations, 201 left

* 184 left

* 169 left

* 150 left

* 132 left

* fixed `find` violations, 117 left

* fixed `removeReferencesTo` violations, 114 left

* fixed `delete` violations, 105 left

* fixed `create` violations, 93 left

* fixed `checkConflicts` violations, 89 left

* fixed most `bulkUpdate` violations, 60 left

* fixed remaining `bulkUpdate` violations, 54 left

* fixed `bulkResolve` violations, 52 left

* fixed `bulkGet` violations, 37 left

* fixed most `bulkCreate` violations, 14 left

* fixed last `bulkCreate` violations, 5 left

* Everything but the SOR constructor

* ignore warning on SOR private constructor
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Nov 9, 2021
…117863)

* migrate scoped_client_provider tests

* migrate saved_objects_client to ts

* fix return values assertions

* start fixing violations for repository.test.ts

* fix ~750 violations, 201 left

* 184 left

* 169 left

* 150 left

* 132 left

* fixed `find` violations, 117 left

* fixed `removeReferencesTo` violations, 114 left

* fixed `delete` violations, 105 left

* fixed `create` violations, 93 left

* fixed `checkConflicts` violations, 89 left

* fixed most `bulkUpdate` violations, 60 left

* fixed remaining `bulkUpdate` violations, 54 left

* fixed `bulkResolve` violations, 52 left

* fixed `bulkGet` violations, 37 left

* fixed most `bulkCreate` violations, 14 left

* fixed last `bulkCreate` violations, 5 left

* Everything but the SOR constructor

* ignore warning on SOR private constructor

Co-authored-by: Pierre Gayvallet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed chore 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 technical debt Improvement of the software architecture and operational architecture v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants