[MM-53019] Add file storage permission check to workspace health dashboard (#24403)

Этот коммит содержится в:
Ben Schumacher
2023-10-19 17:31:09 +02:00
коммит произвёл GitHub
родитель 3d81a63b4e
Коммит 4ed32be6d2
8 изменённых файлов: 53 добавлений и 8 удалений

Просмотреть файл

@@ -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,