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 <[email protected]> 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':
