portainer icon indicating copy to clipboard operation
portainer copied to clipboard

On 2.21.0 The Stacks search no longer remembers filtered search results

Open Daniel-dev22 opened this issue 1 year ago • 4 comments

Before you start please confirm the following.

Problem Description

On 2.21.0 if I use the search bar for containers it filters for those containers.

If I open a container and then go back to the previous page the search results are still filtered.

If I repeat the same steps for a stack the search results are not filtered.

Expected Behavior

The search results would be filtered when returning to the page the same way they are for containers and were in previous versions.

Actual Behavior

Containers search works as expected and stacks doesn't anymore.

Steps to Reproduce

  1. Go to containers
  2. Search for a container
  3. Open a container
  4. Press the back button
  5. Notice search results remained filtered
  6. Repeat steps but this time with stacks and notice that the search results are no longer filtered

Portainer logs or screenshots

No response

Portainer version

2.21.0

Portainer Edition

Business Edition (BE/EE) with Home & Student license

Platform and Version

Docker 26.1.4

OS and Architecture

Ubuntu 22.04

Browser

Chrome

What command did you use to deploy Portainer?

No response

Additional Information

No response

Daniel-dev22 avatar Aug 28 '24 15:08 Daniel-dev22

Hi @Daniel-dev22 Thanks for raising this, I have confirmed this and raised it with the team

internal: BE-11182

Nick-Portainer avatar Aug 28 '24 21:08 Nick-Portainer

Hi, just want to add, it's not just remembering, it "breaks" displaying containers on Service level view. unfiltered vs filtered results image image

The information about containers is there, also on service details, so I guess it is related to this issue.

ZVilusinsky avatar Oct 02 '24 09:10 ZVilusinsky

Hi, I just want to add that this problem is also present at the stack level in a Docker Swarm environment. The stack list does not mantain the search filter, still present in 2.21.3 (we are on EE).

Easy to reproduce: add a filder on the stack page (/docker/stacks), then enter in another page (for example clicking on one of the filtered stacks) and then go back to the stacks page: the list is now again complete - not filtered, but the search box still has the string that was used before to do the search.

Do you guys have an ETA on the fix or which version will have it? When you have a lot of stacks it's a bit annoying.

whysi avatar Oct 14 '24 09:10 whysi

Please update to 2.22 if you can and let me know if the issue persists

Nick-Portainer avatar Oct 14 '24 21:10 Nick-Portainer

@Nick-Portainer tried 2.22 , it seems to be working. I'll let developers ~break~ test it for a while.

Though, it took me some time trying to debug this image until I realised that there is now a display limit in the container list which the running ones not fit (coming from 2.19.4) You might want to consider showing the running ones on top by default.

ZVilusinsky avatar Oct 25 '24 06:10 ZVilusinsky

Please update to 2.22 if you can and let me know if the issue persists

Hi Nick, I've updated to 2.23.0 and the issue persists.

whysi avatar Oct 29 '24 09:10 whysi

This has been resolved in the latest 2.25.0 STS release

Nick-Portainer avatar Dec 16 '24 01:12 Nick-Portainer

Confirm, it works fine

myset avatar Feb 21 '25 14:02 myset