Skip to content

Conversation

@DaryaVorontsova
Copy link
Contributor

@DaryaVorontsova DaryaVorontsova commented Dec 10, 2025

The partitions progress bar is hidden behind a window flag for now.

To enable it in the browser, run in DevTools console:

window.WINDOW_SHOW_TABLE_SETTINGS = true;
Stand: https://nda.ya.ru/t/tOLLKQmr7PaJQ5
In this database you can see different tables with different number of partitions (with min, max, less then min, with no max)

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 375 0 1 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: 62.50 MB | Main: 62.48 MB
Diff: +0.02 MB (0.03%)

⚠️ Bundle size increased. Please review.

ℹ️ 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.

@DaryaVorontsova DaryaVorontsova marked this pull request as draft December 10, 2025 15:30
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

6 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@DaryaVorontsova DaryaVorontsova marked this pull request as ready for review December 10, 2025 17:08
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

7 files reviewed, no comments

Edit Code Review Agent Settings | Greptile


// Feature flag: show partitions progress only if WINDOW_SHOW_TABLE_SETTINGS is truthy
const isPartitionsProgressEnabled = Boolean(
(window as unknown as {WINDOW_SHOW_TABLE_SETTINGS?: unknown}).WINDOW_SHOW_TABLE_SETTINGS,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we could add type to window.d.ts to avoid "as unknown"

title={title}
className={b('info-block')}
renderEmptyState={() => <div className={b('title')}>{title}</div>}
renderEmptyState={() => null}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is returning null instead of message intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is intentional)
Previously we used renderEmptyState to render the block title when there was no data, because the title was inside InfoViewer. After implementing a progress bar TableInfo renders a permanent header above the whole block. If I return a title from renderEmptyState now, we will have two titles for the same section in "no data" case, which looks redundant.

Copy link
Collaborator

@astandrik astandrik left a comment

Choose a reason for hiding this comment

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

Left couple of questions

"tabletMetrics": "Tablet Metrics",
"title": "Partitioning",
"tableStats": "Stats",
"tabletMetrics": "Metrics",
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be great to create new keys in i18n-naming-ruleset.md format

(and very super best to change old keys to use it =)) )


const hasMaxLimit = !isNil(maxPartitions);

if (!hasMaxLimit) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be good to move calculations to some function (maybe utils.ts in the same folder) and to cover it with unit tests

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

8 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

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.

Implement new progress bar in the top of the page of table settings

3 participants