Project

General

Profile

Refactor #25237

move indexing to a service class

Added by Justin Sherrill 6 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Related issues

Related to Katello - Refactor #25872: refactor pulp_database_unit to be pulp-agnosticNew
Blocked by Katello - Tracker #24318: Pulp 3 code base prep workNew

Copied from Katello - Refactor #25235: move remove contents to a service classClosed
Copied to Katello - Refactor #25238: cleanup remaining repo.rbNew

Associated revisions

Revision 77e5e264 (diff)
Added by Justin Sherrill 3 months ago

Fixes #25237 - Move unit importing to a service class

This change aims to make the importing of content units into
the katello database more agnostic with regard to pulp2 and pulp3.

  • moves the Model#update_from_json methods to the service classes
    as an update_model method
  • adds to the repository type registration api the ability to declare
    content types and link to their service classes
  • The CONTENT_TYPE constant on the models no longer refer to the
    pulp service class CONTENT_TYPE constants, they are now
    independent
  • Changes repository indexing to be based on the new repository_type
    registration apis

Revision d20cbb04 (diff)
Added by Justin Sherrill 3 months ago

Fixes #25237 - add repo_type docs

Revision 699622de (diff)
Added by Justin Sherrill 3 months ago

Fixes #25237 - test fix

Revision b48ef54e (diff)
Added by Justin Sherrill 3 months ago

Fixes #25237 - fix module stream and ostree import

History

#1 Updated by Justin Sherrill 6 months ago

  • Copied from Refactor #25235: move remove contents to a service class added

#2 Updated by Justin Sherrill 6 months ago

#3 Updated by Justin Sherrill 6 months ago

#4 Updated by John Mitsch 6 months ago

  • Triaged changed from No to Yes

#5 Updated by Christine Fouant 5 months ago

  • Target version changed from Katello 3.10.0 to Katello Backlog

#6 Updated by The Foreman Bot 3 months ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7927 added

#7 Updated by Justin Sherrill 3 months ago

  • Related to Refactor #25872: refactor pulp_database_unit to be pulp-agnostic added

#8 Updated by Justin Sherrill 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF