Skip to content

Commit

Permalink
Merge pull request #2942 from saberlynx/remove-network-source-iface
Browse files Browse the repository at this point in the history
Completely remove network source iface from tasks, audits
  • Loading branch information
saberlynx authored May 26, 2021
2 parents 4394f62 + dd9ee5e commit 9bc8744
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
### Removed
- Remove OVAL Definitions [#2918](https://github.com/greenbone/gsa/pull/2918), [#2921](https://github.com/greenbone/gsa/pull/2921), [#2923](https://github.com/greenbone/gsa/pull/2923)
- Remove Network Source Interface from GSA for Tasks and Audits [#2902](https://github.com/greenbone/gsa/pull/2902)
- Remove Network Source Interface from GSA for Tasks and Audits [#2902](https://github.com/greenbone/gsa/pull/2902) [#2942](https://github.com/greenbone/gsa/pull/2942)

[21.10]: https://github.com/greenbone/gsa/compare/gsa-21.04...gsa-21.10

Expand Down
6 changes: 0 additions & 6 deletions gsa/src/web/pages/audits/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ class AuditComponent extends React.Component {
scannerType = OPENVAS_SCANNER_TYPE,
scheduleId,
schedulePeriods,
sourceIface,
targetId,
audit,
}) {
Expand Down Expand Up @@ -252,7 +251,6 @@ class AuditComponent extends React.Component {
scheduleId,
schedulePeriods,
targetId,
sourceIface,
})
.then(onSaved, onSaveError)
.then(() => this.closeAuditDialog());
Expand All @@ -279,7 +277,6 @@ class AuditComponent extends React.Component {
scannerId,
scheduleId,
schedulePeriods,
sourceIface,
tagId,
targetId: targetId,
})
Expand Down Expand Up @@ -368,7 +365,6 @@ class AuditComponent extends React.Component {
scanner_type: defaultScannerType,
scheduleId: defaultScheduleId,
schedulePeriods: undefined,
sourceIface: undefined,
targetId: defaultTargetId,
audit: undefined,
title: _('New Audit'),
Expand Down Expand Up @@ -463,7 +459,6 @@ class AuditComponent extends React.Component {
scannerId,
scheduleId,
schedulePeriods,
sourceIface,
targetId,
audit,
auditDialogVisible,
Expand Down Expand Up @@ -534,7 +529,6 @@ class AuditComponent extends React.Component {
scheduleId={scheduleId}
schedulePeriods={schedulePeriods}
schedules={schedules}
sourceIface={sourceIface}
targetId={targetId}
targets={targets}
audit={audit}
Expand Down
44 changes: 14 additions & 30 deletions gsa/src/web/pages/tasks/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,35 +115,29 @@ class TaskComponent extends React.Component {

this.handleReportImport = this.handleReportImport.bind(this);
this.handleTaskResume = this.handleTaskResume.bind(this);
this.handleSaveAdvancedTaskWizard = this.handleSaveAdvancedTaskWizard.bind(
this,
);
this.handleSaveAdvancedTaskWizard =
this.handleSaveAdvancedTaskWizard.bind(this);
this.handleSaveTask = this.handleSaveTask.bind(this);
this.handleSaveContainerTask = this.handleSaveContainerTask.bind(this);
this.handleSaveModifyTaskWizard = this.handleSaveModifyTaskWizard.bind(
this,
);
this.handleSaveModifyTaskWizard =
this.handleSaveModifyTaskWizard.bind(this);
this.handleSaveTaskWizard = this.handleSaveTaskWizard.bind(this);
this.handleTaskStart = this.handleTaskStart.bind(this);
this.handleTaskStop = this.handleTaskStop.bind(this);
this.handleTaskWizardNewClick = this.handleTaskWizardNewClick.bind(this);

this.openAdvancedTaskWizard = this.openAdvancedTaskWizard.bind(this);
this.handleCloseAdvancedTaskWizard = this.handleCloseAdvancedTaskWizard.bind(
this,
);
this.handleCloseAdvancedTaskWizard =
this.handleCloseAdvancedTaskWizard.bind(this);
this.openContainerTaskDialog = this.openContainerTaskDialog.bind(this);
this.handleCloseContainerTaskDialog = this.handleCloseContainerTaskDialog.bind(
this,
);
this.handleCloseContainerTaskDialog =
this.handleCloseContainerTaskDialog.bind(this);
this.openReportImportDialog = this.openReportImportDialog.bind(this);
this.handleCloseReportImportDialog = this.handleCloseReportImportDialog.bind(
this,
);
this.handleCloseReportImportDialog =
this.handleCloseReportImportDialog.bind(this);
this.openModifyTaskWizard = this.openModifyTaskWizard.bind(this);
this.handleCloseModifyTaskWizard = this.handleCloseModifyTaskWizard.bind(
this,
);
this.handleCloseModifyTaskWizard =
this.handleCloseModifyTaskWizard.bind(this);
this.openStandardTaskDialog = this.openStandardTaskDialog.bind(this);
this.openTaskDialog = this.openTaskDialog.bind(this);
this.handleCloseTaskDialog = this.handleCloseTaskDialog.bind(this);
Expand Down Expand Up @@ -304,7 +298,6 @@ class TaskComponent extends React.Component {
scanner_type,
schedule_id,
schedule_periods,
source_iface,
tag_id,
target_id,
task,
Expand Down Expand Up @@ -343,7 +336,6 @@ class TaskComponent extends React.Component {
schedule_id,
schedule_periods,
target_id,
source_iface,
})
.then(onSaved, onSaveError)
.then(() => this.closeTaskDialog());
Expand All @@ -370,7 +362,6 @@ class TaskComponent extends React.Component {
scanner_id,
schedule_id,
schedule_periods,
source_iface,
tag_id,
target_id,
})
Expand Down Expand Up @@ -423,7 +414,6 @@ class TaskComponent extends React.Component {
scanner_id: hasId(task.scanner) ? task.scanner.id : undefined,
schedule_id: isDefined(task.schedule) ? task.schedule.id : UNSET_VALUE,
schedule_periods: task.schedule_periods,
source_iface: task.source_iface,
target_id: hasId(task.target) ? task.target.id : undefined,
task,
title: _('Edit Task {{name}}', task),
Expand Down Expand Up @@ -458,7 +448,6 @@ class TaskComponent extends React.Component {
scanner_id: defaultScannerId,
schedule_id: defaultScheduleId,
schedule_periods: undefined,
source_iface: undefined,
target_id: defaultTargetId,
task: undefined,
title: _('New Task'),
Expand Down Expand Up @@ -567,11 +556,8 @@ class TaskComponent extends React.Component {
}

handleSaveAdvancedTaskWizard(data) {
const {
gmp,
onAdvancedTaskWizardSaved,
onAdvancedTaskWizardError,
} = this.props;
const {gmp, onAdvancedTaskWizardSaved, onAdvancedTaskWizardError} =
this.props;

this.handleInteraction();

Expand Down Expand Up @@ -713,7 +699,6 @@ class TaskComponent extends React.Component {
scanner_id,
schedule_id,
schedule_periods,
source_iface,
ssh_credential,
smb_credential,
start_date,
Expand Down Expand Up @@ -805,7 +790,6 @@ class TaskComponent extends React.Component {
schedule_id={schedule_id}
schedule_periods={schedule_periods}
schedules={schedules}
source_iface={source_iface}
tag_id={tag_id}
tags={tags}
target_id={target_id}
Expand Down

0 comments on commit 9bc8744

Please sign in to comment.