-
Notifications
You must be signed in to change notification settings - Fork 898
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
[GAPRINDASHVILI] Add ArchivedMixin to ServiceTemplate #17481
Conversation
app/models/service_template.rb
Outdated
include ReservedMixin | ||
reserve_attribute :deleted_on, :datetime | ||
|
||
scope :archived, -> { includes(:reserved_rec).select { |st| !st.deleted_on.nil? } } |
There was a problem hiding this comment.
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?
d209e74
to
425c0ff
Compare
This pull request is not mergeable. Please rebase and repush. |
425c0ff
to
b9458b2
Compare
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 app/models/service_template.rb
|
looks good to merge 👍 |
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1593890 @miq-bot add_label blocker |
Backport of #17480 using reserved attributes.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1594023