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

[GAPRINDASHVILI] Add ArchivedMixin to ServiceTemplate #17481

Conversation

agrare
Copy link
Member

@agrare agrare commented May 25, 2018

Backport of #17480 using reserved attributes.

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

include ReservedMixin
reserve_attribute :deleted_on, :datetime

scope :archived, -> { includes(:reserved_rec).select { |st| !st.deleted_on.nil? } }
Copy link
Member Author

Choose a reason for hiding this comment

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

Is there a better way to do scopes on reserved attributes?

@agrare agrare force-pushed the gaprindashvili_add_deleted_on_to_service_template branch 2 times, most recently from d209e74 to 425c0ff Compare May 29, 2018 12:51
@miq-bot
Copy link
Member

miq-bot commented May 29, 2018

This pull request is not mergeable. Please rebase and repush.

@agrare agrare force-pushed the gaprindashvili_add_deleted_on_to_service_template branch from 425c0ff to b9458b2 Compare May 29, 2018 18:53
@miq-bot
Copy link
Member

miq-bot commented May 29, 2018

Checked commits agrare/manageiq@ea39fdb~...b9458b2 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

@priley86
Copy link
Member

looks good to merge 👍

@AparnaKarve
Copy link
Contributor

@simaishi simaishi merged commit 263b473 into ManageIQ:gaprindashvili Jun 21, 2018
@simaishi simaishi added this to the Sprint 89 Ending Jul 2, 2018 milestone Jun 21, 2018
@agrare agrare deleted the gaprindashvili_add_deleted_on_to_service_template branch December 20, 2018 13:23
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.

6 participants