@@ -24,8 +24,6 @@ import { useDispatch, useSelector } from 'react-redux';
2424import { useLocationQuery } from '../hooks/useLocationQuery' ;
2525import { usePluginAvailable } from '../hooks/usePluginAvailable' ;
2626import { getGoalsGraph , getNeighborsGraph } from '../korrel8r-client' ;
27- import { AlertDomain } from '../korrel8r/alert' ;
28- import { allDomains } from '../korrel8r/all-domains' ;
2927import * as api from '../korrel8r/client' ;
3028import * as korrel8r from '../korrel8r/types' ;
3129import {
@@ -51,16 +49,7 @@ export default function Korrel8rPanel() {
5149 } ) ;
5250 const dispatch = useDispatch ( ) ;
5351
54- const alertRules = useSelector ( ( state : State ) => state . observe ?. get ( 'rules' ) ) ;
55- const alertIDs = React . useMemo ( ( ) => {
56- if ( ! alertRules ) return new Map < string , string > ( ) ;
57- return new Map < string , string > ( alertRules . map ( ( { id, name } ) => [ id , name ] ) ) ;
58- } , [ alertRules ] ) ;
59- const domains = React . useMemo (
60- ( ) => new korrel8r . Domains ( ...allDomains , new AlertDomain ( alertIDs ) ) ,
61- [ alertIDs ] ,
62- ) ;
63- const locationQuery = useLocationQuery ( domains ) ;
52+ const locationQuery = useLocationQuery ( ) ;
6453
6554 // Search parameters.
6655 const [ search , setSearch ] = React . useState < Search > ( {
@@ -232,13 +221,7 @@ export default function Korrel8rPanel() {
232221 ) ;
233222
234223 const topologySection = (
235- < Topology
236- domains = { domains }
237- result = { result }
238- constraint = { search . constraint }
239- t = { t }
240- setSearch = { setSearch }
241- />
224+ < Topology result = { result } constraint = { search . constraint } t = { t } setSearch = { setSearch } />
242225 ) ;
243226
244227 return (
@@ -260,14 +243,13 @@ export default function Korrel8rPanel() {
260243}
261244
262245interface TopologyProps {
263- domains : korrel8r . Domains ;
264246 result ?: Result ;
265247 constraint : korrel8r . Constraint ;
266248 t : TFunction ;
267249 setSearch : ( search : Search ) => void ;
268250}
269251
270- const Topology : React . FC < TopologyProps > = ( { domains , result, t, constraint } ) => {
252+ const Topology : React . FC < TopologyProps > = ( { result, t, constraint } ) => {
271253 const [ loggingAvailable , loggingAvailableLoading ] = usePluginAvailable ( 'logging-view-plugin' ) ;
272254 const [ netobserveAvailable , netobserveAvailableLoading ] = usePluginAvailable ( 'netobserv-plugin' ) ;
273255
@@ -280,7 +262,6 @@ const Topology: React.FC<TopologyProps> = ({ domains, result, t, constraint }) =
280262 // Non-empty graph
281263 return (
282264 < Korrel8rTopology
283- domains = { domains }
284265 graph = { result . graph }
285266 loggingAvailable = { loggingAvailable }
286267 netobserveAvailable = { netobserveAvailable }
0 commit comments