Bug 1295839 - [RFE][M-5] Option to automatically reset all users dashboards
Summary: [RFE][M-5] Option to automatically reset all users dashboards
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.11.0
Assignee: Harpreet Kataria
QA Contact: Jaroslav Henner
Red Hat CloudForms Documentation
URL:
Whiteboard:
: 1295841 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-05 15:26 UTC by Josh Carter
Modified: 2023-03-24 13:38 UTC (History)
13 users (show)

Fixed In Version: 5.11.0.6
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-12 13:33:19 UTC
Category: Feature
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:4199 0 None None None 2019-12-12 13:33:36 UTC

Comment 2 Josh Carter 2016-01-06 20:36:55 UTC
*** Bug 1295841 has been marked as a duplicate of this bug. ***

Comment 6 CFME Bot 2019-03-15 18:21:20 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/b1a170546971e942551b9fe4a71ba05878c010ef
commit b1a170546971e942551b9fe4a71ba05878c010ef
Author:     Yuri Rudman <yrudman>
AuthorDate: Thu Mar 14 10:53:29 2019 -0400
Commit:     Yuri Rudman <yrudman>
CommitDate: Thu Mar 14 10:53:29 2019 -0400

    added ability to delete all user specific dashboards
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1295839

 app/models/miq_widget_set.rb | 4 +
 1 file changed, 4 insertions(+)

Comment 7 Yuri Rudman 2019-03-15 19:27:56 UTC
Loic, do you want to add this functionality (remove all user's versions of dashboards) to be added to UI or executing from rails console `MiqWidgetSet.destroy_user_versions` is sufficient ?

Comment 11 CFME Bot 2019-05-22 15:51:58 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/c208c6991d771c2f3b9aefef48d6bfb32fa733bc
commit c208c6991d771c2f3b9aefef48d6bfb32fa733bc
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon Apr 15 22:38:04 2019 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Mon Apr 15 22:38:04 2019 -0400

    Reset user's dashboard upon login

    Added a new checkbox "Reset Dashboard upon login" on Group Dashboard add/edit form, if that's set to true when user logs in, their dashboard will be reset and they will loose any changes(i.e add/remove widgets) they have made during their previous session and dashboard will be reset to user's group dashboard. This resolves a case where Admin has edited a group's dashboard and would like the changes to take effect without relying on the user to issue a reset of their dashboard.

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1295839

 app/controllers/dashboard_controller.rb | 6 +-
 app/controllers/report_controller/dashboards.rb | 6 +
 app/views/report/_db_form.html.haml | 6 +
 app/views/report/_db_show.html.haml | 6 +
 spec/controllers/dashboard_controller_spec.rb | 71 +-
 5 files changed, 70 insertions(+), 25 deletions(-)

Comment 13 Jaroslav Henner 2019-07-26 13:16:49 UTC
I created a dashboard and left the Rest Dashboard upon login disabled. I displayed and then added a widget to the dashboard. The widget survived the login and logout.

When I checked the Reset Dashboard... field, the new widget disappeared after logout/login.

Comment 15 errata-xmlrpc 2019-12-12 13:33:19 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-2019:4199


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