Skip to content

Commit 9974ce9

Browse files
authored
fix(plugins): change testmo icon color, add beta tag, remove project creation (#8513)
Improve and fix the Testmo plugin: 1. Icon Color Update Redesigned icon.svg to use DevLake's signature blue (#7497f7) Simplified to clean three-layer hexagonal structure for better visual integration 2. Added Beta Tag Added isBeta: true in config.tsx to display beta indicator in UI 3. Enhanced Task Display Names Added Name field to TestmoOptions (task_data.go) Updated blueprint_v200.go and task.tsx to show meaningful names like "Testmo:ProjectName" Improves task identification during pipeline execution 4. Removed Invalid Project Creation Removed tasks.ConvertProjectsMeta from SubTaskMetas (impl.go) Deleted project_converter.go entirely Prevents creation of invalid domain layer projects that don't align with DevLake's project model
1 parent e474b4e commit 9974ce9

File tree

7 files changed

+27
-104
lines changed

7 files changed

+27
-104
lines changed

backend/plugins/testmo/api/blueprint_v200.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func makePipelinePlanV200(
6969
tasks.TestmoOptions{
7070
ConnectionId: connection.ID,
7171
ProjectId: scope.Id,
72+
Name: scope.Name,
7273
ScopeConfig: scopeConfig,
7374
},
7475
)

backend/plugins/testmo/impl/impl.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ func (p Testmo) SubTaskMetas() []plugin.SubTaskMeta {
9292
tasks.ExtractAutomationRunsMeta,
9393
tasks.CollectTestsMeta,
9494
tasks.ExtractTestsMeta,
95-
tasks.ConvertProjectsMeta,
9695
tasks.ConvertAutomationRunsMeta,
9796
tasks.ConvertTestsMeta,
9897
}

backend/plugins/testmo/tasks/project_converter.go

Lines changed: 0 additions & 79 deletions
This file was deleted.

backend/plugins/testmo/tasks/task_data.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
type TestmoOptions struct {
2828
ConnectionId uint64 `json:"connectionId"`
2929
ProjectId uint64 `json:"projectId"`
30+
Name string `json:"name"`
3031
ScopeConfig *models.TestmoScopeConfig
3132

3233
// Time filter
Lines changed: 20 additions & 23 deletions
Loading

config-ui/src/plugins/register/testmo/config.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const TestmoConfig: IPluginConfig = {
2424
plugin: 'testmo',
2525
name: 'Testmo',
2626
icon: ({ color }) => <Icon fill={color} />,
27+
isBeta: true,
2728
sort: 160,
2829
connection: {
2930
docLink: 'https://devlake.apache.org/docs/Configuration/Testmo',
@@ -62,4 +63,4 @@ export const TestmoConfig: IPluginConfig = {
6263
entities: ['TEST', 'TESTCASE', 'TESTRESULT'],
6364
transformation: {},
6465
},
65-
}
66+
};

config-ui/src/routes/pipeline/components/task.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export const PipelineTask = ({ task }: Props) => {
8686
case ['bamboo'].includes(config.plugin):
8787
name = `${name}:${options.planKey}`;
8888
break;
89+
case ['testmo'].includes(config.plugin):
90+
name = `${name}:${options.name}`;
91+
break;
8992
case ['azuredevops_go'].includes(config.plugin):
9093
name = `ado:${options.name}`;
9194
break;

0 commit comments

Comments
 (0)