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

[IVANCHUK] Refactor get_rec_cls to get proper record class for various items #7241

Merged

Conversation

mzazrivec
Copy link
Contributor

@mzazrivec mzazrivec commented Jul 28, 2020

This PR is a cherry-pick / backport of the following 2 PRs #6316 #6224 into ivanchuk. I'm creating a separate PR, because some of the files from 6224 would create a conflict during plain cherry-pick.

One of the nice effects of this backport will be that https://bugzilla.redhat.com/show_bug.cgi?id=1858107 will be fixed (among other bzs probably).

@himdel
Copy link
Contributor

himdel commented Jul 28, 2020

LGTM, no remaining get_rec_cls in ivanchuk after this 👍

Wondering if we will end up also needing #6284 to fix #6263 in ivanchuk

@mzazrivec
Copy link
Contributor Author

@himdel Yup, cherry-picked #6284 as well.

hstastna and others added 7 commits August 11, 2020 11:54
Issue: ManageIQ#5924

Get proper record class for items displayed through Storage Relationships,
also for items displayed through Cluster's Relationships, items in Services
Workloads, VMs, Instances, Images displayed through various controllers.

(cherry picked from commit 5269ad8)
@mzazrivec mzazrivec force-pushed the refactor_get_rec_cls_for_ivanchuk branch from b8fa6c1 to 6504ca0 Compare August 11, 2020 09:54
@miq-bot
Copy link
Member

miq-bot commented Aug 11, 2020

Some comments on commits mzazrivec/manageiq-ui-classic@508df91~...6504ca0

spec/controllers/application_controller/ci_processing_spec.rb

  • ⚠️ - 222 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 282 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 369 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 378 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 440 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 519 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 579 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.

@miq-bot
Copy link
Member

miq-bot commented Aug 11, 2020

Checked commits mzazrivec/manageiq-ui-classic@508df91~...6504ca0 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
26 files checked, 1 offense detected

spec/controllers/ems_cluster_controller_spec.rb

@simaishi
Copy link
Contributor

@mzazrivec Can you update the PR summary to describe the issue this PR is fixing?

@mzazrivec mzazrivec changed the title [IVANCHUK] Backport of PR #6224 and PR #6316 into ivanchuk [IVANCHUK] Refactor get_rec_cls to get proper record class for various items Aug 20, 2020
@simaishi simaishi merged commit 76a2342 into ManageIQ:ivanchuk Aug 20, 2020
@mzazrivec mzazrivec deleted the refactor_get_rec_cls_for_ivanchuk branch August 21, 2020 07:34
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.

None yet

5 participants