Skip to content

Commit

Permalink
Adapter consolidation & fix incorrect export to window (#2114)
Browse files Browse the repository at this point in the history
* Merge adapter bundles

Merge adapter bundles into consistent location.

Update telemetry API to not incorrectly expose the format service
on window.

* openmct available on window for developers

* remove offending comma
  • Loading branch information
larkin authored and akhenry committed Jul 17, 2018
1 parent b0702ce commit 4a046b3
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 114 deletions.
1 change: 1 addition & 0 deletions index.html
Expand Up @@ -73,6 +73,7 @@
openmct.time.clock('local', {start: -THIRTY_MINUTES, end: 0});
openmct.time.timeSystem('utc');
openmct.start();
window.openmct = openmct;
});
</script>
<link rel="stylesheet" href="platform/commonUI/general/res/css/startup-base.css">
Expand Down
27 changes: 25 additions & 2 deletions src/adapter/bundle.js
Expand Up @@ -32,7 +32,9 @@ define([
'./policies/AdaptedViewPolicy',
'./runs/AlternateCompositionInitializer',
'./runs/TimeSettingsURLHandler',
'./runs/TypeDeprecationChecker'
'./runs/TypeDeprecationChecker',
'./runs/LegacyTelemetryProvider',
'./services/LegacyObjectAPIInterceptor'
], function (
legacyRegistry,
ActionDialogDecorator,
Expand All @@ -45,7 +47,9 @@ define([
AdaptedViewPolicy,
AlternateCompositionInitializer,
TimeSettingsURLHandler,
TypeDeprecationChecker
TypeDeprecationChecker,
LegacyTelemetryProvider,
LegacyObjectAPIInterceptor
) {
legacyRegistry.register('src/adapter', {
"extensions": {
Expand Down Expand Up @@ -94,6 +98,18 @@ define([
provides: "modelService",
implementation: MissingModelCompatibilityDecorator,
depends: ["openmct"]
},
{
provides: "objectService",
type: "decorator",
priority: "mandatory",
implementation: LegacyObjectAPIInterceptor,
depends: [
"openmct",
"roots[]",
"instantiate",
"topic"
]
}
],
policies: [
Expand Down Expand Up @@ -126,6 +142,13 @@ define([
);
},
depends: ["openmct", "$location", "$rootScope"]
},
{
implementation: LegacyTelemetryProvider,
depends: [
"openmct",
"instantiate"
]
}
],
licenses: [
Expand Down
Expand Up @@ -21,7 +21,7 @@
*****************************************************************************/

define([
'../objects/object-utils'
'../../api/objects/object-utils'
], function (
utils
) {
Expand Down
Expand Up @@ -21,7 +21,7 @@
*****************************************************************************/

define([
'./object-utils'
'../../api/objects/object-utils'
], function (
utils
) {
Expand Down
51 changes: 0 additions & 51 deletions src/api/objects/bundle.js

This file was deleted.

55 changes: 0 additions & 55 deletions src/api/telemetry/bundle.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/defaultRegistry.js
Expand Up @@ -24,8 +24,6 @@ define([
'legacyRegistry',

'../src/adapter/bundle',
'../src/api/objects/bundle',
'../src/api/telemetry/bundle',

'../example/builtins/bundle',
'../example/composite/bundle',
Expand Down Expand Up @@ -93,8 +91,6 @@ define([

var DEFAULTS = [
'src/adapter',
'src/api/objects',
'src/api/telemetry',
'platform/framework',
'platform/core',
'platform/representation',
Expand Down

0 comments on commit 4a046b3

Please sign in to comment.