New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the Package model into two #1392

Closed
bowlofeggs opened this Issue Mar 30, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@bowlofeggs
Member

bowlofeggs commented Mar 30, 2017

We need to split the Package model into two models, a superclass (probably still called Package) and a new RPM-specific subclass, perhaps simply called RPM. All of Package's relationships should be analyzed to determine which ones should be adjusted to reference RPM vs. continuing to reference Package. Also, a database migration will be needed so that Bodhi's existing data can be preserved in the new split package design. All code will need to be altered to use the new RPM model rather than the Package model when the data involved is RPM-specific.

Once this is done, all of Bodhi's functionality should continue to work exactly as it does today.

@bowlofeggs bowlofeggs added this to the Multi-type support (Bodhi 3.0.0?) milestone Mar 30, 2017

@bowlofeggs bowlofeggs referenced this issue Mar 30, 2017

Closed

AddModuleModels #1324

6 of 6 tasks complete

@jeremycline jeremycline self-assigned this Mar 31, 2017

jeremycline added a commit to jeremycline/bodhi that referenced this issue Mar 31, 2017

Turn the Package model into a single-table inheritance model
This turns the Package model into the parent class using single-table
inheritance that sub-classes can inherit from to create different
Package types. It includes a migration that sets the type of all
existing Packages to RpmPackage.

fixes fedora-infra#1392

Signed-off-by: Jeremy Cline <jeremy@jcline.org>

jeremycline added a commit to jeremycline/bodhi that referenced this issue Apr 3, 2017

Turn the Package model into a single-table inheritance model
This turns the Package model into the parent class using single-table
inheritance that sub-classes can inherit from to create different
Package types. It includes a migration that sets the type of all
existing Packages to RpmPackage.

fixes fedora-infra#1392

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment