Skip to content

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Oct 1, 2025

Closes #2919

Cluster with use_meta_proxy=true: https://nda.ya.ru/t/_nh5uj-z7KjCKU
Cluster with use_meta_proxy=false: https://nda.ya.ru/t/QBZ2jrfT7KjCPq

We have developer UI links for cluster, nodes, VDisks, PDisks, tablets

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 374 0 2 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: ✅

Current: 85.59 MB | Main: 85.59 MB
Diff: +0.57 KB (0.00%)

✅ Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

const pDiskPath = createPDiskDeveloperUILink({
nodeId,
pDiskId,
host: this.getPath(''),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is default value in createDeveloperUILinkWithNodeId, that is used in createPDiskDeveloperUILink

@artemmufazalov artemmufazalov requested a review from Copilot October 1, 2025 11:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes developer UI links for clusters running in cloud and embedded modes by properly handling the use_meta_proxy configuration setting. When meta proxy is enabled, the system should use the current host instead of the balancer URL for generating developer UI links.

Key changes:

  • Modified developer UI link generation to use current host when meta proxy is enabled
  • Updated link generators to use a centralized getCurrentHost() function instead of hardcoded backend
  • Added proper handling of the useMetaProxy parameter in link generation functions

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/utils/prepareBackend.ts Added useMetaProxy parameter and logic to use current host when meta proxy is enabled
src/utils/hooks/useNodeDeveloperUIHref.ts Updated to pass useMetaProxy setting to backend preparation function
src/utils/developerUI/developerUI.ts Replaced hardcoded backend with getCurrentHost() function and removed host parameters
src/utils/developerUI/test/developerUI.test.ts Added test setup to mock the window.api for getCurrentHost() function
src/services/api/pdisk.ts Removed redundant host parameter since getCurrentHost() is now used by default

@artemmufazalov artemmufazalov marked this pull request as ready for review October 1, 2025 11:36
@artemmufazalov artemmufazalov added this pull request to the merge queue Oct 2, 2025
Merged via the queue into main with commit bcc3e93 Oct 2, 2025
7 checks passed
@artemmufazalov artemmufazalov deleted the 2919-fix-developer-ui branch October 2, 2025 09:19
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.

Fix developer UI link in EM and Cloud
2 participants