You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/10/12 06:18:05 UTC

[incubator-devlake] branch release-v0.19-fix-6178 created (now 8fe90ab3f)

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

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


      at 8fe90ab3f fix(config-ui): show full name in connection data scope

This branch includes the following new commits:

     new 8fe90ab3f fix(config-ui): show full name in connection data scope

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-devlake] 01/01: fix(config-ui): show full name in connection data scope

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 8fe90ab3feddd3c2360c887f3745efdfefd541bc
Author: mintsweet <0x...@gmail.com>
AuthorDate: Thu Oct 12 19:17:52 2023 +1300

    fix(config-ui): show full name in connection data scope
---
 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':