Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: followerId for tablets #2025

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat: followerId for tablets #2025

wants to merge 6 commits into from

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Mar 18, 2025

Closes #1479

Stand

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
278 277 0 0 1
Test Changes Summary ⏭️1

⏭️ Skipped Tests (1)

  1. Streaming query shows some results and banner when stop button is clicked (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: ✅

Current: 83.22 MB | Main: 83.22 MB
Diff: +3.39 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.

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 adds support for displaying a follower identifier alongside tablet IDs across several UI components. The changes update SQL queries and component props to concatenate the follower identifier (if available) into the tablet name displayed in tablet-related views.

  • Updated SQL query alias from "Path" to "RelativePath" and switched to wildcard selection for partition stats.
  • Modified Tablet.tsx and TabletNameWrapper.tsx to incorporate a new followerId field in tablet naming.
  • Updated TabletsTable.tsx and ShardsTable/columns.tsx to pass and render the followerId accordingly.

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/store/reducers/shardsWorkload/shardsWorkload.ts Updated query to alias path as "RelativePath" and use wildcard selection from .sys/partition_stats, aligning schema field names with UI components.
src/containers/Tablet/Tablet.tsx Added extraction of FollowerId from tablet data and updated tablet name construction for better identification.
src/components/TabletNameWrapper/TabletNameWrapper.tsx Extended component props and tablet name concatenation to support an additional followerId field.
src/containers/Tablets/TabletsTable.tsx Modified usage of TabletNameWrapper to pass followerId from tablet rows.
src/components/ShardsTable/columns.tsx Updated column rendering to use new "RelativePath" alias and pass followerId to TabletNameWrapper.
Comments suppressed due to low confidence (1)

src/store/reducers/shardsWorkload/shardsWorkload.ts:80

  • Using wildcard selection may unintentionally include extra columns; consider explicitly listing only the necessary fields to ensure that downstream processing remains consistent.
    `.sys/partition_stats`.*
database?: string;
}

export function TabletNameWrapper({tabletId, database}: TabletNameWrapperProps) {
export function TabletNameWrapper({tabletId, followerId, database}: TabletNameWrapperProps) {
const isUserAllowedToMakeChanges = useIsUserAllowedToMakeChanges();

const tabletPath = getTabletPagePath(tabletId, {database});
Copy link
Member

Choose a reason for hiding this comment

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

FollowerId should be in page path as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

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.

FollowerId in TopShards
2 participants