Project

Profile

Help

Task #5201

closed

Story #5110: [Epic] As a user, I can manage Kickstart repositories

Create the model(s) for distribution trees as Content models

Added by daviddavis over 4 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 58
Quarter:

Description

Content Model Design

The main model will be DistributionTree that inherits from pulp's Content object. Populate it with the field names from the productmd code [0]. Since some fields are unique only to their section, prefix them with the section name. For example, the name field in the release section will be release_name and base_product name will be base_product_name.

Add a new model DistributionTreeRepository that foreign key points at a distribution a DistributionTree content unit and a a Repository with RPMs. This table should store the variant info.

Lastly we need models for DistributionTree checksums, images, and addons.

[0] https://github.com/release-engineering/productmd/blob/master/productmd/treeinfo.py

Also available in: Atom PDF