Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1559390 - No filters in 'brick detail' view
No filters in 'brick detail' view
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: web-admin-tendrl-ui (Show other bugs)
3.4
Unspecified Unspecified
unspecified Severity unspecified
: ---
: RHGS 3.4.0
Assigned To: Neha Gupta
Filip Balák
:
Depends On:
Blocks: 1503137
  Show dependency treegraph
 
Reported: 2018-03-22 09:01 EDT by Kanika Murarka
Modified: 2018-09-04 03:02 EDT (History)
6 users (show)

See Also:
Fixed In Version: tendrl-ui-1.6.3-8.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-04 03:01:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
negupta: needinfo+


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Github Tendrl/ui/issues/816 None None None 2018-03-28 04:57 EDT
Red Hat Product Errata RHSA-2018:2616 None None None 2018-09-04 03:02 EDT

  None (edit)
Description Kanika Murarka 2018-03-22 09:01:28 EDT
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 09:13 EDT
Created attachment 1436787 [details]
Brick Details page with filter
Comment 5 Filip Balák 2018-05-15 09:20:19 EDT
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 09:21 EDT
Created attachment 1436789 [details]
Brick Details page with brick down
Comment 7 Kanika Murarka 2018-05-16 07:38:51 EDT
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 12:49:48 EDT
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 15:53:31 EDT
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 03:38:32 EDT
@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 16:28:30 EDT
@negupta@redhat.com
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 01:02:38 EDT
@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 06:24:35 EDT
@julim@redhat.com @mcarrano@redhat.com 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 06:27 EDT
Created attachment 1441032 [details]
Added % in the filter title of utilization filters
Comment 15 Filip Balák 2018-06-11 04:54:52 EDT
 * 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 09:56:40 EDT
@fbalak@redhat.com 
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@redhat.com Please update the design.
Comment 18 Neha Gupta 2018-07-09 10:57:51 EDT
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 04:26:14 EDT
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 03:01:53 EDT
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.