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

Remove scanner, type from configs, re-add hr_name for nvt preferences #1694

Merged

Conversation

jhelmold
Copy link
Member

@jhelmold jhelmold commented Oct 4, 2021

What:
OSP scanners are no longer supported. The field config_type and the fields scanner
and type from the database table configs where only used in connection with OSP
scanners. Accordingly the code corresponding to these fields has been removed from
the gvmd-sources. The corresponding data and the database fields scanner and type
of the table configs have been removed from the database. Besides the hr_name has
been rebuilt for nvt preferences.

Why:
OSP scanners are no longer supported.
Addresses AP-1562.

How did you test it:
Tested the Scan Configs and the Scanners dialog. Tested the according Trashcan
functionality. Tested the Tasks dialog and ran some scans.

Checklist:

Since the field config_type was only used for OSP scanners the
field and the corresponding code is removed from the gvmd sources.
Further the field hr_name was rebuilt for NVT preferences.
Since the field "scanner" of the database table "configs" was only
used in connection with OSP scanners and OSP scanners are no longer
supported the corresponding code is removed from the gvmd-sources.
Added the documentation for the hr_name (human readable name) in
the function header of function "preference_new (..)".
@timopollmeier timopollmeier changed the title Remove scanner type from configs Remove scanner type from configs, re-add hr_name for nvt preferences Oct 4, 2021
Since the field "type" of the database table "configs" was only
used in connection with OSP scanners and OSP scanners are no longer
supported the corresponding code is removed from the gvmd-sources.
@jhelmold jhelmold changed the title Remove scanner type from configs, re-add hr_name for nvt preferences Remove scanner, type from configs, re-add hr_name for nvt preferences Oct 4, 2021
Since the fields type and scanner of the database table configs
were only used in connection with OSP scanners and OSP scanners
are no longer supported, the corresponding code has been removed
from the gvmd-sources. This is the corresponding database
adjustment, where, amongs others, the fields type and scanner
are dropped from the table configs.
@jhelmold jhelmold marked this pull request as ready for review October 5, 2021 08:36
@jhelmold jhelmold requested a review from a team as a code owner October 5, 2021 08:36
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks okay but there are a few mostly cosmetic things I'd like to have changed.

src/gmp.c Outdated Show resolved Hide resolved
src/gmp.c Outdated Show resolved Hide resolved
src/manage_sql.c Show resolved Hide resolved
src/manage_sql_configs.c Outdated Show resolved Hide resolved
src/manage_migrators.c Outdated Show resolved Hide resolved
src/manage_migrators.c Outdated Show resolved Hide resolved
Minor changes to the source code regarding the removal of the
fields scanner, type, config_type and hr_name.
Since in the function "create_task_check_config_scanner_type" the
config type is no longer checked and only the scanner type is
verified, the name of this function was changed to
"create_task_check_scanner_type".
@jhelmold jhelmold merged commit 71ad2b3 into greenbone:master Oct 6, 2021
@mattmundell mattmundell mentioned this pull request Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants