This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch release-v0.19
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.19 by this push:
     new d7a07eb6d fix(config-ui): show full name in connection data scope 
(#6229)
d7a07eb6d is described below

commit d7a07eb6d7699aeb6971e8f984726429bb2c9580
Author: 青湛 <[email protected]>
AuthorDate: Thu Oct 12 19:24:55 2023 +1300

    fix(config-ui): show full name in connection data scope (#6229)
---
 config-ui/src/pages/connection/detail/index.tsx | 3 ++-
 config-ui/src/plugins/utils.ts                  | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/pages/connection/detail/index.tsx 
b/config-ui/src/pages/connection/detail/index.tsx
index c16b574ba..540525894 100644
--- a/config-ui/src/pages/connection/detail/index.tsx
+++ b/config-ui/src/pages/connection/detail/index.tsx
@@ -267,8 +267,9 @@ const ConnectionDetail = ({ plugin, connectionId }: Props) 
=> {
           columns={[
             {
               title: 'Data Scope',
-              dataIndex: 'name',
+              dataIndex: ['name', 'fullName'],
               key: 'name',
+              render: ({ name, fullName }) => fullName ?? name,
             },
             {
               title: 'Project',
diff --git a/config-ui/src/plugins/utils.ts b/config-ui/src/plugins/utils.ts
index 37abe4575..fa1af012a 100644
--- a/config-ui/src/plugins/utils.ts
+++ b/config-ui/src/plugins/utils.ts
@@ -30,7 +30,7 @@ export const getPluginScopeId = (plugin: string, scope: any) 
=> {
     case 'gitlab':
       return `${scope.gitlabId}`;
     case 'jenkins':
-      return `${scope.jobFullName}`;
+      return `${scope.fullName}`;
     case 'bitbucket':
       return `${scope.bitbucketId}`;
     case 'sonarqube':

Reply via email to