Project

Profile

Help

Task #3933

closed

Story #3202: As a user, I can sync RPM/SRPM/Erratum from a remote Yum/DNF repository

Save UpdateCollection and UpdateCollectionPackage in bulk

Added by bmbouter over 5 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 41
Quarter:

Description

Create a ErrataRelatedModelSaver stage that will:

1. Read in a batch of DeclarativeContent objects
2. Filter out the UpdateRecord objects, and send the other content unit types down the pipeline
3. Bulk-save the UpdateCollection objects.
4. Bulk-save the UpdateCollectionPackage objects.
5. Send the handled UpdateRecord objects down the pipeline

This stage needs to be run just after the ContentUnitAssociation stage. That means it needs a custom pipeline, which RPM can instantiate easily. That work should be done as part of this ticket.

Actions #1

Updated by bmbouter over 5 years ago

  • Description updated (diff)
Actions #2

Updated by daviddavis over 5 years ago

  • Parent issue set to #3202
  • Groomed changed from No to Yes
  • Sprint set to Sprint 41
Actions #3

Updated by bmbouter over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #4

Updated by bmbouter over 5 years ago

  • Status changed from ASSIGNED to POST

Erratum sync is also working with this! https://github.com/pulp/pulp_rpm/pull/1168

Added by bmbouter over 5 years ago

Revision cf68be94 | View on GitHub

Get Sync Working with Erratum!

  • Adds a new custom stage that saves UpdateCollection and UpdateCollectionPackage objects in bulk
  • Uses a new custom pipeline instead of DeclarativeVersion. This is temporary until a new feature is added to DeclarativeVersion to allow for stage injection.
  • Adds a viewset and serializer for Erratum. It required one or it would raise an exception that it couldn't serialize the output.
  • updates the smash count since 4 Erratum units are now being correctly included
  • refactors closure style coroutines in favor of classmethods

https://pulp.plan.io/issues/3933 closes #3933

Actions #5

Updated by bmbouter over 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #6

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #7

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF