Skip to content

Drop the shared group path from service names - #49

Merged
lesnik512 merged 1 commit into
mainfrom
page/shared-prefix
Oct 24, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
page/shared-prefix

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Long project paths took up most of each service line, and the part that tells services apart sat at the end. In a group run every service usually starts with the same group, so the page now leaves that part out: shop/api shows as api, and hovering the name shows the full path.

Changes:

  • The page finds the longest run of leading path segments that every listed service shares and strips it from the service names and from the "not in this report" projects that start with it. The last segment always stays.
  • With a single service nothing is stripped, since there is nothing to compare it with.
  • The GitLab link inside an open service and everything in the Release column keep full paths, so copied text is unchanged.
  • An ellipsis at the end was the first idea, but it cuts the distinguishing part (team/backend/paym… for both payments-api and payments-worker).

Tests: test_demo_lists_its_services_and_picks_tags_for_an_issue now expects admin, api, web, worker with shop/admin as the title, and failed before the change. _demo_service finds a service by its title. The single-service test still expects team/svc. just test-ci, just test-smoke and just lint-ci pass.

@lesnik512
lesnik512 merged commit c412ac9 into main Oct 24, 2026
15 checks passed
@lesnik512
lesnik512 deleted the page/shared-prefix branch October 24, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant