Bug 1668023
| Summary: | Custom Button: unable to collect events for custom button with dialog | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Nikhil Dhandre <ndhandre> | |
| Component: | UI - OPS | Assignee: | drew uhlmann <duhlmann> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikhil Dhandre <ndhandre> | |
| Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | |
| Priority: | high | |||
| Version: | 5.10.0 | CC: | bmidwood, dmetzger, duhlmann, hkataria, lavenel, mpovolny, ndhandre, obarenbo, tfitzger | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| 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: | ||||
| : | 1702490 (view as bug list) | Environment: | ||
| Last Closed: | 2019-12-13 15:08:37 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1702490 | |||
|
Description
Nikhil Dhandre
2019-01-21 17:41:42 UTC
I can't reproduce this for hosts. CustomButtonEvent count increases just fine when run with a dialog. I'm also not sure what kind of button is being described in case 2. What's the object type for storage manager? I can, however, reproduce for cloud networks. But it almost looks like this is an API issue, the invoke_custom_action doesn't ever get called. (In reply to drew uhlmann from comment #3) Drew, thank for attention, > I'm also not sure what kind of button is being described in case 2. What's > the object type for storage manager? `Provider` is object type. If we add custom button on provider object type then for cloud provider it reflect on: 1. Cloud provider (eg. RHOS) 2. Storage Mangers (both) 3. Network Manger The logic inside https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/services/dialog_local_service.rb#L80 is missing a few different cases. Host.last.class.name.demodulize => "HostEsx" and CloudNetwork.last.class.name.demodulize => "Public" We're going to need to do something a little different in a few cases here. The expected result satisfied with this fix. I would like to open new BZ for a landing problem. As discussed with Nikhil I think this ticket can be verified and a new one open for the outstanding issue found in comment 13, though to be honest that sounds like an issue that should first be looked at by the UI team because I can't speak to what page the product should be hitting for Storage Manager things. |