You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The kbnUrl angular service is still used in several places within shimmed angular applications. As a part of removing the dependency on legacy services, these should be replaced by directly using the $location service of angular as an interim step switching to a completely angular-free application. If it's possible to use the history object directly, angular shouldn't be called at all.
Migration steps:
Replace eval with template strings
See whether history calls can replace kbnUrl
If not, follow the following guy as a starting point
Replace change with $location.path (this will discard the current query, check whether that's OK)
Replace redirect with $location.path and $location.redirect (this will discard the current query, check whether that's OK)
Replace removeParam by inlining the implementation from kbn url
The kbnUrl angular service is still used in several places within shimmed angular applications. As a part of removing the dependency on legacy services, these should be replaced by directly using the
$location
service of angular as an interim step switching to a completely angular-free application. If it's possible to use thehistory
object directly, angular shouldn't be called at all.Migration steps:
Replace
eval
with template stringsSee whether
history
calls can replacekbnUrl
If not, follow the following guy as a starting point
Replace
change
with$location.path
(this will discard the current query, check whether that's OK)Replace
redirect
with$location.path
and$location.redirect
(this will discard the current query, check whether that's OK)Replace
removeParam
by inlining the implementation from kbn urlCheck whether everything still works
src/plugins/kibana_legacy/public/angular/ensure_default_index_pattern.tsx
src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js
src/legacy/core_plugins/kibana/public/discover/np_ready/angular/doc_table/components/table_row.ts
src/legacy/core_plugins/kibana/public/visualize/np_ready/application.ts
src/legacy/core_plugins/kibana/public/visualize/np_ready/legacy_app.js
src/legacy/core_plugins/kibana/public/visualize/np_ready/listing/visualize_listing.js
src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js
src/legacy/core_plugins/kibana/public/dashboard/np_ready/legacy_app.js
src/legacy/core_plugins/kibana/public/dashboard/np_ready/application.ts
The text was updated successfully, but these errors were encountered: