Project

Profile

Help

Refactor #853

Refactor #765: Convert Pulp to use MongoEngine

Create the pulp.unit_models entry point

Added by bcourt over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.7.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Quarter:

Description

Create a python entry point for 'pulp.unit_models' the entry points will be created in the format 'type_id=mongoengine.model.class'.

Upon platform initialization all the MongoEngine models should be loaded and have the appropriate signals attached to support setting the creation time, last_updated time, and moving content into the server content directory.

Deliverables:

  • Entry point for the models ('pulp.unit_models')
  • Server loads the entry point during server initialization and keeps the map of models in memory
  • Platform method to get a model by type_id
  • When server registers a model from the entry point it ensures that the following signals are registered:
    • pulp.server.db.model.ContentUnit.post_init_signal
    • pulp.server.db.model.ContentUnit.pre_save_signal
    • pulp.server.db.model.ContentUnit.post_save_signal
  • All models registered in this fashion have their indexes created by pulp-manage-db

Related issues

Blocked by Pulp - Refactor #847: Create a MongoEngine base class for Content Unit Models (ContentUnit)CLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Docker Support - Refactor #863: Convert pulp_docker to use MongoEngine models for unitsCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Pulp - Refactor #871: pulp_manage_db uses ContentUnit Models as well as the types.json for loading models and ensuring indexesCLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Pulp - Refactor #873: Add support for loading types via MongoEngine models to the server initialization (in addition to the content_types collection).CLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 18c4172f View on GitHub
Added by bcourt over 5 years ago

Create entry point to load unit models

ref #853

Revision 18c4172f View on GitHub
Added by bcourt over 5 years ago

Create entry point to load unit models

ref #853

History

#1 Updated by bcourt over 5 years ago

  • Blocked by Refactor #847: Create a MongoEngine base class for Content Unit Models (ContentUnit) added

#2 Updated by bcourt over 5 years ago

  • Blocks Refactor #863: Convert pulp_docker to use MongoEngine models for units added

#3 Updated by bcourt over 5 years ago

  • Blocks Refactor #871: pulp_manage_db uses ContentUnit Models as well as the types.json for loading models and ensuring indexes added

#4 Updated by bcourt over 5 years ago

  • Blocks Refactor #873: Add support for loading types via MongoEngine models to the server initialization (in addition to the content_types collection). added

#5 Updated by bcourt over 5 years ago

  • Priority changed from Normal to High

#6 Updated by bcourt over 5 years ago

  • Description updated (diff)

#7 Updated by bcourt over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bcourt
  • Tags Groomed, Sprint Candidate added

#8 Updated by bcourt over 5 years ago

  • Status changed from ASSIGNED to POST
  • % Done changed from 0 to 100

#9 Updated by bcourt over 5 years ago

  • Status changed from POST to MODIFIED

#10 Updated by bmbouter over 5 years ago

  • Groomed set to Yes
  • Tags deleted (Groomed)

#11 Updated by bmbouter over 5 years ago

  • Sprint Candidate set to Yes
  • Tags deleted (Sprint Candidate)

#12 Updated by dkliban@redhat.com over 5 years ago

  • Platform Release set to 2.7.0

#13 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from MODIFIED to 5

#14 Updated by rbarlow almost 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#15 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF