mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[WARP Telemetry] Work around platform issues
Work around issues in platform which manifest as bugs or latency issues when attempting to visualize telemetry from the WARP Server. Specifically: * Handle the possibility that there is no matching representation for an object from EditRepresenter. * Don't attempt to look up colon-separated domain object identifiers from persistence. This is a workaround to avoid latency issues from excessive persistence calls; filed WTD-659 to improve this solution. Changes made to support resolution of WTD-644.
This commit is contained in:
@ -73,7 +73,7 @@ define(
|
|||||||
// Handle a specific representation of a specific domain object
|
// Handle a specific representation of a specific domain object
|
||||||
function represent(representation, representedObject) {
|
function represent(representation, representedObject) {
|
||||||
// Track the key, to know which view configuration to save to.
|
// Track the key, to know which view configuration to save to.
|
||||||
key = representation.key;
|
key = (representation || {}).key;
|
||||||
// Track the represented object
|
// Track the represented object
|
||||||
domainObject = representedObject;
|
domainObject = representedObject;
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@ define(
|
|||||||
*/
|
*/
|
||||||
function PersistedModelProvider(persistenceService, $q, SPACE) {
|
function PersistedModelProvider(persistenceService, $q, SPACE) {
|
||||||
function promiseModels(ids) {
|
function promiseModels(ids) {
|
||||||
return $q.all(ids.map(function (id) {
|
return $q.all(ids.filter(function (id) {
|
||||||
|
return id.indexOf(":") === -1;
|
||||||
|
}).map(function (id) {
|
||||||
return persistenceService.readObject(SPACE, id);
|
return persistenceService.readObject(SPACE, id);
|
||||||
})).then(function (models) {
|
})).then(function (models) {
|
||||||
var result = {};
|
var result = {};
|
||||||
|
Reference in New Issue
Block a user