Filter Help¶
Filtering test results in Ibutsu’s frontend is designed expose SQLAlchemy’s filtering operations to the user. For all filters, the following translation is used:
Operator |
String Name |
SQLAlchemy Example |
Description |
|---|---|---|---|
= |
eq |
|
Equals |
! |
ne |
|
Does not equal |
> |
gt |
|
Greater than |
< |
lt |
|
Less than |
) |
gte |
|
Greater than or equal to |
( |
lte |
|
Less than or equal to |
|
in |
|
Column |
~ |
regex |
|
Regex match that |
@ |
exists |
|
Column exists and is defined |
The information for this table is taken from filters.py.
Filtering the results/runs tables¶
Filtering the results and runs tables is done via select dropdowns that correspond to:
column (also called
fieldin the UI)operator (shown with the ‘string name’ in UI)
value
Where column is a column on the Run or Result table, operator is one of the string names in
the table above, and value is the desired value by which you’d like to filter.
The select dropdowns give several options for column, but it is possible to enter your own column
if it is not shown. Just type any desired column.
Note: The available columns are shown in the DB models for Runs/Results.
In the BE and FE, metadata is translated to the data column in the DB.
It is also possible to auto-apply a filter by clicking the blue pill labels that appear in the Run/Results
table. These will automatically filter results/runs by component or env.
Comma-separated list of filters¶
There are two places in the UI where a user is able to enter a comma-separated list of filters:
the
additional_filtersparameter when creating a new widget (see Dashboards and widgets)the
Filterfield when building a report
These are simple text input components that take a string of comma-separated filters. Here, a user
is meant to use the operator in the table above to filter on the appropriate column. Some examples
of these filters include:
metadata.tags=platform-experience,source=local,summary.passes>10metadata.assignee=jdoe,metadata.exception_name=AssertionError,result=failed