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

Add ArchivedMixin to ServiceTemplate #17480

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented May 25, 2018

This adds the archived mixin to service templates to allow for v2v
migration plans to be archived by the user.

ManageIQ/manageiq-v2v#314

Gap backport: #17481

Depends on: ManageIQ/manageiq-schema#207

@agrare agrare force-pushed the add_archived_mixin_to_service_template branch from aaaa0a0 to 01613de Compare May 25, 2018 18:22
@@ -56,6 +57,7 @@ class ServiceTemplate < ApplicationRecord
has_many :dialogs, -> { distinct }, :through => :resource_actions

has_many :miq_requests, :as => :source, :dependent => :nullify
has_many :active_requests, -> { where(:request_state => %w(active queued)) }, :as => :source, :class_name => "MiqRequest"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bzwei can you confirm this covers all "active requests"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ perfect

@agrare agrare force-pushed the add_archived_mixin_to_service_template branch from d494d8c to 6978d03 Compare May 25, 2018 20:33
@agrare agrare force-pushed the add_archived_mixin_to_service_template branch from 6978d03 to f56ef1f Compare May 29, 2018 12:39
@agrare agrare force-pushed the add_archived_mixin_to_service_template branch from f56ef1f to ccdde4b Compare May 29, 2018 12:50
@miq-bot
Copy link
Member

miq-bot commented May 29, 2018

Checked commits agrare/manageiq@d025b82~...ccdde4b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 1 offense detected

app/models/service_template.rb

@simaishi
Copy link
Contributor

Backported to Gaprindashvili via #17481

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