snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Filtering assets by status (bug-ish)

Open Diniver opened this issue 9 years ago • 5 comments

Hi all,

I found few links which are a bit weird and might make mess in the future.

So this is the result when I try to filter assets by status from all asset list. When I choose deployed I should get only assets which are deployed. But unfortunately I am getting also "ready to deploy". The link is http://bla.bla/statuslabels/2 image

If I filter them from sidebar it is working properly: http://bla.bla/hardware?status=Deployed image image

For pending items is working but the difference in the urls is the same

/statuslabels/1 - when filtered from all assets

/hardware?status=Pending - when filtered from left side panel

running version v4.0.15 build 339 (g17b2719) Reproducible in online demo

Regards, Diniver

Diniver avatar Oct 24 '17 09:10 Diniver

How do I reproduce this in the demo? When I go to https://demo.snipeitapp.com/hardware?status=Deployed, I only see deployed items.

snipe avatar Oct 24 '17 11:10 snipe

But if you go in "list all" and after that click on status to filter it, it goes to /statuslabel/x

Diniver avatar Oct 24 '17 11:10 Diniver

That's not really a bug though, that's how the meta status of "Deployed" works. (Deployed is deployable + checked out)

snipe avatar Oct 24 '17 11:10 snipe

I see. If that's the way how it works that's ok. I just thought this might not be the case.

Thanks

Diniver avatar Oct 24 '17 11:10 Diniver

Yeah, it's a little confusing, but I'm not sure how else to handle/explain it. We need the ability to support multiple kinds of deployable statuses, but the business logic changes if they are deployable and are also checked out. :-/

snipe avatar Oct 24 '17 11:10 snipe