-
Notifications
You must be signed in to change notification settings - Fork 897
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
configuration_script_sources subcollection #15070
configuration_script_sources subcollection #15070
Conversation
module Subcollections | ||
module ConfigurationScriptPayloads | ||
def configuration_script_payloads_query_resource(object) | ||
object.respond_to?(:configuration_script_payloads) ? object.configuration_script_payloads : [] |
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.
Do not all ConfigurationScripts respond to configuration_script_payloads? If they don't, can you add a test showing that this check is necessary?
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.
LGTM. It might be good to provide an example query/response so we could see how this solves the problem outlined in the BZ, if it's not too much trouble
…_script_sources add filter spec
Checked commit jntullo@111b23e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add_label fine/yes |
This LGTM!! Thanks @jntullo for the enhancement. 👍 |
configuration_script_sources subcollection (cherry picked from commit 632c2d0) https://bugzilla.redhat.com/show_bug.cgi?id=1459986
Fine backport details:
|
For this BZ, it is necessary to filter on
region_number
of playbooks that belong to a repository.While this can be achieved via
adding it as a subcollection makes it possible to filter on the
configuration_script_sources
collection directly:@miq-bot add_label enhancement, api
@miq-bot assign @abellotti
cc: @h-kataria @gmcculloug