-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove total outdated agents statistic from Endpoint Summary (#6737)
* Remove total outdated agents statistic from Endpoint Summary * Change upgrade tasks panel color * Update CHANGELOG * Improve Agent Welcome layout * Update Endpoint Summary statistic titles * Fix vulnerabilities data source * Synchronize total outdated agents and the rest filters
- Loading branch information
1 parent
c6a5172
commit 1c73ab3
Showing
12 changed files
with
307 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 18 additions & 22 deletions
40
...blic/components/common/data-source/pattern/vulnerabilities/vulnerabilities-data-source.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
import { DATA_SOURCE_FILTER_CONTROLLED_CLUSTER_MANAGER, VULNERABILITY_IMPLICIT_CLUSTER_MODE_FILTER } from '../../../../../../common/constants'; | ||
import { | ||
DATA_SOURCE_FILTER_CONTROLLED_CLUSTER_MANAGER, | ||
VULNERABILITY_IMPLICIT_CLUSTER_MODE_FILTER, | ||
} from '../../../../../../common/constants'; | ||
import { tFilter, PatternDataSourceFilterManager } from '../../index'; | ||
import { AppState } from '../../../../../react-services/app-state'; | ||
import { PatternDataSource } from '../pattern-data-source'; | ||
|
||
export class VulnerabilitiesDataSource extends PatternDataSource { | ||
constructor(id: string, title: string) { | ||
super(id, title); | ||
} | ||
|
||
constructor(id: string, title: string) { | ||
super(id, title); | ||
} | ||
getFixedFilters(): tFilter[] { | ||
return [...this.getClusterManagerFilters(), ...super.getFixedFilters()]; | ||
} | ||
|
||
getFixedFilters(): tFilter[] { | ||
return [ | ||
...this.getClusterManagerFilters(), | ||
...super.getFixedFilters(), | ||
] | ||
} | ||
|
||
getClusterManagerFilters() { | ||
return PatternDataSourceFilterManager.getClusterManagerFilters(this.title, | ||
DATA_SOURCE_FILTER_CONTROLLED_CLUSTER_MANAGER, | ||
VULNERABILITY_IMPLICIT_CLUSTER_MODE_FILTER[ | ||
AppState.getClusterInfo().status | ||
], | ||
); | ||
} | ||
|
||
} | ||
getClusterManagerFilters() { | ||
return PatternDataSourceFilterManager.getClusterManagerFilters( | ||
this.title, | ||
DATA_SOURCE_FILTER_CONTROLLED_CLUSTER_MANAGER, | ||
VULNERABILITY_IMPLICIT_CLUSTER_MODE_FILTER, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.