Skip to content

Commit

Permalink
Fixes #38055 - Fix future-dated subscriptions (Katello#11243)
Browse files Browse the repository at this point in the history
* Fixes #38055 - Send active=include for Product.all
* Refs #38055 - Send add_future when getting upstream pools
* Refs #38055 - Update app/lib/katello/resources/candlepin/product.rb

---------

Co-authored-by: Partha Aji <[email protected]>
Co-authored-by: Quinn James <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent adfb230 commit 74241a4
Show file tree
Hide file tree
Showing 11 changed files with 381,357 additions and 757 deletions.
3 changes: 2 additions & 1 deletion app/lib/katello/resources/candlepin/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module Candlepin
class Product < CandlepinResource
class << self
def all(owner_label, included = [])
products = JSON.parse(Candlepin::CandlepinResource.get(path(owner_label) + "?#{included_list(included)}", self.default_headers).body)
url = path(owner_label) + "?active=include" + "&#{included_list(included)}"
products = JSON.parse(Candlepin::CandlepinResource.get(url, self.default_headers).body)
::Katello::Util::Data.array_with_indifferent_access products
end

Expand Down
1 change: 1 addition & 0 deletions app/models/katello/upstream_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def base_params(params)
params[:consumer] = upstream_consumer_id if attachable
params[:sort_by] = 'Product.name'
params[:order] = 'asc'
params[:add_future] = true
params
end

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 74241a4

Please sign in to comment.