pulp / pulp/pulpcore

Teach import/export to create and use UpstreamID.json

Open
#4,549 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

Is your feature request related to a problem? Please describe.

Export task while creating Content-detail json file will also collect their upstream_id and eventually dump into UpstreamID.json file.
This file will be used during import, specifically it will help query DB only content that is being imported in the step of processing of ContentArtifacResource where we map upstream_id--> content.pulp_id

Additional context
see https://github.com/pulp/pulpcore/pull/4543/files#r1355001283

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked pull request context and the export path that creates Content-detail JSON files, then trace import processing at ContentArtifacResource. Done means export writes collected upstream_id values to UpstreamID.json and import uses that file to limit the database query to content being imported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.