Kibana app migration: Move static code dependencies into kibana_legacy plugin, part 1#56408
Conversation
…-30-move_static_code_deps_into_kibana_legacy
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
azasypkin
left a comment
There was a problem hiding this comment.
Changes in Spaces plugin LGTM.
flash1293
left a comment
There was a problem hiding this comment.
Looks mostly good, left some nits. Great how little stuff there's still left in the legacy imports
| @@ -374,21 +383,21 @@ const $setupUrlOverflowHandling = (newPlatform: CoreStart, isLocalAngular: boole | |||
| try { | |||
There was a problem hiding this comment.
Doesn't have to happen in this PR, but we should probably pull the gist of these helpers out of the angular context and put them into generic helpers (e.g. for the ui capability redirect or the url overflow redirect)
...y/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout.test.tsx
Outdated
Show resolved
Hide resolved
| // @ts-ignore | ||
| export { PrivateProvider } from './private'; | ||
| // @ts-ignore | ||
| export { registerListenEventListener } from './register_listen_event_listener'; |
There was a problem hiding this comment.
On second thought - is migrate_legacy_query more of a data plugin responsibility? Not sure how to handle this. Can also be handled in a separate issue
There was a problem hiding this comment.
about migrate_legacy_query:
Creates a standardized query object from old queries that were either strings or pure ES query DSL
Dear @elastic/kibana-app-arch 🏹 what do you think, should it be migrated to data
| @@ -41,33 +41,31 @@ export { PersistedState } from 'ui/persisted_state'; | |||
|
|
|||
| export { npSetup, npStart } from 'ui/new_platform'; | |||
| export { IPrivate } from 'ui/private'; | |||
There was a problem hiding this comment.
The code for private is moved, lets also move the type and reference it via re-export.
flash1293
left a comment
There was a problem hiding this comment.
LGTM, thanks for the cleanup 👍
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…y plugin, part 1 (elastic#56408) * Migrate PromiseServiceCreator * Migrate migrateLegacyQuery * Migrate watch_multi decorator * Migrate call_after_bindings_workaround * Migrate configureAppAngularModule, ensureDefaultIndexPattern and deps * Migrate kbn_accessible_clicks * Migrate PrivateProvider * Migrate registerListenEventListener * Adapt i18n files
…y plugin, part 1 (#56408) (#57095) * Migrate PromiseServiceCreator * Migrate migrateLegacyQuery * Migrate watch_multi decorator * Migrate call_after_bindings_workaround * Migrate configureAppAngularModule, ensureDefaultIndexPattern and deps * Migrate kbn_accessible_clicks * Migrate PrivateProvider * Migrate registerListenEventListener * Adapt i18n files
…b.com:jloleysens/kibana into console/feature/text-objects-in-saved-objects * 'console/feature/text-objects-in-saved-objects' of github.com:jloleysens/kibana: (103 commits) fix auto closing new vis modal when navigating to lens or when navigating away with browser history (elastic#56998) TS of esKuery\node_types (elastic#56857) Kibana app migration: Move static code dependencies into kibana_legacy plugin, part 1 (elastic#56408) Retry ES API calls that fail with 410/Gone (elastic#56950) [APM] Show missing permissions message to the user on the Services overview (elastic#56374) Fixing flaky CI tests for custom appRoutes (elastic#55763) [State Management][Docs] State syncing utils docs (elastic#56479) [Index management] Remove index mapper setting in tests (elastic#57066) Exposed common EuiExpressions to separate components be able to reuse for building new for Alert Types (elastic#56466) [SIEM] update url state between page if date is relative (elastic#56813) fix for chart_types test (elastic#57056) chore(NA): remove compress from dll minimizer (elastic#57023) [File upload] Migrate routing to NP & add route validation (elastic#52313) Adding docs for grouped nav advanced setting (elastic#57013) Use i18n titles for field formatters, human names for numeral locales (elastic#56348) [Maps] Remove EMS catalogue url from docs (elastic#57020) [Endpoint] ERT-82 ERT-83 ERT-84: Alert list API with pagination (elastic#56538) [DOCS] Adds Apple notarization info to install doc (elastic#57042) [ML] New Platform server shim: update results service routes to use new platform router (elastic#56886) Fix typo on detection engine rule (elastic#56993) ...
Summary
Migrate the following dependencies to
kibana_legacywhile keeping them compatible with theold platformby importing static functions from NP.ui/private/privateui/promises/promisesui/utils/migrate_legacy_queryui/compatui/legacy_compat&& parts ofui/notifyui/directives/watch_multi/watch_multiui/accessibility/kbn_accessible_clickui/directives/listen/listenPart of #50670
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