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 an option to ignore the pagination for alert reports. #2062

Merged
merged 1 commit into from
Aug 18, 2023
Merged
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -12031,6 +12031,7 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
get_data_t **alert_filter_get,
filter_t *filter_return)
{
char *ignore_pagination;
char *filt_id;
filter_t filter;

Expand Down Expand Up @@ -12070,6 +12071,14 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
else
(*alert_filter_get) = NULL;

ignore_pagination = alert_data (alert, "method",
"composer_ignore_pagination");
if (ignore_pagination)
{
(*alert_filter_get)->ignore_pagination = atoi (ignore_pagination);
g_free (ignore_pagination);
}

/* Adjust filter for report composer.
*
* As a first step towards a full composer we have two fields stored
Expand Down