-
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
fix: if database pass name to query params and to backend handlers #1978
base: main
Are you sure you want to change the base?
Conversation
f5adb59
to
ac89a5a
Compare
const locationSearch = new URLSearchParams(window.location.search); | ||
const database = locationSearch.get('database'); | ||
if (database) { | ||
extendedQuery = {...extendedQuery, 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.
You should only add database if there is no database in initial query. So it should be like
extendedQuery = {database, ...extendedQuery}
@@ -163,6 +163,7 @@ function Diagnostics(props: DiagnosticsProps) { | |||
wrapTo={({id}, node) => { | |||
const path = getTenantPath({ | |||
...queryParams, | |||
database: tenantName, |
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.
You already have database
in queryParams
, ...queryParams
is enough
@@ -48,6 +49,7 @@ export const TabletInfo = ({tablet}: TabletInfoProps) => { | |||
tabletInfo.push({ | |||
label: tabletInfoKeyset('field_hive'), | |||
value: ( | |||
//TODO: add database to getTabletPagePath after fix in backend |
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.
What fix on backend is needed?
tenantName, | ||
location, | ||
tenantName, |
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.
tenantName
is passed twice
// TODO: add database when backend support it | ||
// database={database?.toString()} |
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.
What support from backend is needed?
{concurrentId, signal}: AxiosOptions = {}, | ||
) { | ||
return this.get<TPDiskInfoResponse>( | ||
this.getPath('/pdisk/info'), | ||
{ | ||
node_id: nodeId, | ||
pdisk_id: pDiskId, | ||
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.
PDisk doesn't relate to specific database
closes #1970
stand
CI Results
Test Status: β PASSED
π Full Report
π No changes in tests. π
Bundle Size: πΊ
Current: 80.62 MB | Main: 80.61 MB
Diff: +0.01 MB (0.01%)
βΉοΈ CI Information