Bug 1230655 - Flash message not displayed long enough on widget import/export page
Summary: Flash message not displayed long enough on widget import/export page
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.7.0
Assignee: Dávid Halász
QA Contact: Nandini Chandra
URL:
Whiteboard: ui:flash_msg:widget
: 1284057 (view as bug list)
Depends On:
Blocks: 1291693 1291698 1344329
TreeView+ depends on / blocked
 
Reported: 2015-06-11 09:36 UTC by Nandini Chandra
Modified: 2017-01-12 04:56 UTC (History)
9 users (show)

Fixed In Version: 5.7.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1291693 1344329 (view as bug list)
Environment:
Last Closed: 2017-01-11 20:29:17 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nandini Chandra 2015-06-11 09:36:42 UTC
Description of problem:
-----------------------



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


How reproducible:
----------------
Always


Steps to Reproduce:
-------------------
1. Go to Cloud Intelligence > Reports > Import/Export > Widgets
2. Choose a non-yaml or an empty yaml file for upload and click "Upload"


Actual results:
---------------
Flash message not displayed long enough on widget import/export page


Expected results:
----------------
Flash message should be displayed until someone clicks on the message.


Additional info:
----------------

Comment 4 Nandini Chandra 2015-09-16 21:13:49 UTC
Verified in master.20150915141925_58436ca

Comment 8 CFME Bot 2015-11-17 18:55:17 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/40f6474274cc073ccbadd2fa102662eaa9ec0bcc

commit 40f6474274cc073ccbadd2fa102662eaa9ec0bcc
Author:     Erik Clarizio <eclarizi>
AuthorDate: Mon Nov 16 08:06:46 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Tue Nov 17 09:33:49 2015 -0800

    Fix issue with widget import flash message JSON being html escaped
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1230655

 app/controllers/report_controller.rb       | 2 +-
 app/views/report/review_import.html.haml   | 2 +-
 spec/controllers/report_controller_spec.rb | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

Comment 9 CFME Bot 2015-11-17 18:55:23 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/74f5337b2dfcd9762286aae9508fe938a8262d52

commit 74f5337b2dfcd9762286aae9508fe938a8262d52
Author:     Erik Clarizio <eclarizi>
AuthorDate: Tue Nov 17 09:32:37 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Tue Nov 17 09:33:49 2015 -0800

    Refactor post message logic for all imports
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1230655
    
    This also fixes the brakeman issue where the message was not being
    properly escaped

 app/assets/javascripts/automate_import_export.js   | 23 +-----
 app/assets/javascripts/dialog_import_export.js     | 21 ------
 app/assets/javascripts/import.js                   | 28 ++++++++
 app/assets/javascripts/widget_import_export.js     | 21 ------
 .../_dialog_import_export.html.haml                |  2 +-
 app/views/miq_ae_tools/_import_export.html.haml    |  2 +-
 app/views/report/_export_widgets.html.haml         |  2 +-
 app/views/report/review_import.html.haml           |  2 +-
 spec/javascripts/import_spec.js                    | 83 ++++++++++++++++++++++
 9 files changed, 116 insertions(+), 68 deletions(-)

Comment 11 Harpreet Kataria 2015-12-16 19:11:39 UTC
*** Bug 1284057 has been marked as a duplicate of this bug. ***

Comment 12 CFME Bot 2015-12-17 17:52:01 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=b7a5a3ad53fd3d12bf4785e20b8430ec9a5484bb

commit b7a5a3ad53fd3d12bf4785e20b8430ec9a5484bb
Author:     Erik Clarizio <eclarizi>
AuthorDate: Tue Nov 17 09:32:37 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Wed Dec 16 13:00:35 2015 -0800

    Refactor post message logic for all imports
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1230655
    
    This also fixes the brakeman issue where the message was not being
    properly escaped

 app/assets/javascripts/automate_import_export.js   | 23 +-----
 app/assets/javascripts/dialog_import_export.js     | 21 ------
 app/assets/javascripts/import.js                   | 28 ++++++++
 app/assets/javascripts/widget_import_export.js     | 21 ------
 .../_dialog_import_export.html.haml                |  2 +-
 app/views/miq_ae_tools/_import_export.html.haml    |  2 +-
 app/views/report/_export_widgets.html.haml         |  2 +-
 app/views/report/review_import.html.haml           |  2 +-
 spec/javascripts/import_spec.js                    | 83 ++++++++++++++++++++++
 9 files changed, 116 insertions(+), 68 deletions(-)

Comment 13 CFME Bot 2015-12-17 17:52:17 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=aa429c262e1e3dfe693ea431e8fe6f3d3fb5f1f1

commit aa429c262e1e3dfe693ea431e8fe6f3d3fb5f1f1
Author:     Erik Clarizio <eclarizi>
AuthorDate: Mon Nov 16 08:06:46 2015 -0800
Commit:     Erik Clarizio <eclarizi>
CommitDate: Wed Dec 16 13:00:27 2015 -0800

    Fix issue with widget import flash message JSON being html escaped
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1230655

 app/controllers/report_controller.rb       | 2 +-
 app/views/report/review_import.html.haml   | 2 +-
 spec/controllers/report_controller_spec.rb | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

Comment 15 eclarizi 2016-05-10 15:05:06 UTC
It looks like the code has changed significantly in regards to how it handles widget importing for 5.6.

Comment 18 CFME Bot 2016-05-31 21:15:54 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e7376896490c3a5c6ac8b0f3add139d11ec88935

commit e7376896490c3a5c6ac8b0f3add139d11ec88935
Author:     Dávid Halász <dhalasz>
AuthorDate: Fri May 27 12:00:21 2016 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Tue May 31 09:18:47 2016 +0200

    Suppress @in_a_form during widget upload if an error happens
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1230655

 app/controllers/report_controller.rb       | 2 ++
 spec/controllers/report_controller_spec.rb | 1 +
 2 files changed, 3 insertions(+)

Comment 22 Nandini Chandra 2016-10-11 18:22:32 UTC
Verified in 5.7.0.4


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