Skip to content

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

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

Raubzeug
Copy link
Contributor

@Raubzeug Raubzeug commented Oct 14, 2024

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
134 134 0 0 0

Bundle Size: πŸ”½

Current: 78.97 MB | Main: 78.97 MB
Diff: 0.01 MB (-0.01%)

βœ… Bundle size decreased.

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

@Raubzeug Raubzeug changed the title fix(Tablet): remove nodeId from breadcrumbs and api requests for part… fix(Tablet): remove nodeId from breadcrumbs and api requests for tablet Oct 14, 2024
@Raubzeug Raubzeug changed the title fix(Tablet): remove nodeId from breadcrumbs and api requests for tablet fix(Tablet): remove nodeId from header and api requests for tablet Oct 14, 2024
clusterName: queryClusterName,
},
] = useQueryParams(tabletQueryParams);
const [{tenantName: queryDatabase, type: queryTabletType, clusterName: queryClusterName}] =
Copy link
Member

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].

Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Contributor Author

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!

@Raubzeug Raubzeug added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit e452f15 Oct 15, 2024
12 checks passed
@Raubzeug Raubzeug deleted the 1458-tabletinfo branch October 15, 2024 12:37
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.

Get rid of tablet type query parameter in tablet's url Do not pass nodeId to tabletinfo for particular tablet
2 participants