Skip to content

Commit

Permalink
revert: "fix(System): fixed typo, now we check correct "maintenance" …
Browse files Browse the repository at this point in the history
…attribute"

This reverts commit c97f9be.
  • Loading branch information
vrozaev committed Jan 29, 2025
1 parent 71d0534 commit 1cb8822
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/ui/src/ui/store/actions/system/masters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const toaster = new Toaster();

const {NODE_DOES_NOT_EXIST} = YTErrors;

export function filterOutMaintenanceHosts(
export function filterOutMaintananceHosts(
value: Record<string, CypressNode<{maintenance?: boolean}, string>> | null,
) {
if (!value) {
Expand Down Expand Up @@ -137,10 +137,10 @@ async function loadMastersConfig(): Promise<[MastersConfigResponse, MasterAlert[

const alerts = alertsResult.output ? (alertsResult.output as MasterAlert[]) : [];
const [timestamp_path] = Object.keys(
filterOutMaintenanceHosts(ypath.getValue(timestampProvidersResult.output)),
filterOutMaintananceHosts(ypath.getValue(timestampProvidersResult.output)),
);
const primaryMasterPaths = Object.keys(
filterOutMaintenanceHosts(ypath.getValue(primaryMasterResult.output)),
filterOutMaintananceHosts(ypath.getValue(primaryMasterResult.output)),
);

const timestamp_tag_cell_requests = [
Expand Down Expand Up @@ -231,7 +231,7 @@ async function loadMastersConfig(): Promise<[MastersConfigResponse, MasterAlert[
};

const discoveryRequests = map_(
filterOutMaintenanceHosts(ypath.getValue(discoveryServersResult.output)),
filterOutMaintananceHosts(ypath.getValue(discoveryServersResult.output)),
(_v, address) => ({
command: 'get' as const,
parameters: {
Expand All @@ -243,7 +243,7 @@ async function loadMastersConfig(): Promise<[MastersConfigResponse, MasterAlert[
);

const queueAgentsStateRequests = map_(
filterOutMaintenanceHosts(ypath.getValue(queueAgentsResult.output)),
filterOutMaintananceHosts(ypath.getValue(queueAgentsResult.output)),
(_v, address) => ({
command: 'get' as const,
parameters: {
Expand Down Expand Up @@ -344,7 +344,7 @@ function loadHydra(
forEach_(
sortBy_(addresses, (address) => address.host),
({host, attributes}) => {
if (!attributes.maintenance) {
if (!attributes.maintanance) {
masterInfo.push({host, type, cellTag: cellTag!});
requests.push({
command: 'get',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/ui/store/reducers/system/masters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export interface MasterAddress {
attributes: {
native_cell_tag: number;
annotations: unknown;
maintenance: boolean;
maintanance: boolean;
};
state?: 'online' | 'offline' | 'unknown';
}
Expand Down

0 comments on commit 1cb8822

Please sign in to comment.