Refactor #1066


pulp.server.db.model should be moved to pulp.server.db.models

Added by over 8 years ago. Updated over 4 years ago.

Start date:
Due date:
% Done:


Estimated time:
Platform Release:
Sprint Candidate:
Pulp 2


This should happen for two reasons:

1. All of our models live there, it should be a plural module name.
2. pulp.server.db.model is currently a package acting as a module. By importing any of the modules in this package, we are forced to import everything that is in model/ This creates a precarious situation for circular imports.

The second issue could also be fixed by moving the modules out of the model package and turning model into a real module. Either way, this should happen very soon because we will be updating all the plugins to use the models directly, and we want to make this change before it will break the plugins.

Actions #1

Updated by over 8 years ago

There is at least one (extremely minor) circular import issue caused by this. The fix in that case is to add an extra import that ensures a feet first import. When this is solved, please also remove the extra import in webservices/views/serializers/ See the note there for more details.

Actions #2

Updated by rbarlow over 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to rbarlow
  • Platform Release set to master

pcreech is working on this, but I don't see his e-mail address in the available list of Assignees so I'm assigning it to myself for tracking.

Actions #3

Updated by rbarlow almost 8 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (rbarlow)

This ended up being more complicated than it seemed, so we will have to do it later.

Actions #4

Updated by mhrivnak almost 8 years ago

  • Platform Release deleted (master)
Actions #5

Updated by semyers almost 8 years ago

  • Tags deleted (Easy Fix)
Actions #6

Updated by bmbouter over 4 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #7

Updated by bmbouter over 4 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #8

Updated by bmbouter over 4 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF