Skip to content

[Core] Public saved objects client#39891

Merged
rudolf merged 35 commits intoelastic:masterfrom
rudolf:core-saved-objects-service
Aug 6, 2019
Merged

[Core] Public saved objects client#39891
rudolf merged 35 commits intoelastic:masterfrom
rudolf:core-saved-objects-service

Conversation

@rudolf
Copy link
Contributor

@rudolf rudolf commented Jun 28, 2019

Summary

SavedObjects client in public CoreSetup. This allows plugin authors to create, get, find and delete Saved Objects from Public plugins in the new platform.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@rudolf rudolf added Feature:New Platform Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// labels Jun 28, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@epixa epixa mentioned this pull request Jul 1, 2019
20 tasks
@rudolf rudolf force-pushed the core-saved-objects-service branch 6 times, most recently from 5f7b8e9 to f1f0c41 Compare July 5, 2019 19:31
@elasticmachine
Copy link
Contributor

💔 Build Failed

@rudolf rudolf force-pushed the core-saved-objects-service branch from 518a2a3 to 9e5bf0f Compare July 17, 2019 14:09
@rudolf rudolf force-pushed the core-saved-objects-service branch from 213cafb to dc1fc9b Compare July 19, 2019 17:05
@elastic elastic deleted a comment from elasticmachine Aug 2, 2019
@elastic elastic deleted a comment from elasticmachine Aug 2, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

jest config LGTM

@rudolf rudolf requested review from joshdover and mshustov August 5, 2019 13:10
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@rudolf
Copy link
Contributor Author

rudolf commented Aug 6, 2019

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@rudolf rudolf merged commit e137477 into elastic:master Aug 6, 2019
rudolf added a commit to rudolf/kibana that referenced this pull request Aug 6, 2019
* Move SavedObjectClient files to core/public

* Initial SavedObjectsService in public Core

* Public SavedObjectsClient tests

* Import SimpleSavedObject from src/core/public

* Use types from source files for kibana.d.ts

* Add html raw loader to x-pack/jest

* Cleanup

* Drop case utilities and improve test coverage

* Update types and documentation

* Fix build breaking when importing directly from /server in /public

* Ensure that all option paramaters are picked and renamed

* Fix option mapping and introduce stronger types

* Eslint: allow imports from src/core/*/types

* Add compatibility layer for kfetch vs http.fetch error responses

* Improve documentation

* Expose SavedObjectsMigrationLogger

* Documentation and type tweaks

* Revert type changes from 73e601f and update api docs

* Refactor request into savedObjectFetch + test

* Make legacy SavedObject compatible with http.fetch exceptions

* Fix types and tests

* simple_saved_object import from src/core/server

* server imports from root instead of server/types

* Make SavedObjectsService a class

* Don't pick unkown keys from server response

* Rename SavedObjectsFindResponse to SavedObjectsFindResponsePublic

* Remove err.response from SavedObjects fetch errors

* Revert "Remove err.response from SavedObjects fetch errors"

This reverts commit 61705ca.

* Don't introduce err.response until we deprecate err.res
rudolf added a commit that referenced this pull request Aug 7, 2019
* Move SavedObjectClient files to core/public

* Initial SavedObjectsService in public Core

* Public SavedObjectsClient tests

* Import SimpleSavedObject from src/core/public

* Use types from source files for kibana.d.ts

* Add html raw loader to x-pack/jest

* Cleanup

* Drop case utilities and improve test coverage

* Update types and documentation

* Fix build breaking when importing directly from /server in /public

* Ensure that all option paramaters are picked and renamed

* Fix option mapping and introduce stronger types

* Eslint: allow imports from src/core/*/types

* Add compatibility layer for kfetch vs http.fetch error responses

* Improve documentation

* Expose SavedObjectsMigrationLogger

* Documentation and type tweaks

* Revert type changes from 73e601f and update api docs

* Refactor request into savedObjectFetch + test

* Make legacy SavedObject compatible with http.fetch exceptions

* Fix types and tests

* simple_saved_object import from src/core/server

* server imports from root instead of server/types

* Make SavedObjectsService a class

* Don't pick unkown keys from server response

* Rename SavedObjectsFindResponse to SavedObjectsFindResponsePublic

* Remove err.response from SavedObjects fetch errors

* Revert "Remove err.response from SavedObjects fetch errors"

This reverts commit 61705ca.

* Don't introduce err.response until we deprecate err.res
@rudolf rudolf deleted the core-saved-objects-service branch August 8, 2019 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants