Project

Profile

Help

Refactor #853

closed

Refactor #765: Convert Pulp to use MongoEngine

Create the pulp.unit_models entry point

Added by bcourt over 9 years ago. Updated over 5 years 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 - CURRENTRELEASEbcourt

Actions
Blocks Docker Support - Refactor #863: Convert pulp_docker to use MongoEngine models for unitsCLOSED - CURRENTRELEASErbarlow

Actions
Blocks Pulp - Refactor #871: pulp_manage_db uses ContentUnit Models as well as the types.json for loading models and ensuring indexesCLOSED - WONTFIX

Actions
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

Actions
Actions #1

Updated by bcourt over 9 years ago

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

Updated by bcourt over 9 years ago

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

Updated by bcourt over 9 years ago

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

Updated by bcourt over 9 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
Actions #5

Updated by bcourt over 9 years ago

  • Priority changed from Normal to High
Actions #6

Updated by bcourt over 9 years ago

  • Description updated (diff)
Actions #7

Updated by bcourt over 9 years ago

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

Updated by bcourt over 9 years ago

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

Added by bcourt over 9 years ago

Revision 18c4172f | View on GitHub

Create entry point to load unit models

ref #853

Added by bcourt over 9 years ago

Revision 18c4172f | View on GitHub

Create entry point to load unit models

ref #853

Actions #9

Updated by bcourt over 9 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by bmbouter over 9 years ago

  • Groomed set to Yes
  • Tags deleted (Groomed)
Actions #11

Updated by bmbouter over 9 years ago

  • Sprint Candidate set to Yes
  • Tags deleted (Sprint Candidate)
Actions #12

Updated by dkliban@redhat.com over 9 years ago

  • Platform Release set to 2.7.0
Actions #13

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from MODIFIED to 5
Actions #14

Updated by rbarlow almost 9 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #15

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF