I’ve just hit a bit of a UI glitch in the details page for individual Machine Policies. This is in a fairly old version of Octopus Server (v2018.9.10), so it’s possibly been fixed since then, but I don’t have a newer server available to check so I’m reporting it anyway just in case it is still present…
Basically, when using the search filter in the “Currently in use -> Deployment Targets” section of a Machine Policy details page, the search filter seems to apply after the current page of deployment targets is loaded. For example, if I have 10 pages-worth of deployment targets assigned to a policy and I enter a filter that matches a single target that appears on page 5 of the full target list, it still shows 10 page links for the list of targets, but the pages are all blank except for page 5 which shows the one matching target.
It looks like what’s happening is the list of deployment targets is being requested for the current page number via the Octopus API, and the targets on that page are then being filtered client-side, rather than filtering the deployment target list and then paginating through the matching targets.
To reproduce, create a Machine Policy with 20 deployment targets assigned and navigate to the “Currently in use -> Deployment targets” section of the Machine Policy details page. There will be two pages of deployment targets listed.
Let’s say the list of assigned deployment target looks like this:
If you now enter a filter of, say, “Target-C” it will still show two pages of results, but they will look like this:
When you’ve got a Machine Policy with, say, 500+ deployment targets across 50 pages in the list it means the filter is pretty much useless. Even though it only displays the matching deployment targets, it still shows them on the page they’d naturally appear on with the full unfiltered list displayed, so you’ve got to click through 20-30 blank pages to find them - I could do that without using the filter and it would take the same amount of time :-S.
Hopefully this description makes sense, but let me know if you need more info, or even if it’s been fixed in the latest version.