Bug 1336182 - Utilization - "Interval" field does not contain dropdown for Providers,Projects, Replicators and Container Services
Summary: Utilization - "Interval" field does not contain dropdown for Providers,Projec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 5.6.0
Assignee: Federico Simoncelli
QA Contact: Einat Pacifici
URL:
Whiteboard: c&u
: 1336216 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-15 10:59 UTC by Einat Pacifici
Modified: 2018-04-17 07:48 UTC (History)
9 users (show)

Fixed In Version: 5.6.0.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 16:02:34 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:
epacific: automate_bug+


Attachments (Terms of Use)
Provider-wrongGUI and Pods-correctGUI attached (153.50 KB, application/x-gzip)
2016-05-15 10:59 UTC, Einat Pacifici
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Einat Pacifici 2016-05-15 10:59:57 UTC
Created attachment 1157643 [details]
Provider-wrongGUI and Pods-correctGUI attached

Description of problem:
When viewing Utilization data - the Interval dropdown should show: Hourly/Daily/Most recent hour selection

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

How reproducible:
Always

Steps to Reproduce:
1.Compute --> Containers -->Providers --> Select provider
2.Click Monitoring --> Utilization button
3.View generated page

Actual results:
Metrics page is provided with "Interval:", but no dropdown is seen.

Expected results:
Metrics page provided with "Interval:" + dropdown of Hourly/Daily/Most recent hour.

Additional info:
Attachement contains Screenshot of Providers page, but, this bug is seen also under Projects, Replicators and Container Services.

Comment 2 Federico Simoncelli 2016-05-16 12:59:09 UTC
Dan here the code seems common to all providers:

app/views/layouts/_perf_options.html.haml

      %dt
        = _("Interval")
      %dd
        - if @perf_options[:index] && %w(host vm).include?(request.parameters["controller"])
          - rt_chart = YAML.load(File.open("#{CHARTS_LAYOUTS_FOLDER}/realtime_perf_charts/#{@perf_options[:model]}.yaml"))
          - @rt_hide = rt_chart[@perf_options[:index].to_i][:type] == "None"
        - if request.parameters["controller"] == "storage" && @perf_options[:cat]
          = select("perf", "typ", %w(Hourly Daily), {:selected => @perf_options[:typ]},
                                                      :disabled => "")
        - elsif %(Host VmOrTemplate ContainerNode Container ContainerGroup MiddlewareServer).include?(@perf_options[:model]) && !@rt_hide
          = select_tag("perf_typ",
                        options_for_select(["Hourly", "Daily", ["Most Recent Hour", "realtime"]], @perf_options[:typ]),
                        "data-miq_sparkle_on" => true,
                        :class    => "selectpicker")
          :javascript
             miqInitSelectPicker();
             miqSelectPickerEvent("perf_typ", "#{url}")


I have the impression that this is not specific to containers. Thoughts?

Comment 4 Federico Simoncelli 2016-05-17 09:12:01 UTC
Fix at:  https://github.com/ManageIQ/manageiq/pull/8752

Dan, as mentioned in the PR, the issue is a regression introduced in all the pages by the select picker enhancements.

Removing the "container" whiteboard.

Comment 5 Harpreet Kataria 2016-05-17 18:40:01 UTC
*** Bug 1336216 has been marked as a duplicate of this bug. ***

Comment 6 Federico Simoncelli 2016-05-18 19:48:19 UTC
As mentioned in comment 4 this is not related to containers. Removing "container" from the whiteboard again.

Comment 7 Einat Pacifici 2016-05-29 09:59:00 UTC
All dropdowns now function as expected.

Comment 9 errata-xmlrpc 2016-06-29 16:02:34 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/RHBA-2016:1348


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