Skip to content

Commit

Permalink
Merge pull request #1512 from jhelmold/change_report_timestamp
Browse files Browse the repository at this point in the history
Change report timestamp filter and iterator columns
  • Loading branch information
timopollmeier authored May 7, 2021
2 parents a7814c3 + 47cc3f5 commit 9af425e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Changed
- Update default log config [#1501](https://github.com/greenbone/gvmd/pull/1501)
- Change report timestamp filter and iterator columns [#1512](https://github.com/greenbone/gvmd/pull/1512)

### Fixed
- Improve VT version handling for CVE & OVAL results [#1496](https://github.com/greenbone/gvmd/pull/1496)
Expand Down
9 changes: 6 additions & 3 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -20892,6 +20892,7 @@ report_add_result (report_t report, result_t result)
"task", "severity", "false_positive", "log", "low", "medium", "high", \
"hosts", "result_hosts", "fp_per_host", "log_per_host", "low_per_host", \
"medium_per_host", "high_per_host", "duration", "duration_per_host", \
"start_time", "end_time", "scan_start", "scan_end", \
NULL }

/**
Expand All @@ -20901,16 +20902,18 @@ report_add_result (report_t report, result_t result)
{ \
{ "id", NULL, KEYWORD_TYPE_INTEGER }, \
{ "uuid", NULL, KEYWORD_TYPE_STRING }, \
{ "iso_time (start_time)", "name", KEYWORD_TYPE_STRING }, \
{ "iso_time (date)", "name", KEYWORD_TYPE_STRING }, \
{ "''", NULL, KEYWORD_TYPE_STRING }, \
{ "iso_time (start_time)", NULL, KEYWORD_TYPE_STRING }, \
{ "iso_time (date)", NULL, KEYWORD_TYPE_STRING }, \
{ "iso_time (end_time)", NULL, KEYWORD_TYPE_STRING }, \
{ "start_time", "created", KEYWORD_TYPE_INTEGER }, \
{ "date", "created", KEYWORD_TYPE_INTEGER }, \
{ "end_time", "modified", KEYWORD_TYPE_INTEGER }, \
{ "(SELECT name FROM users WHERE users.id = reports.owner)", \
"_owner", \
KEYWORD_TYPE_STRING }, \
{ "owner", NULL, KEYWORD_TYPE_INTEGER }, \
{ "start_time", "scan_start", KEYWORD_TYPE_INTEGER }, \
{ "end_time", "scan_end", KEYWORD_TYPE_INTEGER }, \
{ NULL, NULL, KEYWORD_TYPE_UNKNOWN } \
}

Expand Down
20 changes: 20 additions & 0 deletions src/schema_formats/XML/GMP.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -15103,6 +15103,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<type>integer</type>
<summary>Number of high severity results per host with results</summary>
</column>
<column>
<name>start_time</name>
<type>iso_time</type>
<summary>Scan start time</summary>
</column>
<column>
<name>end_time</name>
<type>iso_time</type>
<summary>Scan end time</summary>
</column>
<column>
<name>scan_start</name>
<type>iso_time</type>
<summary>Scan start time</summary>
</column>
<column>
<name>scan_end</name>
<type>iso_time</type>
<summary>Scan end time</summary>
</column>
</filter_keywords>
</attrib>
<attrib>
Expand Down

0 comments on commit 9af425e

Please sign in to comment.