filter function on the history page does not work
SUMMARY
the filter function on the history page does not do anything
STACKSTORM VERSION
st2 3.6.0, on Python 3.6.8
OS, environment, install method
Centos 8 / ansible-st2
Steps to reproduce the problem
just try to filter the history
Expected Results
filtering the history
Actual Results
not filtering the history
Thanks!
Transferred to st2web repo as this is a UI issue.
I have not seen this problem before, but I will re-do an installation today. In the meantime could you:
- ensure st2web has fully loaded the history page. Just wondering if you have a large history and its still loading when you attempt to filter?
- using the developer tools, take a look at the API calls made during the filter calls and see if any errors reported
- are there any errors reported on developer tools in the console?
- which options have you tried to use on the filter?
- when you change the filter can you take a look at the API calls that were made - you should see the API call being made to the filter and the response coming back from the developer tools, Network tab.
@csecsi If you could check the above that would be great. I performed a fresh install, and the filter on the UI is working fine for me on the history.

Is it possible that I do not understand how to use the filter??? :) It is on a fresh install.
Apologies - I was thinking you were talking about the pull-downs on the History page, whereby you can filter on Action etc.
I have the same behaviour if I use the free-form Filter, but I don't tend to use that. So I am not sure if that is due to format of the query or not at this stage.
Weird that there is nothing logged when used. Is it possible that this feature is not even implemented?
I see this behavior with:
- the unstable 3.7.0-dev packages.
- stable 3.6.0
- stable 3.4.1
Is there any plan on fixing this? It has been around for a while and we are trying to figure out if there is a workaround.
Ideally having a way of searching values in the action inputs would be handy (looking for hostnames, ticket ID, etc)
looks like it is just you and me would need that feature working. :)
looks like it is just you and me would need that feature working. :)
Not true, but it's possible that companies are creating their own UIs or their own modifications to this UI, which then becomes company intellectual property. For example, I've added a time range filter, a filter for a specific execution ID (text input) and changed how the filter behaves by adding a "filter" button and now instead of there being an API call done whenever I'd change one of the values, I change the values and then click "filter" to filter executions.
Is there any plan on fixing this? It has been around for a while and we are trying to figure out if there is a workaround.
Ideally having a way of searching values in the action inputs would be handy (looking for hostnames, ticket ID, etc)
I don't think this is currently possible, because the API doesn't support searching by parameters, as far as I know. And the UI is just a component on top of the API. Action parameters can be complex objects and are not searchable. It is best if you create some sort of action reporting, like add action results into a SQL DB and then you can look up the execution by the parameters you want and look up a specific execution ID in ST2.
Perhaps the filtering functionality that currently doesn't work could be used to fine-grain filter the results after they've been fetched, so you could first drop down select a specific action and then free-text filter parameters, as they've already been fetched.