NAME

Tapper::Reports::Web::Util::Filter

date

Add a date to late filters. Furthermore, it sets the days value. Date used to filter for the number of days (now provided by function 'days'). For backwards compatibility it checks whether the input to mean day rather than days and forwards accordingly.

@param hash ref - current version of filters @param string - date

@return hash ref - updated filters

parse_filters

Parse filter arguments given by controller. The function expects an array ref containing the filter arguments. This is achieved by providing the arguments that Catalyst provide for a sub with :Args().

The second argument is a list of word that are valid filters.

The function returns a hash ref containing the following elements (not necessarily all every time): * early - hash ref - contains the filter conditions that can be given in the initial search on reports * late - array ref - list of hash refs that contain filter conditions which shall be applied as $report->search{$key => $value} after the initial search returned a $report already * function - hash ref - functions that are to be applied as $report->$key($value); * error - array ref - contains all errors that occured as strings * days - int - number of days that will be shown * date - string - the exact date that will be shown

@param array ref - list of filter arguments @param array ref - list of allowed filters

@return hash ref

AUTHORS

  • AMD OSRC Tapper Team <tapper@amd64.org>

  • Tapper Team <tapper-ops@amazon.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Advanced Micro Devices, Inc..

This is free software, licensed under:

The (two-clause) FreeBSD License