Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Added a dedicated view for compliance audit reports #3952

Merged
merged 37 commits into from
Aug 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b051fa2
Add: Added a dedicated view for compliance audit reports
a-h-abdelsalam Jan 25, 2024
1059bbf
Add audit reports to the display list in dashboards
a-h-abdelsalam Jan 31, 2024
36892ff
code cleanup and refactoring
a-h-abdelsalam Feb 2, 2024
32bb184
Update links to reports in audit tasks listpage
a-h-abdelsalam Feb 2, 2024
dd6737c
Tags can now work with audit tasks and compliance policies
a-h-abdelsalam Feb 5, 2024
a71aa6f
Adding missing filters and fixing sort order for compliance
a-h-abdelsalam Feb 6, 2024
9f84621
Code refactoring
a-h-abdelsalam Feb 6, 2024
3c7ead5
Adding tests for audit reports actions and gmp commands
a-h-abdelsalam Feb 6, 2024
5b1288b
Remove original compliance count after parsing it
a-h-abdelsalam Feb 7, 2024
e494715
Added mock audit report and tests for host and os tabs
a-h-abdelsalam Feb 7, 2024
1ba8085
Added a threshold panel for audit reports
a-h-abdelsalam Feb 7, 2024
8e11d3a
Added tests for audit report details content page
a-h-abdelsalam Feb 7, 2024
6cc814c
Added tests for audit reports results
a-h-abdelsalam Feb 8, 2024
0521824
Added tests for audit delta reports and compliance power filter
a-h-abdelsalam Feb 8, 2024
2f7412f
Added test cases for rows of audit reports and results
a-h-abdelsalam Feb 9, 2024
a6d8948
Set the timezone to fix failing test
a-h-abdelsalam Feb 9, 2024
b3fed11
Added tests for details filter dialog
a-h-abdelsalam Feb 9, 2024
72e0f19
Added tests for audit filter dialog
a-h-abdelsalam Feb 9, 2024
12860b7
Added tests for audit reports list page
a-h-abdelsalam Feb 12, 2024
b59e7ee
Added tests for results tab
a-h-abdelsalam Feb 13, 2024
b9b455f
Added German translations
a-h-abdelsalam Feb 13, 2024
840eba7
Apply review remarks
a-h-abdelsalam Mar 4, 2024
66796b4
Apply review remarks
a-h-abdelsalam Apr 4, 2024
28d1264
Update for vite and vitest.
a-h-abdelsalam Apr 26, 2024
67c860c
Switch to (`@gsa/testing`) testing module.
a-h-abdelsalam May 13, 2024
4e8ecbd
Fix linting errors.
a-h-abdelsalam May 13, 2024
1976010
Update headers for new files.
a-h-abdelsalam Jun 11, 2024
6d8d62a
Update headers for new files.
a-h-abdelsalam Jun 11, 2024
0bf7c3f
Use useTranslation hook.
a-h-abdelsalam Jun 12, 2024
af24a79
Apply review remarks.
a-h-abdelsalam Jun 13, 2024
254dcc2
Fixing import path for hooks
a-h-abdelsalam Jul 3, 2024
58f1ab7
Apply review comment
a-h-abdelsalam Jul 4, 2024
d790468
Allow applying report configs to audit reports.
a-h-abdelsalam Jul 9, 2024
932ac97
Add feature toggle for compliance reports.
a-h-abdelsalam Jul 9, 2024
baa8c85
Toggle routes using ConditionalRoute.
a-h-abdelsalam Jul 9, 2024
604d876
Fix report links in audits listpage.
a-h-abdelsalam Aug 22, 2024
9ce7ec5
Apply review comments
a-h-abdelsalam Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing import path for hooks
a-h-abdelsalam committed Aug 23, 2024
commit 254dcc25713fc0a90a87fc12ea9eb0270f8c8bf0
3 changes: 3 additions & 0 deletions allowedSnakeCase.cjs
Original file line number Diff line number Diff line change
@@ -29,6 +29,8 @@ module.exports = [
'_asset_id',
'asset_id',
'assigned_to',
'audit_report',
'audit_reports',
'auth_algorithm',
'auth_conf_setting',
'auth_method',
@@ -248,6 +250,7 @@ module.exports = [
'highest_severity',
'high_per_host',
'host_allow',
'host_compliance',
'host_cves',
'hostnames_by_ip',
'hosts_allow',
2 changes: 1 addition & 1 deletion src/web/pages/reports/auditdeltadetailspage.jsx
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ import {
import compose from 'web/utils/compose';
import {generateFilename} from 'web/utils/render';
import PropTypes from 'web/utils/proptypes';
import useGmp from 'web/utils/useGmp';
import useGmp from 'web/hooks/useGmp';

import TargetComponent from '../targets/component';

2 changes: 1 addition & 1 deletion src/web/pages/reports/auditdetailscontent.jsx
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ import EntityInfo from 'web/entity/info';
import EntityTags from 'web/entity/tags';

import PropTypes from 'web/utils/proptypes';
import useGmp from 'web/utils/useGmp';
import useGmp from 'web/hooks/useGmp';

import ErrorsTab from './details/errorstab';
import HostsTab from './details/hoststab';
2 changes: 1 addition & 1 deletion src/web/pages/reports/auditdetailspage.jsx
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ import Page from './auditdetailscontent';
import FilterDialog from './detailsfilterdialog';
import {pageFilter as setPageFilter} from 'web/store/pages/actions';
import getPage from 'web/store/pages/selectors';
import useGmp from 'web/utils/useGmp';
import useGmp from 'web/hooks/useGmp';

const log = logger.getLogger('web.pages.auditreport.detailspage');

2 changes: 1 addition & 1 deletion src/web/pages/reports/auditfilterdialog.jsx
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import React from 'react';

import Layout from 'web/components/layout/layout';

import useCapabilities from 'web/utils/useCapabilities';
import useCapabilities from 'web/hooks/useCapabilities';

import useTranslation from 'web/hooks/useTranslation';

2 changes: 1 addition & 1 deletion src/web/pages/results/__tests__/row.jsx
Original file line number Diff line number Diff line change
@@ -144,7 +144,7 @@ describe('Delta reports V2 with same severity, qod and hostname', () => {
});

describe('Audit reports with compliance', () => {
const {render} = rendererWith();
const {render} = rendererWith({gmp, store: true});

test('should render Audit report with compliance yes', () => {
const entity = Result.fromElement({