Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_ownership - use miq_template (not vm) for images #5113

Merged
merged 1 commit into from
Jan 2, 2019
Merged

set_ownership - use miq_template (not vm) for images #5113

merged 1 commit into from
Jan 2, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Dec 21, 2018

Right now, clicking the Set Ownership button on a nested list of images under a cloud provider redirects to /vm/ownership.

But image is not a vm, it's a template, so the url should be /miq_template/ownership.

The difference causes 2 bugs:

Fixing to use miq_template.

(related to https://bugzilla.redhat.com/show_bug.cgi?id=1650507, but the BZ only talks about the form buttons)


  1. go to Compute -> Cloud -> Providers
  2. click on a provider
  3. click on Images in the provider detail/overview screen (like /ems_cloud/3?display=images)
  4. select an image via the checkbox
  5. toolbar Configuration > Set ownership

Before:

before

After:

after

Right now, clicking the Set Ownership button on a nested list of images under a cloud provider redirects to `/vm/ownership`.

But image is not a vm, it's a template, so the url should be `/miq_template/ownership`.

The difference causes 2 bugs:

* (hammer only: no form buttons are shown)
* affected items shows No records found

Fixing to use miq_template.

https://bugzilla.redhat.com/show_bug.cgi?id=1650507
(related but that bug is not present on master)
@himdel
Copy link
Contributor Author

himdel commented Dec 21, 2018

Cc @martinpovolny

@miq-bot
Copy link
Member

miq-bot commented Dec 21, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/76ce52072996dbd77331c165896f620e00120597 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@martinpovolny
Copy link
Member

Restarting travis.

@martinpovolny martinpovolny self-assigned this Dec 23, 2018
@mzazrivec mzazrivec added this to the Sprint 102 Ending Jan 7, 2019 milestone Jan 2, 2019
@mzazrivec mzazrivec merged commit ea3e817 into ManageIQ:master Jan 2, 2019
@himdel himdel deleted the ownership-images-master branch January 2, 2019 10:13
@himdel himdel removed the hammer/yes label Jan 7, 2019
@himdel
Copy link
Contributor Author

himdel commented Jan 7, 2019

@simaishi not sure whether to mark this one as hammer/backported (because it was backported as #5112), or leave it without (because it doesn't fix the same bug).

Either way, removing hammer/yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants