chore: ensure /describe is not called on Database page in v2 navigation#3869
chore: ensure /describe is not called on Database page in v2 navigation#3869
Conversation
…2 navigation Agent-Logs-Url: https://github.com/ydb-platform/ydb-embedded-ui/sessions/80649d56-a1b9-404f-9adb-63bea53b5b76 Co-authored-by: Raubzeug <42094364+Raubzeug@users.noreply.github.com>
|
@copilot check tests, it failed |
…eout Agent-Logs-Url: https://github.com/ydb-platform/ydb-embedded-ui/sessions/02e02de5-e21c-428c-a4f2-be08e04ef1b6 Co-authored-by: Raubzeug <42094364+Raubzeug@users.noreply.github.com>
Fixed in aff70a7. The test was timing out because enabling v2 navigation triggers a "Navigation is here now" alert popover that was overlaying the tabs and blocking clicks. Added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot tests are broken and not running at all! Fix the problem! |
…stall Agent-Logs-Url: https://github.com/ydb-platform/ydb-embedded-ui/sessions/81971987-fd44-44db-b2cc-d595f981a5c3 Co-authored-by: Raubzeug <42094364+Raubzeug@users.noreply.github.com>
Fixed in 83107ce. The root cause was The fix replaces
Also added |
|
@copilot this timeout will increase test time a lot! suggest another way. |
Agent-Logs-Url: https://github.com/ydb-platform/ydb-embedded-ui/sessions/4643c70c-2c7f-4788-b1e7-4b97242a54be Co-authored-by: Raubzeug <42094364+Raubzeug@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6517798901
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
Adds a Playwright regression test to prevent accidental reintroduction of /viewer/json/describe requests when navigating across the Database page tabs under v2 tenant navigation. This supports the recent work in #3668/#3669 to keep the Database page functional for users who may not have describe permissions.
Changes:
- Adds a new e2e test that enables v2 navigation, iterates through all rendered Database page tabs, and asserts
/viewer/json/describeis never requested. - Extends the
DiagnosticsTabenum in the test page model to include the missing tab IDs needed to represent the fullDB_PAGESset (e.g.,database,network,configs,monitoring,backups).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/suites/tenant/diagnostics/tabs/databasePageDescribeAbsence.test.ts | New Playwright regression test to ensure no /viewer/json/describe requests occur while traversing Database page tabs (v2 nav). |
| tests/suites/tenant/diagnostics/Diagnostics.ts | Expands DiagnosticsTab enum to cover additional Database-page tab IDs used by v2 navigation. |
|
@copilot check review comments and fix what is sensible |
…sertion Agent-Logs-Url: https://github.com/ydb-platform/ydb-embedded-ui/sessions/9738cd06-dda9-4bb5-ab82-5e8db036c761 Co-authored-by: Raubzeug <42094364+Raubzeug@users.noreply.github.com>
Fixed in e67db0b. Two changes from the Greptile review:
|
|
@copilot fix linter issues |
PRs #3668/#3669 removed all
/describecalls from the Database page, but the mixed diagnostics context makes it easy to accidentally reintroduce them. This adds a regression test that navigates every tab of the Database page under v2 navigation and asserts/viewer/json/describeis never called.Changes
DiagnosticsTabenum — added missing tab values covering the fullDB_PAGESset:Database,Network,Configs,Monitoring,BackupsNew test
databasePageDescribeAbsence.test.ts:localStoragebefore page loadpage.on('request')listener to collect any/viewer/json/describehitsa[data-tab]) so the test stays accurate if tabs are added/removednetworkidleto flush triggered requests, then asserts zero/describecallsCI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ✨1 🗑️13
✨ New Tests (1)
🗑️ Deleted Tests (13)
Bundle Size: ✅
Current: 63.75 MB | Main: 63.75 MB
Diff: 0.00 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information