|
89 | 89 | "skip" |
90 | 90 | ] |
91 | 91 | }, |
92 | | - "outputs": [ |
93 | | - { |
94 | | - "name": "stdout", |
95 | | - "output_type": "stream", |
96 | | - "text": [ |
97 | | - "Source project: cmn8z1aoz004rme4i4zx8c81w\n" |
98 | | - ] |
99 | | - } |
100 | | - ], |
| 92 | + "outputs": [], |
101 | 93 | "source": [ |
102 | 94 | "json_interface = {\n", |
103 | 95 | " \"jobs\": {\n", |
|
168 | 160 | "skip" |
169 | 161 | ] |
170 | 162 | }, |
171 | | - "outputs": [ |
172 | | - { |
173 | | - "name": "stdout", |
174 | | - "output_type": "stream", |
175 | | - "text": [ |
176 | | - "Source workflow steps:\n", |
177 | | - " - {'assignees': [{'email': 'test+edouard@kili-technology.com', 'id': 'user-2'}, {'email': 'labeler1@example.com', 'id': 'cmn8yvbve000lme4i2yxa252z'}, {'email': 'labeler2@example.com', 'id': 'cmn8yvbzi000tme4ifga589w7'}, {'email': 'reviewer1@example.com', 'id': 'cmn8yvc2h0011me4iajuh8v1r'}], 'type': 'DEFAULT', 'name': 'Labeling Renamed', 'id': 'cmn8z1apd004tme4i9bvbfwrv'}\n", |
178 | | - " - {'assignees': [{'email': 'test+edouard@kili-technology.com', 'id': 'user-2'}, {'email': 'reviewer1@example.com', 'id': 'cmn8yvc2h0011me4iajuh8v1r'}], 'type': 'REVIEW', 'name': 'Review', 'id': 'cmn8z1apn004ume4i8hwm0kce'}\n", |
179 | | - " - {'assignees': [{'email': 'test+edouard@kili-technology.com', 'id': 'user-2'}, {'email': 'test+max@kili-technology.com', 'id': 'user-7'}, {'email': 'test+queues@kili-technology.com', 'id': 'user-9'}, {'email': 'test+github@kili-technology.com', 'id': 'user-6'}, {'email': 'reviewer1@example.com', 'id': 'cmn8yvc2h0011me4iajuh8v1r'}], 'type': 'REVIEW', 'name': 'Review 2', 'id': 'cmn8z1e77005tme4ia3r05pk2'}\n" |
180 | | - ] |
181 | | - } |
182 | | - ], |
| 163 | + "outputs": [], |
183 | 164 | "source": [ |
184 | 165 | "from kili.use_cases.project_workflow import ProjectWorkflowUseCases # noqa: F401\n", |
185 | 166 | "\n", |
|
239 | 220 | "skip" |
240 | 221 | ] |
241 | 222 | }, |
242 | | - "outputs": [ |
243 | | - { |
244 | | - "name": "stdout", |
245 | | - "output_type": "stream", |
246 | | - "text": [ |
247 | | - "Destination project: cmn8z1hbg005yme4i3e6sc8mv\n" |
248 | | - ] |
249 | | - } |
250 | | - ], |
| 223 | + "outputs": [], |
251 | 224 | "source": [ |
252 | 225 | "destination_project_id = kili.create_project(\n", |
253 | 226 | " input_type=\"IMAGE\",\n", |
|
303 | 276 | "cell_type": "code", |
304 | 277 | "execution_count": null, |
305 | 278 | "metadata": {}, |
306 | | - "outputs": [ |
307 | | - { |
308 | | - "name": "stdout", |
309 | | - "output_type": "stream", |
310 | | - "text": [ |
311 | | - "{'enforceStepSeparation': True, 'steps': [{'id': 'cmn8z1hbw0060me4iek7parym'}, {'id': 'cmn8z1kio0070me4i7nrta6fc'}, {'id': 'cmn8z1kiu0071me4ie9kg0tn9'}]}\n" |
312 | | - ] |
313 | | - } |
314 | | - ], |
| 279 | + "outputs": [], |
315 | 280 | "source": [ |
316 | 281 | "result = kili.copy_workflow_from_project(\n", |
317 | 282 | " destination_project_id=destination_project_id,\n", |
|
338 | 303 | "cell_type": "code", |
339 | 304 | "execution_count": null, |
340 | 305 | "metadata": {}, |
341 | | - "outputs": [ |
342 | | - { |
343 | | - "name": "stdout", |
344 | | - "output_type": "stream", |
345 | | - "text": [ |
346 | | - "Destination workflow steps after copy:\n", |
347 | | - " - {'name': 'Labeling Renamed', 'type': 'DEFAULT', 'consensusCoverage': 50, 'numberOfExpectedLabelsForConsensus': 2, 'stepCoverage': None, 'sendBackStepId': None}\n", |
348 | | - " - {'name': 'Review', 'type': 'REVIEW', 'consensusCoverage': None, 'numberOfExpectedLabelsForConsensus': None, 'stepCoverage': None, 'sendBackStepId': None}\n", |
349 | | - " - {'name': 'Review 2', 'type': 'REVIEW', 'consensusCoverage': None, 'numberOfExpectedLabelsForConsensus': None, 'stepCoverage': 80, 'sendBackStepId': 'cmn8z1hbw0060me4iek7parym'}\n" |
350 | | - ] |
351 | | - } |
352 | | - ], |
| 306 | + "outputs": [], |
353 | 307 | "source": [ |
354 | 308 | "dest_steps = kili.get_steps(\n", |
355 | 309 | " project_id=destination_project_id,\n", |
|
393 | 347 | "skip" |
394 | 348 | ] |
395 | 349 | }, |
396 | | - "outputs": [ |
397 | | - { |
398 | | - "data": { |
399 | | - "text/plain": [ |
400 | | - "'cmn8z0wln0044me4icsblhtja'" |
401 | | - ] |
402 | | - }, |
403 | | - "execution_count": null, |
404 | | - "metadata": {}, |
405 | | - "output_type": "execute_result" |
406 | | - } |
407 | | - ], |
| 350 | + "outputs": [], |
408 | 351 | "source": [ |
409 | 352 | "kili.delete_project(source_project_id)\n", |
410 | 353 | "kili.delete_project(destination_project_id)" |
|
0 commit comments