Remove legacy codebase (#4844)

* Remove legacy codebase

* Remove legacy docs

* Fixed memory leak in timer spec

* Remove Angular dependency

* Removed adapter layer

* Removed legacy support plugin from main Open MCT repo

* Restored TelemetryAPI.js which had been inexplicably deleted?

* Fix linting error

* Drop line coverage threshold due to removed code

* Added a section on Open MCT 2.0.0 to the readme
This commit is contained in:
Andrew Henry
2022-02-11 11:09:58 -08:00
committed by GitHub
parent 345285b966
commit 058259278c
529 changed files with 30 additions and 56533 deletions

View File

@ -77,9 +77,7 @@ define([
'./timer/plugin',
'./userIndicator/plugin',
'../../example/exampleUser/plugin',
'./localStorage/plugin',
'./legacySupport/plugin.js',
'../adapter/indicators/legacy-indicators-plugin'
'./localStorage/plugin'
], function (
_,
UTCTimeSystem,
@ -137,21 +135,9 @@ define([
Timer,
UserIndicator,
ExampleUser,
LocalStorage,
LegacySupportPlugin,
LegacyIndicatorsPlugin
LocalStorage
) {
const bundleMap = {
Elasticsearch: 'platform/persistence/elastic'
};
const plugins = _.mapValues(bundleMap, function (bundleName, pluginName) {
return function pluginConstructor() {
return function (openmct) {
openmct.legacyRegistry.enable(bundleName);
};
};
});
const plugins = {};
plugins.example = {};
plugins.example.ExampleUser = ExampleUser.default;
@ -182,28 +168,6 @@ define([
plugins.CouchDB = CouchDBPlugin.default;
plugins.Elasticsearch = function (url) {
return function (openmct) {
if (url) {
const bundleName = "config/elastic";
openmct.legacyRegistry.register(bundleName, {
"extensions": {
"constants": [
{
"key": "ELASTIC_ROOT",
"value": url,
"priority": "mandatory"
}
]
}
});
openmct.legacyRegistry.enable(bundleName);
}
openmct.legacyRegistry.enable(bundleMap.Elasticsearch);
};
};
plugins.ImageryPlugin = ImageryPlugin;
plugins.Plot = PlotPlugin.default;
plugins.Chart = ChartPlugin.default;
@ -249,8 +213,6 @@ define([
plugins.DeviceClassifier = DeviceClassifier.default;
plugins.UserIndicator = UserIndicator.default;
plugins.LocalStorage = LocalStorage.default;
plugins.LegacySupport = LegacySupportPlugin.default;
plugins.LegacyIndicators = LegacyIndicatorsPlugin;
return plugins;
});