-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 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}); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
Closes #1479
Stand
CI Results
Test Status: ✅ PASSED
📊 Full Report
Test Changes Summary ⏭️1
⏭️ Skipped Tests (1)
Bundle Size: ✅
Current: 83.22 MB | Main: 83.22 MB
Diff: +3.39 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information