Skip to content

Commit 7e71b91

Browse files
committed
getUnknownServiceMetadata
1 parent 653770b commit 7e71b91

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

services/static-webserver/client/source/class/osparc/data/model/NodeUnknown.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,12 @@ qx.Class.define("osparc.data.model.NodeUnknown", {
2929
* @param nodeId {String} uuid of the service represented by the node (not needed for new Nodes)
3030
*/
3131
construct: function(study, key, version, nodeId) {
32-
const metadata = this.self().getUnknownMetadata(key, version);
32+
const metadata = osparc.store.Services.getUnknownServiceMetadata(key, version);
3333

3434
this.base(arguments, study, metadata, nodeId);
3535
},
3636

3737
statics: {
38-
getUnknownMetadata: function(key, version) {
39-
return {
40-
key: key,
41-
version: version,
42-
type: "unknown",
43-
name: "Unknown Node",
44-
inputs: {},
45-
outputs: {},
46-
bootOptions: {
47-
boot_mode: {
48-
items: {},
49-
default: null
50-
}
51-
},
52-
propsForm: null,
53-
outputsForm: null,
54-
inputsUnits: {},
55-
};
56-
},
5738
},
5839

5940
members: {

services/static-webserver/client/source/class/osparc/store/Services.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,23 @@ qx.Class.define("osparc.store.Services", {
400400
return this.getLatest("simcore/services/frontend/iterator-consumer/probe/"+type);
401401
},
402402

403+
getUnknownServiceMetadata: function(key, version) {
404+
return {
405+
key: key || "simcore/services/frontend/unknown",
406+
version: version || "0.0.0",
407+
type: "frontend",
408+
name: "Unknown",
409+
inputs: {},
410+
outputs: {},
411+
accessRights: {
412+
1: {
413+
execute: true,
414+
write: false,
415+
}
416+
},
417+
};
418+
},
419+
403420
__addServiceToCache: function(service) {
404421
this.__addHit(service);
405422
this.__addTSRInfo(service);

0 commit comments

Comments
 (0)