Teach import/export to create and use UpstreamID.json
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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