manageiq icon indicating copy to clipboard operation
manageiq copied to clipboard

Refactor MiqProvisionWorkflow#initialize method and subclasses

Open chessbyte opened this issue 5 years ago • 16 comments

chessbyte avatar Feb 05 '21 15:02 chessbyte

Should these new methods be private methods?

Fryguy avatar Feb 05 '21 15:02 Fryguy

@lfu when you get a chance, if you can review and validate in a real provision workflow (I don't have environment to try it), that would be great. This is NOT URGENT and very low priority.

chessbyte avatar Feb 05 '21 15:02 chessbyte

@lfu I re-ordered the initialize method here because it seemed that the dialog initialization and configuration has nothing to do with the password_helper and setting instance variables. Let me know if my assumptions are wrong.

chessbyte avatar Feb 05 '21 15:02 chessbyte

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Feb 27 '23 00:02 miq-bot

This removes a bunch of copy paste code.

Do we want to pick this up, or let stale make it disappear?

kbrock avatar May 03 '23 15:05 kbrock

I'm surprised this PR is still mergeable - would like @agrare to review and then either accept or close.

Fryguy avatar May 16 '23 19:05 Fryguy

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Aug 21 '23 00:08 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Nov 27 '23 00:11 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Mar 04 '24 00:03 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Jun 10 '24 00:06 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Sep 16 '24 00:09 miq-bot

Checked commits https://github.com/chessbyte/manageiq/compare/55f03f01c6bec33f413a1536ee9f54da39c7218e~...c7243c99ad4d3d322d15951034e34a83184c3054 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint 3 files checked, 5 offenses detected

app/models/miq_provision_virt_workflow.rb

  • [ ] :warning: - Line 1117, Col 3 - Lint/IneffectiveAccessModifier - private (on line 965) does not make singleton methods private. Use private_class_method or private inside a class << self block instead.

app/models/miq_request_workflow.rb

  • [ ] :warning: - Line 1524, Col 26 - Lint/UnusedMethodArgument - Unused method argument - values. If it's necessary, use _ or _values as an argument name to indicate that it won't be used. If it's unnecessary, remove it.
  • [ ] :warning: - Line 1535, Col 25 - Lint/UnusedMethodArgument - Unused method argument - values. If it's necessary, use _ or _values as an argument name to indicate that it won't be used. If it's unnecessary, remove it. You can also write as configure_dialogs(*) if you want the method to accept any arguments but don't care about them.
  • [ ] :warning: - Line 1535, Col 33 - Lint/UnusedMethodArgument - Unused method argument - options. If it's necessary, use _ or _options as an argument name to indicate that it won't be used. If it's unnecessary, remove it. You can also write as configure_dialogs(*) if you want the method to accept any arguments but don't care about them.
  • [ ] :exclamation: - Line 1530, Col 34 - Style/IfInsideElse - Convert if nested inside else to elsif.

miq-bot avatar Sep 17 '24 18:09 miq-bot

update:

  • rebased to fix conflict

Can fix cops if we deem we want to still work on this

@Fryguy @agrare do we still want this, or just close?

kbrock avatar Sep 17 '24 18:09 kbrock