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 opensearch_dashboards_legacy plugin provides a bridge between the old AngularJS-based architecture and the new React platform architecture. It also has some general legacy code functions (addFatalError, registerListenEventListener, formatMsg, formatStack) aren't Angular-specific, but they're part of the legacy system.
Here's a brief description of the functions when search opensearch_dashboards_legacy in the code base and summarize all the import functions from this package. Here is a quick check on whether they are AngularJS-specific or general legacy/deprecated code:
initAngularBootstrap: This is AngularJS-specific. It bootstraps the AngularJS application.
configureAppAngularModule: This is AngularJS-specific. It configures the main AngularJS module for the application.
addFatalError: This is general legacy code. It is used to report fatal errors that are unhandled elsewhere.
AngularHttpError: This is AngularJS-specific. It is an error class for HTTP errors in AngularJS.
subscribeWithScope: This is AngularJS-specific. It ties the lifecycle of an RxJS observable subscription to an AngularJS scope, ensuring that the subscription is cleaned up when the scope is destroyed.
PrivateProvider: This is AngularJS-specific. It is a service provider for AngularJS's dependency injection system.
PromiseServiceCreator: This is AngularJS-specific. It creates a promise service compatible with AngularJS's $q service.
registerListenEventListener: This is general legacy code. It is used to register an event listener that gets cleaned up when a scope is destroyed.
watchMultiDecorator: This is AngularJS-specific. It is a decorator for AngularJS's $watch service that allows watching multiple expressions.
createTopNavDirective: This is AngularJS-specific. It creates a directive for the top navigation bar.
createTopNavHelper: This is AngularJS-specific. It creates a helper for managing the top navigation bar.
formatMsg: This is general legacy code. It formats an error message.
formatStack: This is general legacy code. It formats an error stack trace.
OpenSearchDashboardsLegacyPlugin: This is a class representing the legacy plugin for OpenSearch Dashboards, which allows code written for older versions of OpenSearch Dashboards to work with the newer platform.
Work left
If we replace discover, timeline application and dashboard plugin, I only see OpenSearchDashboardsLegacyStart been imported in vis_type_vislib, url_forwarding, tile_map and region_map.
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
So we should be able to start removing angular part from opensearch_dashboards_legacy, which should include:
Introduction
The opensearch_dashboards_legacy plugin provides a bridge between the old AngularJS-based architecture and the new React platform architecture. It also has some general legacy code functions (addFatalError, registerListenEventListener, formatMsg, formatStack) aren't Angular-specific, but they're part of the legacy system.
Here's a brief description of the functions when search
opensearch_dashboards_legacy
in the code base and summarize all the import functions from this package. Here is a quick check on whether they are AngularJS-specific or general legacy/deprecated code:initAngularBootstrap: This is AngularJS-specific. It bootstraps the AngularJS application.
configureAppAngularModule: This is AngularJS-specific. It configures the main AngularJS module for the application.
addFatalError: This is general legacy code. It is used to report fatal errors that are unhandled elsewhere.
AngularHttpError: This is AngularJS-specific. It is an error class for HTTP errors in AngularJS.
subscribeWithScope: This is AngularJS-specific. It ties the lifecycle of an RxJS observable subscription to an AngularJS scope, ensuring that the subscription is cleaned up when the scope is destroyed.
PrivateProvider: This is AngularJS-specific. It is a service provider for AngularJS's dependency injection system.
PromiseServiceCreator: This is AngularJS-specific. It creates a promise service compatible with AngularJS's $q service.
registerListenEventListener: This is general legacy code. It is used to register an event listener that gets cleaned up when a scope is destroyed.
watchMultiDecorator: This is AngularJS-specific. It is a decorator for AngularJS's $watch service that allows watching multiple expressions.
createTopNavDirective: This is AngularJS-specific. It creates a directive for the top navigation bar.
createTopNavHelper: This is AngularJS-specific. It creates a helper for managing the top navigation bar.
formatMsg: This is general legacy code. It formats an error message.
formatStack: This is general legacy code. It formats an error stack trace.
OpenSearchDashboardsLegacyPlugin: This is a class representing the legacy plugin for OpenSearch Dashboards, which allows code written for older versions of OpenSearch Dashboards to work with the newer platform.
Work left
If we replace discover, timeline application and dashboard plugin, I only see
OpenSearchDashboardsLegacyStart
been imported in vis_type_vislib, url_forwarding, tile_map and region_map.So we should be able to start removing angular part from
opensearch_dashboards_legacy
, which should include:The text was updated successfully, but these errors were encountered: