Actions
Bug #11612
closedOSTree content unit count not updating on repo details page after sync
Difficulty:
Triaged:
Bugzilla link:
Actions
Added by David Davis over 10 years ago. Updated almost 8 years ago.
Following things need to get accomplished for this
1) In a model similar to https://github.com/Katello/katello/blob/master/app/models/katello/rpm.rb add a unit for ostree. It should be simpler (nothing to index or search really since all this model will store is repository it belongs to and an integer for the units)
2) Create migrations for this table, similar to https://github.com/Katello/katello/blob/master/db/migrate/20150613134559_add_rpm.rb (again only one metadata column to be stored for now)
3) Add code to implement update_from_json method https://github.com/Katello/katello/blob/master/app/models/katello/rpm.rb#L40
4) Add ostree references here in the index_content https://github.com/Katello/katello/blob/master/app/models/katello/glue/pulp/repo.rb#L775
5) Add entries for ostree in th content unit counts https://github.com/Katello/katello/blob/master/app/views/katello/api/v2/repositories/base.json.rabl#L14
6) Sync and make sure the numbers show up in Sync/CV Publishes and other places.
7) Also if possible in pages showing ostree units also show branches :) - extra credit
Applied in changeset katello|d1285151b86755eb5355fa790ebc109a4e476eae.