yeti-platform / yeti

Your Everyday Threat Intelligence
https://yeti-platform.io/
Apache License 2.0
1.71k stars 283 forks source link

The "All" option to display all items per page does not work in the "Observables" page. #1037

Closed y0sh1mitsu closed 6 months ago

y0sh1mitsu commented 6 months ago

Description

Hi guys, when I want to see all the items on the "Observables" page, the "All" option doesn't work and displays the last option chosen. And if you keep it, the results of a new search won't be displayed dynamically; you have to click on display on 10 items, for example, for the results to be displayed.

Environment

Question Answer
Yeti release Yeti 2.1.4
Yeti-frontend release Yeti Frontend 2.1.4
OS version WSL - Ubuntu 22.04.3 LTS
Browser Firefox Version 123.0.1

Steps to Reproduce

Expected behavior

That the "All" option lists all the Observables on a page and a search is automatically displayed even if the "All" option is activated.

Actual behavior

Screenshot

tomchop commented 6 months ago

Thanks for the heads up, we'll look into it. Just so we know, we're planning to remove the All option because it would be too expensive for servers to return the massive amount of observables they might gather over time (and also for your browser to render it, probably). What would a reasonable upper bound be for your use-case?

y0sh1mitsu commented 6 months ago

I think a maximum of 100 items per page means you don't have to scroll too much. It's up to you to see if this doesn't affect performance too much.

tomchop commented 6 months ago

Closing this in favor of https://github.com/yeti-platform/yeti-feeds-frontend/issues/156