app/controllers/katello/api/v2/errata_controller.rb in katello-3.12.3 vs app/controllers/katello/api/v2/errata_controller.rb in katello-3.13.0.rc1

- old
+ new

@@ -18,10 +18,11 @@ param :host_id, :number, :desc => N_("Host id to list applicable errata for") param :errata_restrict_applicable, :bool, :desc => N_("Return errata that are applicable to one or more hosts (defaults to true if host_id is specified)") param :errata_restrict_installable, :bool, :desc => N_("Return errata that are upgradable on one or more hosts") param :available_for, String, :desc => N_("Return errata that can be added to the specified object. The values 'content_view_version' and 'content_view_filter are supported.") param_group :search, Api::V2::ApiController + add_scoped_search_description_for(Erratum) def index super end def available_for_content_view_version(version) @@ -40,10 +41,10 @@ end collection = collection.where("#{date_type} >= ?", params[:start_date]) if params[:start_date] collection = collection.where("#{date_type} <= ?", params[:end_date]) if params[:end_date] collection = collection.of_type(params[:types]) if params[:types] - collection + collection.non_modular end def custom_index_relation(collection) collection = filter_by_cve(params[:cve], collection) if params[:cve] applicable = ::Foreman::Cast.to_bool(params[:errata_restrict_applicable]) || @host