Commit 8be7f8b
committed
Enhance dataset part handling and improve file operations
- Added the ability to create dataset parts directly from resource files. (internal use)
- Introduced new `createDatasetPartFromResource` method in `DatasetApiServiceInterface` for enhanced flexibility.
- Refactored S3 file operations to consolidate `uploadFile` logic and handle both `Resource` and `MultipartFile`.
- Updated `DatasetServiceImpl` to incorporate new repository methods ensuring optimized queries for dataset and dataset part retrieval.
- Revised MIME type scanning across services for consistent validation of uploaded files.
- Enhanced `RunnerApiServiceImpl` to use `DatasetApiServiceInterface` for managing dataset parts and introduced logic for inheriting dataset parts in runners.
- Enhanced `RunnerDatasets` object to normalize dataset parameters on `Runner` response (GET /runners/<runner_id>1 parent 817cbed commit 8be7f8b
20 files changed
Lines changed: 989 additions & 176 deletions
File tree
- api/src/integrationTest/kotlin/com/cosmotech/api/home/runner
- dataset/src
- integrationTest/kotlin/com/cosmotech/dataset/service
- main/kotlin/com/cosmotech/dataset
- part
- factories
- services
- service
- openapi/plantuml
- runner/src
- integrationTest
- kotlin/com/cosmotech/runner/service
- resources
- main
- kotlin/com/cosmotech/runner/service
- openapi
- solution/src
- integrationTest/kotlin/com/cosmotech/solution/service
- main/kotlin/com/cosmotech/solution/service
- workspace/src
- integrationTest/kotlin/com/cosmotech/workspace/service
- main/kotlin/com/cosmotech/workspace/service
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2137 | 2137 | | |
2138 | 2138 | | |
2139 | 2139 | | |
2140 | | - | |
| 2140 | + | |
2141 | 2141 | | |
2142 | 2142 | | |
2143 | 2143 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
77 | 99 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
Lines changed: 35 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
39 | 36 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | | - | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
58 | | - | |
59 | | - | |
| 55 | + | |
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
| |||
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
68 | | - | |
69 | | - | |
| 64 | + | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
| |||
76 | 71 | | |
77 | 72 | | |
78 | 73 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
82 | 95 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
Lines changed: 45 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
| |||
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
405 | 409 | | |
406 | 410 | | |
407 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
408 | 427 | | |
409 | 428 | | |
410 | 429 | | |
| |||
508 | 527 | | |
509 | 528 | | |
510 | 529 | | |
511 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
512 | 534 | | |
513 | 535 | | |
514 | 536 | | |
| |||
520 | 542 | | |
521 | 543 | | |
522 | 544 | | |
523 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
524 | 549 | | |
525 | 550 | | |
526 | 551 | | |
| |||
658 | 683 | | |
659 | 684 | | |
660 | 685 | | |
661 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
662 | 690 | | |
663 | 691 | | |
664 | 692 | | |
| |||
675 | 703 | | |
676 | 704 | | |
677 | 705 | | |
678 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
679 | 710 | | |
680 | 711 | | |
681 | 712 | | |
| |||
706 | 737 | | |
707 | 738 | | |
708 | 739 | | |
709 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
710 | 744 | | |
711 | 745 | | |
712 | 746 | | |
| |||
744 | 778 | | |
745 | 779 | | |
746 | 780 | | |
747 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
748 | 785 | | |
749 | 786 | | |
750 | 787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| |||
0 commit comments