Bug 1684226
Summary: | [Containers Overview] TypeError: Cannot read property 'layout' of undefined | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | juwatts |
Component: | UI - OPS | Assignee: | Martin Hradil <mhradil> |
Status: | CLOSED ERRATA | QA Contact: | juwatts |
Severity: | low | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
Priority: | medium | ||
Version: | 5.10.1 | CC: | bmidwood, dmetzger, hkataria, juwatts, lavenel, mhradil, mpovolny, mshriver, obarenbo, simaishi |
Target Milestone: | GA | ||
Target Release: | 5.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.11.0.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-12-12 13:35:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | Bug | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | CFME Core | Target Upstream Version: | |
Embargoed: |
Description
juwatts
2019-02-28 18:41:35 UTC
This is also seen on Compute->Containers->Providers Dashboard. If you navigate to the page and then click back, the error appears. For example, select Policy->Edit Tags and when the page is rendered, hit back. New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/8e3a5f476a3f6a8bd11344affac3b3a5f344d918 commit 8e3a5f476a3f6a8bd11344affac3b3a5f344d918 Author: Martin Hradil <mhradil> AuthorDate: Wed Mar 6 05:59:15 2019 -0500 Commit: Martin Hradil <mhradil> CommitDate: Wed Mar 6 05:59:15 2019 -0500 Container trends chart - wait for loadingDone before displaying pf-trends-chart prevents TypeError: Cannot read property 'layout' of undefined at trendsChartController.e.updateAll (application-d966831b…581bed47155710.js:3) at trendsChartController.e.$onChanges (application-d966831b…581bed47155710.js:3) when the JSON endpoints are taking longer to respond. The controller already has a concept of loadingDone, used to display a spinner. But it was never used to prevent rendering of the pf-trends-chart component, which fails when config is undefined. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1684226 app/views/ems_container/_trends-chart.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Verified in 5.11.0.1.20190424210327_58b5dbd Verification Steps: 1. Add an Openshift provider to CFME 2. Navigate to Containers Providers and select the Openshift provider. You will be on the Dashboard view 3. Select a Policy -> Edit Tags 4. Open up the browser debugger 4. Click the browser back button 5. Verified the following javascript error is not seen: TypeError: Cannot read property 'layout' of undefined New BZ opened: 1704891 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-2019:4199 |