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

[WIP] PowerOperations - split VM logic from Service logic, fix #1580

Closed
wants to merge 6 commits into from
Closed

[WIP] PowerOperations - split VM logic from Service logic, fix #1580

wants to merge 6 commits into from

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Aug 21, 2019

PowerOperations service currently deals with both VMs and Services.
That's making the code much less obvious, leading to bugs like passing a vm and service interchangeably to those functions, even though they don't use the same logic.

Splitting into separate VmPower and ServicePower services and cleaning up.

@miq-bot add_label wip, bug, ivanchuk/yes

This should make sure both VM views get the right start/stop/suspend/retire logic,
and the service view will as well.

https://bugzilla.redhat.com/show_bug.cgi?id=1704221

@miq-bot miq-bot changed the title PowerOperations - split VM logic from Service logic, fix [WIP] PowerOperations - split VM logic from Service logic, fix Aug 21, 2019
@miq-bot miq-bot added the stale label Jun 11, 2020
@miq-bot miq-bot closed this Jun 11, 2020
@miq-bot
Copy link
Member

miq-bot commented Jun 11, 2020

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

Feel free to reopen this pull request if these changes are still valid.

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

@himdel himdel reopened this Jun 11, 2020
@miq-bot miq-bot closed this Jun 12, 2020
@miq-bot
Copy link
Member

miq-bot commented Jun 12, 2020

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

Feel free to reopen this pull request if these changes are still valid.

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

can't do __(string + var), the error message needs to be added after the first string is translated
PowerOperations deals with Services or VMs,
but the logic is different in each.

Moving startVm, stopVm, suspendVm and retireVm actions to a separate VmPower service.

(the allow*vm actions will follow..)
remove all the unused helper functions,
changing the functions to simply match the list of states against what getPowerState returns
@miq-bot
Copy link
Member

miq-bot commented Jul 29, 2020

Checked commits https://github.com/himdel/manageiq-ui-service/compare/dadec26dba494bdc6a2f154a7245f3a7c3add719~...e3d43cb601c5a62a9a144b6f5af95740272167ea with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@miq-bot
Copy link
Member

miq-bot commented Mar 6, 2023

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
Copy link
Member

miq-bot commented Aug 7, 2023

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

Feel free to reopen this pull request if these changes are still valid.

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

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

3 participants