mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
[Persistence] Update bunde definition
...to reflect removal of 'additional persistence spaces'; parse these out of identifiers instead.
This commit is contained in:
@ -72,8 +72,7 @@
|
|||||||
"persistenceService",
|
"persistenceService",
|
||||||
"$q",
|
"$q",
|
||||||
"now",
|
"now",
|
||||||
"PERSISTENCE_SPACE",
|
"PERSISTENCE_SPACE"
|
||||||
"ADDITIONAL_PERSISTENCE_SPACES"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -239,11 +238,6 @@
|
|||||||
{
|
{
|
||||||
"key": "PERSISTENCE_SPACE",
|
"key": "PERSISTENCE_SPACE",
|
||||||
"value": "mct"
|
"value": "mct"
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ADDITIONAL_PERSISTENCE_SPACES",
|
|
||||||
"value": [],
|
|
||||||
"description": "An array of additional persistence spaces to load models from."
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"licenses": [
|
"licenses": [
|
||||||
|
@ -41,13 +41,13 @@ define(
|
|||||||
* @param $q Angular's $q service, for working with promises
|
* @param $q Angular's $q service, for working with promises
|
||||||
* @param {function} now a function which provides the current time
|
* @param {function} now a function which provides the current time
|
||||||
* @param {string} space the name of the persistence space(s)
|
* @param {string} space the name of the persistence space(s)
|
||||||
* from which models should be retrieved.
|
* from which models should be retrieved by default
|
||||||
* @param {string} spaces additional persistence spaces to use
|
|
||||||
*/
|
*/
|
||||||
function PersistedModelProvider(persistenceService, $q, now) {
|
function PersistedModelProvider(persistenceService, $q, now, space) {
|
||||||
this.persistenceService = persistenceService;
|
this.persistenceService = persistenceService;
|
||||||
this.$q = $q;
|
this.$q = $q;
|
||||||
this.now = now;
|
this.now = now;
|
||||||
|
this.defaultSpace = space;
|
||||||
}
|
}
|
||||||
|
|
||||||
PersistedModelProvider.prototype.getModels = function (ids) {
|
PersistedModelProvider.prototype.getModels = function (ids) {
|
||||||
|
Reference in New Issue
Block a user