Project

Profile

Help

Refactor #888

closed

Refactor #765: Convert Pulp to use MongoEngine

pulp_manage_db needs to run .ensure_indexes() on MongoEngine platform models

Added by bcourt almost 9 years ago. Updated almost 5 years ago.

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

100%

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

Description

After pulp-manage-db performs all the migrations it should load all the models for the core collections (repos, tasks, repo_content_units, etc.) and run the ensure_indexes() method on the models to make sure that the Pulp required indexes are maintained.

Deliverables:

  • Create a list that stores the class paths to provide the loading of all models for core collections
  • Platform models that have already been converted are included in the list of models above
  • Updates to pulp-manage-db calls ensure_indexes() on each loaded class in the list above
  • Mongoengine conversion guide is updated to include adding the model to this collection of calls.

Also available in: Atom PDF