mirror of
https://github.com/nasa/openmct.git
synced 2025-03-12 15:34:36 +00:00
Also report how many actual representations occur
This commit is contained in:
parent
ca12129427
commit
a0232ae6d9
@ -97,7 +97,8 @@ define(
|
|||||||
metrics = {
|
metrics = {
|
||||||
linked: (new Date()).toString(),
|
linked: (new Date()).toString(),
|
||||||
checked: 0,
|
checked: 0,
|
||||||
refreshed: 0
|
refreshed: 0,
|
||||||
|
represented: 0
|
||||||
},
|
},
|
||||||
changeTemplate = templateLinker.link($scope, element);
|
changeTemplate = templateLinker.link($scope, element);
|
||||||
|
|
||||||
@ -105,8 +106,9 @@ define(
|
|||||||
element.attr("title", [
|
element.attr("title", [
|
||||||
"Linked: " + metrics.linked,
|
"Linked: " + metrics.linked,
|
||||||
"Checked: " + metrics.checked,
|
"Checked: " + metrics.checked,
|
||||||
"Refreshed: " + metrics.refreshed
|
"Refreshed: " + metrics.refreshed,
|
||||||
].join("; "));
|
"Represented: " + metrics.represented
|
||||||
|
].join("\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Populate scope with any capabilities indicated by the
|
// Populate scope with any capabilities indicated by the
|
||||||
@ -197,7 +199,6 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
metrics.refreshed += 1;
|
metrics.refreshed += 1;
|
||||||
updateTitle();
|
|
||||||
|
|
||||||
// Create an empty object named "representation", for this
|
// Create an empty object named "representation", for this
|
||||||
// representation to store local variables into.
|
// representation to store local variables into.
|
||||||
@ -230,6 +231,7 @@ define(
|
|||||||
// Populate scope with fields associated with the current
|
// Populate scope with fields associated with the current
|
||||||
// domain object (if one has been passed in)
|
// domain object (if one has been passed in)
|
||||||
if (canRepresent) {
|
if (canRepresent) {
|
||||||
|
metrics.represented += 1;
|
||||||
// Track how many representations we've made in this scope,
|
// Track how many representations we've made in this scope,
|
||||||
// to ensure that the correct representations are matched to
|
// to ensure that the correct representations are matched to
|
||||||
// the correct object/key pairs.
|
// the correct object/key pairs.
|
||||||
@ -253,6 +255,8 @@ define(
|
|||||||
// next change object/key pair changes
|
// next change object/key pair changes
|
||||||
toClear = uses.concat(['model']);
|
toClear = uses.concat(['model']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the representation when the key changes (e.g. if a
|
// Update the representation when the key changes (e.g. if a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user