Support export and import of npm repositories
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Work is already in progress: pull request #440 is open against this issue, so check it before starting anything new. The issue points to a missing modelresource.py with an IMPORT_ORDER list, modeled on pulp_file and pulp_python, and the failure is a missing export resource for the Package content type. Done means exporting and importing a repository with npm packages round-trips between two instances.
索引モデルが issue の本文から書いたものです。
説明
Version
pulpcore 3.121.3, pulp_npm 0.10.1 (latest release), installed from PyPI. Also reproduced on current main.
Describe the bug
pulp_npm does not implement the pulpcore import/export resources, so npm repositories cannot be moved between Pulp instances with PulpExporter / PulpImporter. Exporting a repository version that holds npm packages fails because there is no resource registered for the Package content type.
To Reproduce
- Sync an npm repository with an immediate remote.
- Create a PulpExporter for it and start an export.
- Try to import the resulting archive on another instance with a PulpImporter.
Expected behavior
npm packages and repositories are exported and imported like other plugins (pulp_file, pulp_python) handle their content.
Additional context
Other pulp plugins expose this through a modelresource.py with an IMPORT_ORDER list. The same approach works for pulp_npm.
- 主要言語
- Python
- スター
- 15
- フォーク
- 27
- 平均マージ
- 22時間 44分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pulp/pulp_npm のほかの issue
-
Feature Triage-Needed
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
メンテナーはふだん 1 日以内に返信
-
Publishing an existing version returns 201 and keeps the original tarball対応中かも @amaliazebi-eng が 50 日前に担当しました。 オープンIssue Triage-Needed
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Issue Triage-Needed
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
pulp/pulp_npm#434 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Extension of NPM REST API (repo index)対応中かも @TenSt が 69 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pydantic/pydantic-ai#14472 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
patrickballard/wheelgap#728 ·
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
choras-org/simulation-backend#58 ·
メンテナーはふだん 1 日以内に返信
-
backend part-1-modeling testing
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100