[MM-53019] Add file storage permission check to workspace health dashboard (#24403)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3d81a63b4e
Коммит
4ed32be6d2
@@ -2343,13 +2343,15 @@ export default class Client4 {
|
||||
|
||||
// General Routes
|
||||
|
||||
ping = () => {
|
||||
ping = (getServerStatus: boolean, deviceId?: string) => {
|
||||
return this.doFetch<{
|
||||
status: string;
|
||||
ActiveSearchBackend: string;
|
||||
database_status: string;
|
||||
filestore_status: string;
|
||||
}>(
|
||||
`${this.getBaseRoute()}/system/ping?time=${Date.now()}`,
|
||||
{method: 'get'},
|
||||
`${this.getBaseRoute()}/system/ping${buildQueryString({get_server_status: getServerStatus, device_id: deviceId})}`,
|
||||
{method: 'get', ignoreStatus: true},
|
||||
);
|
||||
};
|
||||
|
||||
@@ -4086,7 +4088,7 @@ export default class Client4 {
|
||||
}
|
||||
}
|
||||
|
||||
if (response.ok) {
|
||||
if (response.ok || options.ignoreStatus) {
|
||||
return {
|
||||
response,
|
||||
headers,
|
||||
|
||||
Ссылка в новой задаче
Block a user