@@ -92,14 +92,6 @@ qx.Class.define("osparc.store.Functions", {
9292 } ,
9393
9494 fetchFunctionsPaginated : function ( params , options ) {
95- const isBackendReady = true ;
96- if ( ! isBackendReady ) {
97- return new Promise ( resolve => {
98- const response = this . __dummyResponse ( ) ;
99- response [ "params" ] = params ;
100- resolve ( response ) ;
101- } ) ;
102- }
10395 return osparc . data . Resources . fetch ( "functions" , "getPage" , params , options )
10496 . then ( response => {
10597 const functions = response [ "data" ] ;
@@ -110,13 +102,6 @@ qx.Class.define("osparc.store.Functions", {
110102 } ,
111103
112104 fetchFunction : function ( functionId ) {
113- const isBackendReady = true ;
114- if ( ! isBackendReady ) {
115- return new Promise ( resolve => {
116- const response = this . __dummyResponse ( ) ;
117- resolve ( response [ "data" ] [ 0 ] ) ;
118- } ) ;
119- }
120105 const params = {
121106 url : {
122107 "functionId" : functionId
@@ -136,81 +121,5 @@ qx.Class.define("osparc.store.Functions", {
136121 this . __functionsPromiseCached = null ;
137122 }
138123 } ,
139-
140- __dummyResponse : function ( ) {
141- return {
142- "_meta" : {
143- "limit" : 10 ,
144- "total" : 1 ,
145- "offset" : 0 ,
146- "count" : 1
147- } ,
148- "data" : [ {
149- "uuid" : "0fab79c3-14b8-4625-a455-6dcbf74eb4f2" ,
150- "functionClass" : "PROJECT" ,
151- "name" : "Potential Function II" ,
152- "description" : "Function description" ,
153- "inputSchema" : {
154- "schema_class" : "application/schema+json" ,
155- "schema_content" : {
156- "type" : "object" ,
157- "required" : [
158- "X"
159- ] ,
160- "properties" : {
161- "X" : {
162- "type" : "number"
163- }
164- }
165- }
166- } ,
167- "outputSchema" : {
168- "schema_class" : "application/schema+json" ,
169- "schema_content" : {
170- "type" : "object" ,
171- "required" : [
172- "Out 1" ,
173- "Out_2"
174- ] ,
175- "properties" : {
176- "Out 1" : {
177- "type" : "number"
178- } ,
179- "Out_2" : {
180- "type" : "number"
181- }
182- }
183- }
184- } ,
185- "defaultInputs" : {
186- "X" : 2 ,
187- "Y" : 1
188- } ,
189- "creationDate" : "2025-05-16T12:22:31.063Z" ,
190- "lastChangeDate" : "2025-05-16T12:22:33.804Z" ,
191- "accessRights" : {
192- "3" : {
193- "read" : true ,
194- "write" : true ,
195- "delete" : true
196- } ,
197- "5" : {
198- "read" : true ,
199- "write" : false ,
200- "delete" : false
201- }
202- } ,
203- "thumbnail" : "https://img.freepik.com/premium-vector/image-icon-design-vector-template_1309674-940.jpg" ,
204- "workbench" : { "50a50309-1dfc-5ad5-b2d9-c11697641f0b" : { "key" : "simcore/services/comp/itis/sleeper" , "version" : "2.1.6" , "label" : "sleeper" , "inputs" : { "input_2" : 2 , "input_3" : false , "input_4" : 0 , "input_5" : 0 } , "inputsRequired" : [ ] , "inputNodes" : [ "2e348481-5042-5148-9196-590574747297" , "69873032-770a-536b-adb6-0e6ea01720a4" ] } , "2e348481-5042-5148-9196-590574747297" : { "key" : "simcore/services/frontend/parameter/number" , "version" : "1.0.0" , "label" : "X" , "inputs" : { } , "inputsRequired" : [ ] , "inputNodes" : [ ] , "outputs" : { "out_1" : 1 } , "runHash" : null } , "70e1de1a-a8b0-59e3-b19e-ea20f78765ce" : { "key" : "simcore/services/frontend/iterator-consumer/probe/number" , "version" : "1.0.0" , "label" : "Out 1" , "inputs" : { "in_1" : 0 } , "inputsRequired" : [ ] , "inputNodes" : [ "50a50309-1dfc-5ad5-b2d9-c11697641f0b" ] } , "69873032-770a-536b-adb6-0e6ea01720a4" : { "key" : "simcore/services/frontend/parameter/number" , "version" : "1.0.0" , "label" : "Y" , "inputs" : { } , "inputsRequired" : [ ] , "inputNodes" : [ ] , "outputs" : { "out_1" : 1 } , "runHash" : null } , "24f856c3-408c-5ab4-ad01-e99630a355fe" : { "key" : "simcore/services/frontend/iterator-consumer/probe/number" , "version" : "1.0.0" , "label" : "Out_2" , "inputs" : { "in_1" : 0 } , "inputsRequired" : [ ] , "inputNodes" : [ "50a50309-1dfc-5ad5-b2d9-c11697641f0b" ] } } ,
205- "ui" : {
206- "workbench" : { "24f856c3-408c-5ab4-ad01-e99630a355fe" : { "position" : { "x" : 540 , "y" : 240 } } , "2e348481-5042-5148-9196-590574747297" : { "position" : { "x" : 120 , "y" : 140 } } , "50a50309-1dfc-5ad5-b2d9-c11697641f0b" : { "position" : { "x" : 300 , "y" : 180 } } , "69873032-770a-536b-adb6-0e6ea01720a4" : { "position" : { "x" : 120 , "y" : 240 } } , "70e1de1a-a8b0-59e3-b19e-ea20f78765ce" : { "position" : { "x" : 540 , "y" : 140 } } } ,
207- "mode" : "pipeline" ,
208- } ,
209- } ] ,
210- "_links" : {
211- "next" : null ,
212- } ,
213- } ;
214- } ,
215124 }
216125} ) ;
0 commit comments