-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement embeddable dashboard on PCI DSS (#6504)
* feat(PCI DSS): replace the dashboard on PCI DSS application * fix: fix ids dashboards panels * fix: fix ids dashboards panels * fix: add id to visualizations * rename(pci): rename dashboard files * fix(pcidss): fix dashboards * feat(pci-dss): use data source on Dashboard and Events tabs * remove(pci-dss): replace local NoDataResults and loading indicator by generic ones * fix(pci-dss): render of all or agent dashboard * feat(pci-dss): partial implementation of the usage of datasource on the Controls tab * fix(pci): remove comment * fix(pci): add date range to Dashboard query * remove(pci): visualizations on server side * feat(pci-dss): replace table on flyout details of Controls tab * fix(pci-dss): fix redirection to other applications from Controls tab * fix(pci-dss): replace label to agent.name column on the COntrols flyout * remove(pci-dss): unused import * feat(pci-dss): hide filter control on the search bar of dashboard * feat(pci-dss): hide filter control on the search bar of controls * fix(pci-dss): missing controlledBy variable * fix(compliance): missing date picker on the Controls tab * feat(pci-dss): move sample data warning on the dashboard * fix(sample-data): remove effect dependencies and minor fix on link * fix(regulatory-compliance): fix missing selected requirement on the flyout of Controls tab * changelog: add pull request entry
- Loading branch information
Showing
18 changed files
with
1,948 additions
and
1,703 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
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
42 changes: 42 additions & 0 deletions
42
...public/components/common/data-source/pattern/alerts/pci-dss/alerts-pci-dss-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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { tFilter } from '../../../index'; | ||
import { DATA_SOURCE_FILTER_CONTROLLED_PCI_DSS_EXIST } from '../../../../../../../common/constants'; | ||
import { AlertsDataSource } from '../alerts-data-source'; | ||
|
||
const KEY_EXIST = 'rule.pci_dss'; | ||
|
||
export class AlertsPCIDSSDataSource extends AlertsDataSource { | ||
constructor(id: string, title: string) { | ||
super(id, title); | ||
} | ||
|
||
private getFilterExist() { | ||
return [ | ||
{ | ||
meta: { | ||
index: this.id, | ||
negate: false, | ||
disabled: false, | ||
alias: null, | ||
type: 'exists', | ||
key: KEY_EXIST, | ||
value: 'exists', | ||
params: { | ||
query: null, | ||
type: 'phrase', | ||
}, | ||
controlledBy: DATA_SOURCE_FILTER_CONTROLLED_PCI_DSS_EXIST, | ||
}, | ||
exists: { | ||
field: KEY_EXIST, | ||
}, | ||
$state: { | ||
store: 'appState', | ||
}, | ||
} as tFilter, | ||
]; | ||
} | ||
|
||
getFixedFilters(): tFilter[] { | ||
return [...this.getFilterExist(), ...super.getFixedFilters()]; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
plugins/main/public/components/common/data-source/pattern/alerts/pci-dss/index.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './alerts-pci-dss-data-source'; |
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.