Commit 6cfd20a
Remove redundant ToolType field from Workload (#2932)
* Remove redundant ToolType field from Workload
The ToolType field in the Workload struct mapped to either "mcp"
(container workloads) or "remote" (remote workloads), but since MCP
is the only alternative type in practice, the field has become
unnecessary and adds no value.
This change eliminates the redundant field from the codebase,
simplifying the business logic that previously checked both ToolType
and Remote fields. The condition "ToolType != 'mcp' && !Remote" now
simplifies to just checking the Remote field directly.
Changes:
- Remove ToolType field from core.Workload struct
- Delete LabelToolType constant and GetToolType function from labels package
- Simplify shouldSkipWorkload logic in client manager
- Remove ToolType from CLI list command output
- Remove tool_type from backend metadata (workloads and vMCP)
- Update all affected tests
- Update API documentation (swagger.yaml) and regenerate docs
Fixes #2923
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>
Signed-off-by: carlos <[email protected]>
* Remove ToolType property
Signed-off-by: carlos <[email protected]>
---------
Signed-off-by: carlos <[email protected]>
Signed-off-by: carlos <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Muhammad Amir Ejaz <[email protected]>
Co-authored-by: Eleftheria Stein-Kousathana <[email protected]>
Co-authored-by: Jakub Hrozek <[email protected]>1 parent 2d952ec commit 6cfd20a
File tree
16 files changed
+7
-94
lines changed- docs/server
- pkg
- client
- core
- labels
- runner
- vmcp
- aggregator
- workloads
- workloads
- statuses
- types
- test/e2e
16 files changed
+7
-94
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
206 | 202 | | |
207 | 203 | | |
208 | 204 | | |
209 | | - | |
| 205 | + | |
210 | 206 | | |
211 | | - | |
| 207 | + | |
212 | 208 | | |
213 | 209 | | |
214 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| |||
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
162 | | - | |
163 | 160 | | |
164 | 161 | | |
165 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 50 | | |
57 | 51 | | |
58 | 52 | | |
| |||
116 | 110 | | |
117 | 111 | | |
118 | 112 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 113 | | |
125 | 114 | | |
126 | 115 | | |
| |||
147 | 136 | | |
148 | 137 | | |
149 | 138 | | |
150 | | - | |
151 | 139 | | |
152 | 140 | | |
153 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
390 | 387 | | |
391 | 388 | | |
392 | 389 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | 390 | | |
399 | 391 | | |
400 | 392 | | |
| |||
693 | 685 | | |
694 | 686 | | |
695 | 687 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
| |||
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
480 | | - | |
481 | 479 | | |
482 | 480 | | |
483 | 481 | | |
| |||
496 | 494 | | |
497 | 495 | | |
498 | 496 | | |
499 | | - | |
500 | 497 | | |
501 | 498 | | |
502 | 499 | | |
| |||
514 | 511 | | |
515 | 512 | | |
516 | 513 | | |
517 | | - | |
518 | 514 | | |
519 | 515 | | |
520 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
337 | 334 | | |
338 | 335 | | |
339 | 336 | | |
340 | | - | |
| 337 | + | |
341 | 338 | | |
342 | 339 | | |
343 | 340 | | |
| |||
353 | 350 | | |
354 | 351 | | |
355 | 352 | | |
356 | | - | |
357 | 353 | | |
358 | 354 | | |
359 | 355 | | |
| |||
0 commit comments