dosubot[bot] commented on issue #8827:
URL: 
https://github.com/apache/incubator-devlake/issues/8827#issuecomment-4214046682

   <!-- Answer -->
   Thanks for the detailed report. I took a look at how this is currently 
implemented.
   
   The backend already provides both the short `name` and the full 
`pathWithNamespace` (e.g., `group/subgroup/project`) for every GitLab project 
[[1]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/gitlab/api/remote_api.go#L171-L186).
 The frontend **does** use the full path in two places — **search results** and 
**selected tags** 
[[2]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx#L137-L140)
 
[[3]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx#L161-L168):
   
   ```typescript
   // Search results use fullName
   title: it.fullName ?? it.name
   
   // Selected tags show fullName
   <Tag key={sc.id} color="blue" closable>{sc.fullName}</Tag>
   ```
   
   However, when **browsing via the Miller Columns** (the hierarchical tree 
view), only the short `name` is displayed 
[[4]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx#L94-L97).
 This is likely where the confusion in your screenshot is coming from — if you 
have identically-named repos across different groups/subgroups, they look the 
same in that view.
   
   Since the `fullName` data is already available from the backend, a fix would 
be relatively straightforward: update the Miller Columns rendering to show 
`fullName` (or at least fall back to it when duplicate names are detected). The 
`RemoteScope` type already carries both fields 
[[5]](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/api/scope/index.ts#L67-L74).
   
   If anyone wants to pick this up, the relevant frontend file is the one 
handling the Miller Column scope selector — specifically the item rendering 
logic that currently uses `name` instead of `fullName`.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=too_verbose)
 | [Hallucination](https://
 
app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other#message_id=567be1bc-6e2f-4d59-8b84-e41ca29314f5&feedback_type=other)</sup>
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Thanks%20for%20the%20detailed%20report.%20I%20took%20a%20look%20at%20how%20this%20is%20currently%20implemented.%0A%0AThe%20backend%20already%20provides%20both%20the%20short%20%60name%60%20and%20the%20full%20%60pathWithNamespace%60%20%28e.g.%2C%20%60group/subgroup/project%60%29%20for%20every%20GitLab%20project%20%5B%5B1%5D%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/gitlab/api/remote_api.go%23L171-L186%29.%20The%20frontend%20%2A%2Adoes%2A%2A%20use%20the%20full%20path%20in%20two%20places%20%E2%80%94%20%2A%2Asearch%20results%2A%2A%20and%20%2A%2Aselected%20tags%2A%2A%20%5B%5B2%5D%5D%28https%3A//github.com/apac
 
he/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx%23L137-L140%29%20%5B%5B3%5D%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx%23L161-L168%29%3A%0A%0A%60%60%60typescript%0A//%20Search%20results%20use%20fullName%0Atitle%3A%20it.fullName%20%3F%3F%20it.name%0A%0A//%20Selected%20tags%20show%20fullName%0A%3CTag%20key%3D%7Bsc.id%7D%20color%3D%22blue%22%20closable%3E%7Bsc.fullName%7D%3C/Tag%3E%0A%60%60%60%0A%0AHowever%2C%20when%20%2A%2Abrowsing%20via%20the%20Miller%20Columns%2A%2A%20%28the%20hierarchical%20tree%20view%29%2C%20only%20the%20short%20%60name%60%20is%20displayed%20%5B%5B4%5D%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx%23L94-L97%29.%20This%20is%20likely%20wher
 
e%20the%20confusion%20in%20your%20screenshot%20is%20coming%20from%20%E2%80%94%20if%20you%20have%20identically-named%20repos%20across%20different%20groups/subgroups%2C%20they%20look%20the%20same%20in%20that%20view.%0A%0ASince%20the%20%60fullName%60%20data%20is%20already%20available%20from%20the%20backend%2C%20a%20fix%20would%20be%20relatively%20straightforward%3A%20update%20the%20Miller%20Columns%20rendering%20to%20show%20%60fullName%60%20%28or%20at%20least%20fall%20back%20to%20it%20when%20duplicate%20names%20are%20detected%29.%20The%20%60RemoteScope%60%20type%20already%20carries%20both%20fields%20%5B%5B5%5D%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/config-ui/src/api/scope/index.ts%23L67-L74%29.%0A%0AIf%20anyone%20wants%20to%20pick%20this%20up%2C%20the%20relevant%20frontend%20file%20is%20the%20one%20handling%20the%20Miller%20Column%20scope%20selector%20%E2%80%94%20specifically%20the%20item%20rendering%20logic%20that%20currently%2
 0uses%20%60name%60%20instead%20of%20%60fullName%60.)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8827)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to