-
Notifications
You must be signed in to change notification settings - Fork 15
fix(Tablet): remove nodeId from header and api requests for tablet #1461
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
Conversation
src/containers/Tablet/Tablet.tsx
Outdated
clusterName: queryClusterName, | ||
}, | ||
] = useQueryParams(tabletQueryParams); | ||
const [{tenantName: queryDatabase, type: queryTabletType, clusterName: queryClusterName}] = |
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.
IMHO, tablet type should't be passed in query as well.
In the scenario, where we navigate to specific tablet by changing tablet id, we will need to change tablet type together with tablet id, otherwise it will be incorrect.
I think it won't hurt much, if correct tablet type appear in breadcrumbs after data is loaded. Until it happens, there will be a placeholder icon with T type [T]
.
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.
I've thought about this, but finally decided to leave tablet type in query string, cause as for me it doesn't hurt much: even if it will be incorrect, it will be replaced when tablet info is loaded. What do you think?
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.
I just don't like passing much in query strings, we already have very long links and they become even longer with every update. So for me, if there is no much difference, it's better not to pass
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.
Yeah, thats hurting truth! I agree with you! Lets get rid of query params if possible!
f958b60
to
f6e610c
Compare
CI Results
Test Status: β PASSED
π Full Report
Bundle Size: π½
Current: 78.97 MB | Main: 78.97 MB
Diff: 0.01 MB (-0.01%)
β Bundle size decreased.
βΉοΈ CI Information