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

filter function on the history page does not work #925

Open
csecsi opened this issue Nov 22, 2021 · 11 comments
Open

filter function on the history page does not work #925

csecsi opened this issue Nov 22, 2021 · 11 comments
Labels

Comments

@csecsi
Copy link

csecsi commented Nov 22, 2021

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!

@amanda11 amanda11 transferred this issue from StackStorm/st2 Nov 23, 2021
@amanda11
Copy link
Contributor

Transferred to st2web repo as this is a UI issue.

@amanda11
Copy link
Contributor

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
Copy link
Contributor

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

@csecsi
Copy link
Author

csecsi commented Nov 23, 2021

Selection_354

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

@amanda11
Copy link
Contributor

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.

@csecsi
Copy link
Author

csecsi commented Nov 26, 2021

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

@cognifloyd
Copy link
Member

I see this behavior with:

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

@david-grokstream
Copy link

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)

@csecsi
Copy link
Author

csecsi commented Sep 5, 2024

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

@fdrab
Copy link

fdrab commented Sep 5, 2024

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
Copy link

fdrab commented Sep 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants