-
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
Typings for saved object client #29951
Conversation
cc @mikecote |
Jenkins, test this |
Pinging @elastic/kibana-platform |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
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 👍
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.
Thanks for typing a critical piece of the Kibana infrastructure 🎉
Since I don't know this code very well I focused mainly on internal consistency. All in all it seems to work, but I left some inline comments below regarding imports from server-side code, some apparent left-overs from development and the usage of @ts-ignore
directives.
💚 Build Succeeded |
💔 Build Failed |
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 (assuming green CI 😉)
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
Jenkins, test this - flaky failure on dashboard embeddable test |
💚 Build Succeeded |
* WIP typings for saved object client * Move more files to TS * type saved objects client * clean up typings for saved object client * tie typings form server and client for saved objects together * add missing html import typing to x-pack * Add missing buildSourcePatterns * Removed accidental comma * add typings for saved_object_client tests and fix test cases * duplicate case_conversion helpers for the moment * Address PR review * Fix some documentation * Replace ts-ignore by any imports * Remove expect.js from test * Add more typings to prevent CI failure
* WIP typings for saved object client * Move more files to TS * type saved objects client * clean up typings for saved object client * tie typings form server and client for saved objects together * add missing html import typing to x-pack * Add missing buildSourcePatterns * Removed accidental comma * add typings for saved_object_client tests and fix test cases * duplicate case_conversion helpers for the moment * Address PR review * Fix some documentation * Replace ts-ignore by any imports * Remove expect.js from test * Add more typings to prevent CI failure
* WIP typings for saved object client * Move more files to TS * type saved objects client * clean up typings for saved object client * tie typings form server and client for saved objects together * add missing html import typing to x-pack * Add missing buildSourcePatterns * Removed accidental comma * add typings for saved_object_client tests and fix test cases * duplicate case_conversion helpers for the moment * Address PR review * Fix some documentation * Replace ts-ignore by any imports * Remove expect.js from test * Add more typings to prevent CI failure
* WIP typings for saved object client * Move more files to TS * type saved objects client * clean up typings for saved object client * tie typings form server and client for saved objects together * add missing html import typing to x-pack * Add missing buildSourcePatterns * Removed accidental comma * add typings for saved_object_client tests and fix test cases * duplicate case_conversion helpers for the moment * Address PR review * Fix some documentation * Replace ts-ignore by any imports * Remove expect.js from test * Add more typings to prevent CI failure
Summary
Add typings for the saved object client in the browser. @mikecote since that PR began before the reference changes, I had to merge them in, so it would be could if you could validate, that nothing broke there due to this PR.
For QA: This PR should not change any behavior, since it's a pure conversion from JavaScript to TypeScript.
This need to go to 7.0 still, since it's a requirement for TypeScriptification of the SavedObjectFinder, which is a requirement for the remaining EUIfication work, that should still go into 7.0.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriately