Json export fix (#2043)

* Refactoring export to json to use new style objects

* Added convenience function to Object API to get identifiers as strings

* Updated tests for ExportAsJSON

* Fixed bug with parent composition not being updated with new ID. Also rewrite IDs in configuration etc. Fixes #2042
This commit is contained in:
Andrew Henry
2018-06-28 17:45:14 -07:00
committed by Pete Richards
parent 90a6bbc13e
commit 07fb20c32f
4 changed files with 142 additions and 102 deletions

View File

@ -207,6 +207,14 @@ define([
return mutableObject.stopListening.bind(mutableObject);
};
/**
* @param {module:openmct.ObjectAPI~Identifier} identifier
* @returns {string} A string representation of the given identifier, including namespace and key
*/
ObjectAPI.prototype.makeKeyString = function (identifier) {
return utils.makeKeyString(identifier);
};
/**
* Uniquely identifies a domain object.
*