Bug 1367072 - tags are not removed properly from filters when deactivated
Summary: tags are not removed properly from filters when deactivated
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.0.2.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.2
Assignee: Alexander Wels
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-15 12:30 UTC by movciari
Modified: 2017-02-01 14:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:53:48 UTC
oVirt Team: UX
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)
test UI plugin that will list the available tags, and which ones are active (900 bytes, application/x-gzip)
2017-01-05 20:49 UTC, Alexander Wels
no flags Details
test UI plugin that will list the available tags, and which ones are active (829 bytes, application/x-gzip)
2017-01-09 16:33 UTC, Alexander Wels
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 68556 0 master MERGED dashboard: Add handling of TagActivationChange event 2017-01-12 20:20:53 UTC
oVirt gerrit 68660 0 master MERGED webadmin: Tag improvements 2017-01-13 13:07:39 UTC
oVirt gerrit 70350 0 ovirt-engine-4.1 MERGED webadmin: Tag improvements 2017-01-13 18:46:30 UTC
oVirt gerrit 70365 0 ovirt-engine-dashboard-1.1 MERGED dashboard: Add handling of TagActivationChange event 2017-01-16 13:15:12 UTC

Description movciari 2016-08-15 12:30:14 UTC
Description of problem:
When you activate a tag in webadmin by clicking the pin, it adds the  tag=nameoftag filter to search for VMs, Hosts, and Users tab, and only shows VMs, Hosts, Users, and Dashboard tabs, all other tabs disappear

First problem: Dashboard tab doesn't work with tags (redirects to VMs tab when tag is active) and should be either removed from this view same way as other tabs that don't show when a tag is activated, or it should be fixed to work when a tag is activated

Second problem: when you deactivate tag when on VMs tab, and then go to Hosts tab, they are still filtered by tag. Deactivating tag should deactivate it for all tabs (as a workaround, you can just do the full refresh of page).

Version-Release number of selected component (if applicable):
rhevm 4.0.2.3

How reproducible:
always

Steps to Reproduce:
1. Click on pin next to name of tag in left pane to activate it - it should add the tag name to filter
2. Click on it again to deactivate it - it should remove the tag name from filter
3. Go to Hosts or Users tab

Actual results:
filter by tag shows up again

Expected results:
filter by tag should not show up

Additional info:
Can also be reproduced in 3.6

Comment 1 Vojtech Szocs 2016-12-15 18:04:28 UTC
(In reply to movciari from comment #0)
> First problem: Dashboard tab doesn't work with tags (redirects to VMs tab
> when tag is active) and should be either removed from this view same way as
> other tabs that don't show when a tag is activated, or it should be fixed to
> work when a tag is activated

Indeed, Dashboard tab shouldn't be visible when a tag is active.

> Second problem: when you deactivate tag when on VMs tab, and then go to
> Hosts tab, they are still filtered by tag. Deactivating tag should
> deactivate it for all tabs (as a workaround, you can just do the full
> refresh of page).

IIRC, this is due to "remember search criteria per each tab" feature.

Comment 2 Alexander Wels 2017-01-05 20:49:13 UTC
Created attachment 1237810 [details]
test UI plugin that will list the available tags, and which ones are active

Extract into /share/ovirt-engine/ui-plugins which will create tag_api directory and tag_api.json.

Then go to a tag and activate it. A popup will appear listing all the tags and an X marked which ones are active.

Comment 3 Alexander Wels 2017-01-09 16:33:16 UTC
Created attachment 1238820 [details]
test UI plugin that will list the available tags, and which ones are active

Comment 4 Lucie Leistnerova 2017-01-26 14:22:57 UTC
Dashboard tab is not included in filtering by tags.
Unpin removes filters from Hosts,VMs and Users.

verified in ovirt-engine-webadmin-portal-4.1.0.2-0.1.el7.noarch


Note You need to log in before you can comment on or make changes to this bug.