Refactor MiqProvisionWorkflow#initialize method and subclasses
Should these new methods be private methods?
@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.
@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.
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.
This removes a bunch of copy paste code.
Do we want to pick this up, or let stale make it disappear?
I'm surprised this PR is still mergeable - would like @agrare to review and then either accept or close.
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.
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).
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).
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).
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).
app/models/miq_provision_virt_workflow.rb
- [ ] :warning: - Line 1117, Col 3 - Lint/IneffectiveAccessModifier -
private(on line 965) does not make singleton methods private. Useprivate_class_methodorprivateinside aclass << selfblock instead.
app/models/miq_request_workflow.rb
- [ ] :warning: - Line 1524, Col 26 - Lint/UnusedMethodArgument - Unused method argument -
values. If it's necessary, use_or_valuesas 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_valuesas an argument name to indicate that it won't be used. If it's unnecessary, remove it. You can also write asconfigure_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_optionsas an argument name to indicate that it won't be used. If it's unnecessary, remove it. You can also write asconfigure_dialogs(*)if you want the method to accept any arguments but don't care about them. - [ ] :exclamation: - Line 1530, Col 34 - Style/IfInsideElse - Convert
ifnested insideelsetoelsif.
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?