Project

Profile

Help

Refactor #4117

closed

Refactor bulk_create calls in RpmContentUnitSaver

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:
Yes
Tags:
Sprint:
Sprint 55
Quarter:

Description

The implementation of RpmContentUnitSaver needs to not rely on attaching attributes to models and then reading those attributes back later. For background see comments around this one: https://pulp.plan.io/issues/4060#note-12

That is currently done in the rpm code here: https://github.com/pulp/pulp_rpm/blob/844336c1c55427851861491a50746c1c2af48d4e/pulp_rpm/app/tasks/synchronizing.py#L293-L327

Actions #1

Updated by bmbouter over 5 years ago

  • Tracker changed from Issue to Refactor
  • Subject changed from Rework bulk_create calls in ErratumContentUnitSaver to Refactor bulk_create calls in ErratumContentUnitSaver
  • % Done set to 0
Actions #2

Updated by bmbouter over 5 years ago

We could use a zip() style which relies on the bulk_create order of items in and items out being the same. dalley confirmed in #django that it's implementation does preserve order today. Here is an example: https://github.com/pulp/pulp/compare/master...dralley:single-table-content?expand=1#diff-724178b047dc8948469adbef5243c6c0R126

Actions #3

Updated by ttereshc about 5 years ago

  • Subject changed from Refactor bulk_create calls in ErratumContentUnitSaver to Refactor bulk_create calls in RpmContentUnitSaver
  • Description updated (diff)
  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
Actions #4

Updated by ttereshc about 5 years ago

  • Sprint set to Sprint 50
Actions #5

Updated by dalley about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dalley
Actions #6

Updated by rchan about 5 years ago

  • Sprint changed from Sprint 50 to Sprint 51
Actions #7

Updated by daviddavis about 5 years ago

  • Sprint changed from Sprint 51 to Sprint 52
Actions #8

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #9

Updated by dalley almost 5 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (dalley)

Working on higher priority items currently - anyone else can pick this up. I never got very far on my branch.

Actions #10

Updated by rchan almost 5 years ago

  • Sprint changed from Sprint 52 to Sprint 53
Actions #11

Updated by amacdona@redhat.com almost 5 years ago

  • Sprint changed from Sprint 53 to Sprint 54
Actions #12

Updated by ttereshc almost 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc
Actions #13

Updated by ttereshc almost 5 years ago

  • Status changed from ASSIGNED to POST
Actions #14

Updated by ttereshc almost 5 years ago

  • Sprint changed from Sprint 54 to Sprint 55
Actions #15

Updated by dominiclay123@gmail.com almost 5 years ago

  • File clipboard-201906251113-1pik0.png added
Actions #16

Updated by bmbouter almost 5 years ago

  • File deleted (clipboard-201906251113-1pik0.png)

Added by ttereshc almost 5 years ago

Revision 6f58b19b | View on GitHub

Stop using model attributes to carry related models to save later

Use extra_data attribute of DeclarativeContent instead.

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

Actions #17

Updated by ttereshc almost 5 years ago

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

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF