Bug 1314875
Summary: | [RFE][M-5] Clone Dashboards in UI | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Dustin Scott <dscott> |
Component: | UI - OPS | Assignee: | Zita Nemeckova <znemecko> |
Status: | CLOSED ERRATA | QA Contact: | Jaroslav Henner <jhenner> |
Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
Priority: | high | ||
Version: | 5.5.0 | CC: | abellott, bmidwood, dmetzger, dmisharo, hkataria, jhardy, jocarter, lavenel, mfeifer, mpovolny, nachandr, obarenbo, simaishi, tnovotna, yrudman |
Target Milestone: | GA | Keywords: | FutureFeature, RFE |
Target Release: | 5.11.0 | Flags: | mfeifer:
mirror+
|
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | ui:dashboard | ||
Fixed In Version: | 5.11.0.21 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-12-12 13:33:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | Feature | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | CFME Core | Target Upstream Version: | |
Embargoed: |
Description
Dustin Scott
2016-03-04 18:05:56 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/b8042fb98cf55e0368f78f9379758bfd559d989c commit b8042fb98cf55e0368f78f9379758bfd559d989c Author: Yuri Rudman <yrudman> AuthorDate: Thu Jun 20 09:23:24 2019 -0400 Commit: Yuri Rudman <yrudman> CommitDate: Thu Jun 20 09:23:24 2019 -0400 keep widgets while cloning dashboard https://bugzilla.redhat.com/show_bug.cgi?id=1314875 app/models/miq_widget_set.rb | 1 + spec/models/miq_widget_set_spec.rb | 7 + 2 files changed, 8 insertions(+) New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/f34a0480d90b0ae0698b5d1708f21dc5fdce9263 commit f34a0480d90b0ae0698b5d1708f21dc5fdce9263 Author: Richard Vsiansky <r.vsia> AuthorDate: Thu Jun 20 07:57:27 2019 -0400 Commit: Richard Vsiansky <r.vsia> CommitDate: Thu Jun 20 07:57:27 2019 -0400 Add copy of dashboard form https://bugzilla.redhat.com/show_bug.cgi?id=1314875 app/controllers/report_controller.rb | 18 +- app/controllers/report_controller/dashboards.rb | 55 + app/helpers/application_helper/toolbar/miq_widget_set_center.rb | 7 + app/javascript/components/copy-dashboard-form/copy-dashboard-form.jsx | 79 + app/javascript/components/copy-dashboard-form/copy-dashboard-form.schema.js | 66 + app/javascript/packs/component-definitions-common.js | 2 + app/views/report/_copy_dashboard.html.haml | 3 + app/views/report/_db_show.html.haml | 6 +- config/routes.rb | 4 + 9 files changed, 232 insertions(+), 8 deletions(-) I managed to copy the dashboard using UI and when I changed the new copy it I saw no change in the original so I guess they were distinct entities. When I try to copy the dashboard as an user belonging to Admin group, I get errors: Server Error (API) URL https://10.8.199.13/api/groups?expand=resources Status 403 Forbidden Content-Type application/json; charset=utf-8 Data {"error":{"kind":"forbidden","message":"Use of the read action is forbidden","klass":"Api::ForbiddenError"}} and on the new page I get this flash: Use of the read action is forbidden I think in case that user doesn't have sufficient priviledges, the button shouldn't be enabled. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/55dc46683180dcf9b27937d9ed1e9b4b3d1ac67e commit 55dc46683180dcf9b27937d9ed1e9b4b3d1ac67e Author: Zita Nemeckova <znemecko> AuthorDate: Tue Aug 20 07:18:42 2019 -0400 Commit: Zita Nemeckova <znemecko> CommitDate: Tue Aug 20 07:18:42 2019 -0400 Hide Dashboard Copy Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1314875 db/fixtures/miq_product_features.yml | 1 + 1 file changed, 1 insertion(+) New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/e83bbdeb92608c36447c975e9abe19664ba9114f commit e83bbdeb92608c36447c975e9abe19664ba9114f Author: Zita Nemeckova <znemecko> AuthorDate: Tue Aug 20 05:20:26 2019 -0400 Commit: Zita Nemeckova <znemecko> CommitDate: Tue Aug 20 05:20:26 2019 -0400 Hide Copy Dashboard for non-SuperAdmin users Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1314875 app/helpers/application_helper/button/miq_widget_set_copy.rb | 5 + app/helpers/application_helper/toolbar/miq_widget_set_center.rb | 3 +- 2 files changed, 7 insertions(+), 1 deletion(-) Moving to ON_DEV to wait for second PR Second PR merged. New commit detected on ManageIQ/manageiq/ivanchuk: https://github.com/ManageIQ/manageiq/commit/5c9d4a46de2f84421be6255bb4c0fb9c0b674181 commit 5c9d4a46de2f84421be6255bb4c0fb9c0b674181 Author: Brandon Dunne <bdunne> AuthorDate: Tue Aug 20 16:27:24 2019 -0400 Commit: Brandon Dunne <bdunne> CommitDate: Tue Aug 20 16:27:24 2019 -0400 Merge pull request #19171 from ZitaNemeckova/hide_copy_dashboard Hide Dashboard Copy (cherry picked from commit 26d92879b02e80d78ae625daa5820d0d315ba206) https://bugzilla.redhat.com/show_bug.cgi?id=1314875 db/fixtures/miq_product_features.yml | 1 + 1 file changed, 1 insertion(+) New commit detected on ManageIQ/manageiq-ui-classic/ivanchuk: https://github.com/ManageIQ/manageiq-ui-classic/commit/26eea56aaa972fbf24547e2fbaae8b6248266fad commit 26eea56aaa972fbf24547e2fbaae8b6248266fad Author: Milan Zázrivec <mzazrivec> AuthorDate: Wed Aug 21 05:54:01 2019 -0400 Commit: Milan Zázrivec <mzazrivec> CommitDate: Wed Aug 21 05:54:01 2019 -0400 Merge pull request #6064 from ZitaNemeckova/disable_copy_widget Hide Copy Widget for non-SuperAdmin users (cherry picked from commit a2dfc55ae8ea9b994f6ce4d532f6fee678c20f50) https://bugzilla.redhat.com/show_bug.cgi?id=1314875 app/helpers/application_helper/button/miq_widget_set_copy.rb | 5 + app/helpers/application_helper/toolbar/miq_widget_set_center.rb | 3 +- 2 files changed, 7 insertions(+), 1 deletion(-) I was able to copy and display the dashboard. 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 |