Project

Profile

Help

Task #3933

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 1 year ago. Updated 3 months ago.

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

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 41

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.

Associated revisions

Revision cf68be94 View on GitHub
Added by bmbouter over 1 year ago

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

History

#1 Updated by bmbouter over 1 year ago

  • Description updated (diff)

#2 Updated by daviddavis over 1 year ago

  • Parent task set to #3202
  • Groomed changed from No to Yes
  • Sprint set to Sprint 41

#3 Updated by bmbouter over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter

#4 Updated by bmbouter over 1 year ago

  • Status changed from ASSIGNED to POST

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

#5 Updated by bmbouter over 1 year ago

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

#6 Updated by bmbouter 10 months ago

  • Tags deleted (Pulp 3)

#7 Updated by ttereshc 3 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF