st2web icon indicating copy to clipboard operation
st2web copied to clipboard

filter function on the history page does not work

Open csecsi opened this issue 4 years ago • 11 comments

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!

csecsi avatar Nov 22 '21 12:11 csecsi

Transferred to st2web repo as this is a UI issue.

amanda11 avatar Nov 23 '21 09:11 amanda11

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.

amanda11 avatar Nov 23 '21 09:11 amanda11

@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.

amanda11 avatar Nov 23 '21 11:11 amanda11

Selection_354

Is it possible that I do not understand how to use the filter??? :) It is on a fresh install.

csecsi avatar Nov 23 '21 19:11 csecsi

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.

amanda11 avatar Nov 25 '21 16:11 amanda11

Weird that there is nothing logged when used. Is it possible that this feature is not even implemented?

csecsi avatar Nov 26 '21 18:11 csecsi

I see this behavior with:

  • the unstable 3.7.0-dev packages.
  • stable 3.6.0
  • stable 3.4.1

cognifloyd avatar May 03 '22 16:05 cognifloyd

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)

david-grokstream avatar Aug 19 '24 18:08 david-grokstream

looks like it is just you and me would need that feature working. :)

csecsi avatar Sep 05 '24 09:09 csecsi

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.

fdrab avatar Sep 05 '24 15:09 fdrab

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.

fdrab avatar Sep 05 '24 15:09 fdrab