Bug 1559390 - No filters in 'brick detail' view
Summary: No filters in 'brick detail' view
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: web-admin-tendrl-ui
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS 3.4.0
Assignee: Neha Gupta
QA Contact: Filip Balák
URL:
Whiteboard:
Depends On:
Blocks: 1503137
TreeView+ depends on / blocked
 
Reported: 2018-03-22 13:01 UTC by Kanika Murarka
Modified: 2018-09-04 07:02 UTC (History)
6 users (show)

Fixed In Version: tendrl-ui-1.6.3-8.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 07:01:53 UTC
Embargoed:
negupta: needinfo+


Attachments (Terms of Use)
Brick Details page with filter (42.27 KB, image/png)
2018-05-15 13:13 UTC, Filip Balák
no flags Details
Brick Details page with brick down (55.44 KB, image/png)
2018-05-15 13:21 UTC, Filip Balák
no flags Details
Added % in the filter title of utilization filters (62.92 KB, image/png)
2018-05-24 10:27 UTC, Neha Gupta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github Tendrl ui issues 816 0 None None None 2018-03-28 08:57:19 UTC
Red Hat Bugzilla 1577938 1 None None None 2024-09-18 00:47:51 UTC
Red Hat Product Errata RHSA-2018:2616 0 None None None 2018-09-04 07:02:56 UTC

Internal Links: 1577938

Description Kanika Murarka 2018-03-22 13:01:28 UTC
Description of problem:
Options like Filter, Expand All, and Collapse All are not present as per design[1].

Version-Release number of selected component (if applicable):
tendrl-ui-1.6.1-1.el7rhgs.noarch

How reproducible:
100%

Steps to Reproduce:
1.Login to console
2.Click on cluster
3.Click on volume

Actual results:
Filters not present.

Expected results:
Filters should be present.

Additional info:
[1] https://redhat.invisionapp.com/share/XMAOW3UC5#/screens/221662356

Comment 4 Filip Balák 2018-05-15 13:13:07 UTC
Created attachment 1436787 [details]
Brick Details page with filter

Comment 5 Filip Balák 2018-05-15 13:20:19 UTC
There are correctly added basic filters but there are missing 2 filter options from design:
 * Utilization More Than
 * Utilization Less Than

There is also not shown number of bricks that are down and `Failed Only` filter is missing.
--> ASSIGNED


Tested with:
tendrl-ansible-1.6.3-3.el7rhgs.noarch
tendrl-api-1.6.3-3.el7rhgs.noarch
tendrl-api-httpd-1.6.3-3.el7rhgs.noarch
tendrl-commons-1.6.3-4.el7rhgs.noarch
tendrl-grafana-plugins-1.6.3-2.el7rhgs.noarch
tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
tendrl-gluster-integration-1.6.3-2.el7rhgs.noarch
tendrl-monitoring-integration-1.6.3-2.el7rhgs.noarch
tendrl-node-agent-1.6.3-4.el7rhgs.noarch
tendrl-notifier-1.6.3-2.el7rhgs.noarch
tendrl-selinux-1.5.4-2.el7rhgs.noarch
tendrl-ui-1.6.3-1.el7rhgs.noarch

Comment 6 Filip Balák 2018-05-15 13:21:16 UTC
Created attachment 1436789 [details]
Brick Details page with brick down

Comment 7 Kanika Murarka 2018-05-16 11:38:51 UTC
1. The other two filters Utilization More Than and Utilization Less Than require following information regarding UX- 

a) The utilization will be compared on the basis of percentage or GBs? 
b) Since the filter will contain only the numbers with some validation, what validation and messages should be applied and displayed? 

2. Due to time constraint, basic filters were implemented.

3. `Failed Only` filter can be implemented, it was missed out.

Comment 8 Ju Lim 2018-05-16 16:49:48 UTC
For the Utilization More Than or Utilization Less Than, I'd suggest doing it based on percentage.  E.g. User wants to see all bricks greater than 80% for a volume.  We'll update the design to reflect this.

Comment 9 Ju Lim 2018-05-18 19:53:31 UTC
We've added a mockup to show how the Utilization More Than or Utilization Less Than filter will work -- see https://redhat.invisionapp.com/share/8QCOEVEY9#/298092970_Cluster_Details-Volumes-Bricks_Copy.

Comment 10 Neha Gupta 2018-05-23 07:38:32 UTC
@Ju: We are using pfFilter[1] angular patternfly component for implementing filters across all the views in Tendrl. With respect to bugzilla issue https://bugzilla.redhat.com/show_bug.cgi?id=1559390, for implementing 'Utilization More Than" and "Utilization Less Than" filters, we need to integrate touchspin component[2] to pfFilter component and I don't see any support for it as per the current implementation. 

So, for the moment, we can either have a 
- integer type filter which will accept value from 0 to 100 or 
- select type filter containing options 10,20,30,40,50,60,70,8,90,100

What are your thoughts on this?

1. https://www.patternfly.org/angular-patternfly/#/api/patternfly.filters.component:pfFilter
2. https://www.npmjs.com/package/angular-touchspin

Comment 11 Ju Lim 2018-05-23 20:28:30 UTC
@negupta
Regarding getting the touchspin component into pfFilter in angular-patternfly, there's currently no UXD resources actively working working on angular-patternfly.

My guestion is for us to either integrate touchspin into the pfFilter component OR go with the integer type filter which will accept value from 0 to 100.  

Do you have a preference?

Comment 12 Neha Gupta 2018-05-24 05:02:38 UTC
@ju As pfFilter doesn't provide any support to add any external html template or component(as per their doc), I feel it will be difficult to integrate touchspin into pfFilter component for now. Hence, I would prefer to implement utilization filters as integer type which will accept value from 0 to 100.

Comment 13 Neha Gupta 2018-05-24 10:24:35 UTC
@julim @mcarrano As decided, we will go with integer type filter. Also, I have added "%" in the filter title for "Utilization More Than" and "Utilization Less Than" filters to indicate that the value entered are in percentage. Attaching the screenshot for the same.

Comment 14 Neha Gupta 2018-05-24 10:27:16 UTC
Created attachment 1441032 [details]
Added % in the filter title of utilization filters

Comment 15 Filip Balák 2018-06-11 08:54:52 UTC
 * Filters `Utilization Less Than(%)` and `Utilization More Than(%)` are only on Brick Details page accessed from Volumes page. They are missing in filters on Brick Details accessed from Hosts page.
 * Filter `Utilization More Than(%)` does not take into consideration float values. For example when it is set to 10% then 10.30% is not selected (only values equal or greater than 11%).
 * Filters `Utilization Less Than(%)` and `Utilization More Than(%)` should have boundaries that don't allow user to set negative values and values greater than 100.
 * In design is percentage sign on the right side next to the number (https://redhat.invisionapp.com/share/8QCOEVEY9#/screens/298092970). In current implementation it is part of the label without a space.
--> ASSIGNED

Tested with:
tendrl-ansible-1.6.3-4.el7rhgs.noarch
tendrl-api-1.6.3-3.el7rhgs.noarch
tendrl-api-httpd-1.6.3-3.el7rhgs.noarch
tendrl-commons-1.6.3-6.el7rhgs.noarch
tendrl-grafana-plugins-1.6.3-4.el7rhgs.noarch
tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
tendrl-monitoring-integration-1.6.3-4.el7rhgs.noarch
tendrl-node-agent-1.6.3-6.el7rhgs.noarch
tendrl-notifier-1.6.3-3.el7rhgs.noarch
tendrl-selinux-1.5.4-2.el7rhgs.noarch
tendrl-ui-1.6.3-3.el7rhgs.noarch

Comment 16 Neha Gupta 2018-06-12 13:56:40 UTC
@fbalak 
Regarding the 4th point i.e percentage sign added as a label- 

since we have decided not to integrate touchspin component in pfFilter for now, UI can display percentage sign as a label only. Please read above conversations for more detail.

@mcarrano Please update the design.

Comment 18 Neha Gupta 2018-07-09 14:57:51 UTC
I have found one small issue while verifying this issue. Hence, changing the state to Assigned again.

Comment 19 Filip Balák 2018-07-27 08:26:14 UTC
Looks ok. --> VERIFIED

Tested with:
tendrl-ansible-1.6.3-5.el7rhgs.noarch
tendrl-api-1.6.3-4.el7rhgs.noarch
tendrl-api-httpd-1.6.3-4.el7rhgs.noarch
tendrl-commons-1.6.3-9.el7rhgs.noarch
tendrl-grafana-plugins-1.6.3-7.el7rhgs.noarch
tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
tendrl-monitoring-integration-1.6.3-7.el7rhgs.noarch
tendrl-node-agent-1.6.3-9.el7rhgs.noarch
tendrl-notifier-1.6.3-4.el7rhgs.noarch
tendrl-selinux-1.5.4-2.el7rhgs.noarch
tendrl-ui-1.6.3-8.el7rhgs.noarch

Comment 21 errata-xmlrpc 2018-09-04 07:01:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2616


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