Skip to content

Commit

Permalink
Filter out deleted and resolved incidents from association form
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov committed Dec 30, 2024
1 parent bf3537a commit 994c402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion keep-ui/utils/hooks/useIncidents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useWebsocket } from "./usePusher";
import { useCallback, useEffect } from "react";
import { useAlerts } from "./useAlerts";
import { useApi } from "@/shared/lib/hooks/useApi";
import {DefaultIncidentFilters} from "@/entities/incidents/model/models";

interface IncidentUpdatePayload {
incident_id: string | null;
Expand All @@ -28,7 +29,7 @@ export const useIncidents = (
limit: number = 25,
offset: number = 0,
sorting: { id: string; desc: boolean } = { id: "creation_time", desc: false },
filters: Filters | {} = {},
filters: Filters | {} = DefaultIncidentFilters,
options: SWRConfiguration = {
revalidateOnFocus: false,
}
Expand Down
4 changes: 2 additions & 2 deletions keep/workflowmanager/workflowscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def _handle_event_workflows(self):
self.futures.add(future)
future.add_done_callback(lambda f: self.futures.remove(f))

self.logger.info(
self.logger.debug(
"Event workflows handled",
extra={"current_number_of_workflows": len(self.futures)},
)
Expand All @@ -614,7 +614,7 @@ def _start(self):
self.logger.info("Starting workflows scheduler")
while not self._stop:
# get all workflows that should run now
self.logger.info(
self.logger.debug(
"Starting workflow scheduler iteration",
extra={"current_number_of_workflows": len(self.futures)},
)
Expand Down

0 comments on commit 994c402

Please sign in to comment.