Project

Profile

Help

Refactor #863

Pulp - Refactor #765: Convert Pulp to use MongoEngine

Convert pulp_docker to use MongoEngine models for units

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

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Target Release - Docker:
2.0.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Quarter:

Description

Convert the pulp_docker to use MongoEngine models for all unit actions instead of the associated unit

Deliverables:

  • ContentUnit model for docker_image units
    • The model is registered via the entry point
    • The types .json file is removed, and references to it in the spec files are are also removed
  • All interactions with units in the plugin use the new unit model and the Repository model for creating, saving and updating units

Related issues

Has duplicate Docker Support - Refactor #1080: Convert the DockerManifest model to use mongoengine modelCLOSED - DUPLICATE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocked by Pulp - Refactor #862: Add unit association and querying support to the Repository modelCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocked by Pulp - Refactor #853: Create the pulp.unit_models entry pointCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Pulp - Refactor #867: Update the docs for the Plugin API to use the MongoEngine modelsCLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Pulp - Refactor #868: Update RepoUnitAssociationManager.associate_from_repo to use MongoEngine models when possibleCLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Pulp - Refactor #869: convert RepoUnitAssociationManager.unassociate_by_criteria to use MongoEngine models when possibleCLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks RPM Support - Refactor #874: Convert pulp_rpm to use MongoEngine ModelsCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Puppet Support - Refactor #875: Convert pulp_puppet to use MongoEngine modelsCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks OSTree Support - Refactor #876: Convert pulp_ostree to use MongoEngine modelsCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Python Support - Refactor #877: convert pulp_python to use MongoEngine modelsCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Debian Support - Refactor #878: Convert pulp_deb to use MongoEngine modelsCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Pulp - Refactor #879: Deprecate old style of working with unitsCLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Docker Support - Refactor #1037: Remove manual setting for repo.repo_idCLOSED - CURRENTRELEASE

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

Associated revisions

Revision 89b89359 View on GitHub
Added by rbarlow almost 5 years ago

Allow developers to override the GetLocalUnitsStep's available_units.

Some types are a mixture of Units and Metadata, and need to be treated separately. The GetLocalUnitsStep did not allow developers to specify what data structure would contain the iterable of available Units. This commit adds the ability for developers to give a pointer to that data structure while maintaining the previous behavior if it is not specified for backwards compatibility.

This is needed for the Docker plugin Mongoengine conversion as it reduces the number of steps that are needed in its importer's code.

https://pulp.plan.io/issues/863

re #863

Revision 89b89359 View on GitHub
Added by rbarlow almost 5 years ago

Allow developers to override the GetLocalUnitsStep's available_units.

Some types are a mixture of Units and Metadata, and need to be treated separately. The GetLocalUnitsStep did not allow developers to specify what data structure would contain the iterable of available Units. This commit adds the ability for developers to give a pointer to that data structure while maintaining the previous behavior if it is not specified for backwards compatibility.

This is needed for the Docker plugin Mongoengine conversion as it reduces the number of steps that are needed in its importer's code.

https://pulp.plan.io/issues/863

re #863

Revision 0b218b99 View on GitHub
Added by rbarlow almost 5 years ago

Convert the plugin to use mongoengine models.

https://pulp.plan.io/issues/863

closes #863

Revision 0b218b99 View on GitHub
Added by rbarlow almost 5 years ago

Convert the plugin to use mongoengine models.

https://pulp.plan.io/issues/863

closes #863

Revision 0b218b99 View on GitHub
Added by rbarlow almost 5 years ago

Convert the plugin to use mongoengine models.

https://pulp.plan.io/issues/863

closes #863

Revision 0b218b99 View on GitHub
Added by rbarlow almost 5 years ago

Convert the plugin to use mongoengine models.

https://pulp.plan.io/issues/863

closes #863

History

#1 Updated by bcourt over 5 years ago

  • Blocked by Refactor #861: Convert usage of pulp.plugins.model.Repository to the MongoEngine Model added

#2 Updated by bcourt over 5 years ago

  • Blocks Refactor #862: Add unit association and querying support to the Repository model added

#3 Updated by bcourt over 5 years ago

  • Blocks deleted (Refactor #862: Add unit association and querying support to the Repository model)

#4 Updated by bcourt over 5 years ago

  • Blocked by Refactor #862: Add unit association and querying support to the Repository model added

#5 Updated by bcourt over 5 years ago

  • Blocked by deleted (Refactor #861: Convert usage of pulp.plugins.model.Repository to the MongoEngine Model)

#6 Updated by bcourt over 5 years ago

  • Blocked by Refactor #853: Create the pulp.unit_models entry point added

#7 Updated by bcourt over 5 years ago

  • Blocks Refactor #867: Update the docs for the Plugin API to use the MongoEngine models added

#8 Updated by bcourt over 5 years ago

  • Blocks Refactor #868: Update RepoUnitAssociationManager.associate_from_repo to use MongoEngine models when possible added

#9 Updated by bcourt over 5 years ago

  • Blocks Refactor #869: convert RepoUnitAssociationManager.unassociate_by_criteria to use MongoEngine models when possible added

#10 Updated by bcourt over 5 years ago

  • Description updated (diff)

#11 Updated by bcourt over 5 years ago

  • Blocks Refactor #874: Convert pulp_rpm to use MongoEngine Models added

#12 Updated by bcourt over 5 years ago

  • Blocks Refactor #875: Convert pulp_puppet to use MongoEngine models added

#13 Updated by bcourt over 5 years ago

  • Blocks Refactor #876: Convert pulp_ostree to use MongoEngine models added

#14 Updated by bcourt over 5 years ago

  • Blocks Refactor #877: convert pulp_python to use MongoEngine models added

#15 Updated by bcourt over 5 years ago

  • Blocks Refactor #878: Convert pulp_deb to use MongoEngine models added

#16 Updated by bcourt over 5 years ago

  • Blocks Refactor #879: Deprecate old style of working with units added

#17 Updated by bcourt over 5 years ago

  • Blocks Story #880: Remove the types.json method of specifying models added

#18 Updated by bcourt over 5 years ago

  • Blocks deleted (Story #880: Remove the types.json method of specifying models)

#19 Updated by bcourt over 5 years ago

  • Project changed from Pulp to Docker Support

#20 Updated by bcourt over 5 years ago

  • Priority changed from Normal to High

#21 Updated by bcourt over 5 years ago

  • Sprint Candidate set to Yes

#22 Updated by bmbouter over 5 years ago

  • Groomed set to No

#23 Updated by mhrivnak over 5 years ago

  • Blocks Task #967: Create a "manifest" model added

#24 Updated by mhrivnak over 5 years ago

  • Groomed changed from No to Yes

#25 Updated by bcourt over 5 years ago

  • Status changed from NEW to POST
  • Assignee set to bcourt
  • Sprint/Milestone set to 16
  • % Done changed from 0 to 100

#26 Updated by bcourt over 5 years ago

#27 Updated by bcourt over 5 years ago

  • Target Release - Docker set to 1.2.0

#28 Updated by mhrivnak over 5 years ago

  • Blocks deleted (Task #967: Create a "manifest" model)

#29 Updated by rbarlow over 5 years ago

  • Blocks Refactor #1080: Convert the DockerManifest model to use mongoengine model added

#30 Updated by bmbouter over 5 years ago

  • Blocks deleted (Refactor #1080: Convert the DockerManifest model to use mongoengine model)

#31 Updated by bcourt over 5 years ago

  • Status changed from POST to MODIFIED

#32 Updated by rbarlow almost 5 years ago

  • Has duplicate Refactor #1080: Convert the DockerManifest model to use mongoengine model added

#33 Updated by rbarlow almost 5 years ago

  • Status changed from MODIFIED to ASSIGNED
  • Assignee changed from bcourt to rbarlow
  • Sprint/Milestone deleted (16)
  • % Done changed from 100 to 0
  • Target Release - Docker changed from 1.2.0 to master

#34 Updated by rbarlow almost 5 years ago

  • Blocks Task #1368: Include Pulp in the Fedora Project added

#35 Updated by rbarlow almost 5 years ago

  • Target Release - Docker changed from master to 2.0.0

#36 Updated by rbarlow almost 5 years ago

  • Status changed from ASSIGNED to POST

#37 Updated by rbarlow almost 5 years ago

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

#38 Updated by rbarlow over 4 years ago

  • Blocks deleted (Task #1368: Include Pulp in the Fedora Project)

#39 Updated by rbarlow over 4 years ago

  • Status changed from MODIFIED to 5

#40 Updated by rbarlow over 4 years ago

  • Status changed from 5 to 6

Docker is definitely using MongoEngine models now.

#41 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#43 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF