Merge branch 'main' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
43e18e0c11
|
@ -131,7 +131,8 @@ public class MsScenario extends MsTestElement {
|
|||
scenarioTree.add(valueSupposeMock);
|
||||
}
|
||||
}
|
||||
if (BooleanUtils.isTrue(this.variableEnable) || BooleanUtils.isTrue(this.mixEnable)) {
|
||||
if ((this.variableEnable == null && this.mixEnable == null)
|
||||
|| BooleanUtils.isTrue(this.variableEnable) || BooleanUtils.isTrue(this.mixEnable)) {
|
||||
ElementUtil.addCsvDataSet(scenarioTree, variables, this.isEnvironmentEnable() ? newConfig : config, "shareMode.group");
|
||||
ElementUtil.addCounter(scenarioTree, variables);
|
||||
ElementUtil.addRandom(scenarioTree, variables);
|
||||
|
|
|
@ -1428,8 +1428,11 @@ public class IssuesService {
|
|||
public List<PlatformStatusDTO> getPlatformStatus(PlatformIssueTypeRequest request) {
|
||||
List<PlatformStatusDTO> platformStatusDTOS = new ArrayList<>();
|
||||
Project project = baseProjectService.getProjectById(request.getProjectId());
|
||||
String projectConfig = PlatformPluginService.getCompatibleProjectConfig(project);
|
||||
String platform = project.getPlatform();
|
||||
if (StringUtils.equals(platform, IssuesManagePlatform.Local.name())) {
|
||||
return null;
|
||||
}
|
||||
String projectConfig = PlatformPluginService.getCompatibleProjectConfig(project);
|
||||
if (PlatformPluginService.isPluginPlatform(platform)) {
|
||||
return platformPluginService.getPlatform(platform)
|
||||
.getStatusList(projectConfig)
|
||||
|
|
|
@ -105,6 +105,9 @@ public class PlatformPluginService {
|
|||
|
||||
public static String getCompatibleProjectConfig(Project project) {
|
||||
String issueConfig = project.getIssueConfig();
|
||||
if (StringUtils.isBlank(issueConfig)) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
Map map = JSON.parseMap(issueConfig);
|
||||
compatibleProjectKey(map, "jiraKey", project.getJiraKey());
|
||||
compatibleProjectKey(map, "tapdId", project.getTapdId());
|
||||
|
|
|
@ -305,16 +305,18 @@ export default {
|
|||
|
||||
this.hasLicense = hasLicense();
|
||||
|
||||
getPlatformStatus( {
|
||||
getPlatformStatus({
|
||||
projectId: getCurrentProjectID(),
|
||||
workspaceId: getCurrentWorkspaceId()
|
||||
}).then((r) => {
|
||||
this.platformStatus = r.data;
|
||||
this.platformStatusMap = new Map();
|
||||
this.platformStatus = r.data;
|
||||
this.platformStatusMap = new Map();
|
||||
if (this.platformStatus) {
|
||||
this.platformStatus.forEach(item => {
|
||||
this.platformStatusMap.set(item.value, item.label);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
platformFilters() {
|
||||
|
|
Loading…
Reference in New Issue