Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Block the `Remote` removal if it is referred by a `Distribution`

オープン 初心者向け
#5,802 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
django, python
領域
backend, database

調査の方向性

Distribution と Remote のリレーションが定義されている pulpcore/app/models/publication.py の 659 行目付近を調査し、Django の models.PROTECT の動作を確認してください。関連する Remote モデルと Distribution モデルの動作を確認したうえで、Distribution から参照されている Remote は削除できず、参照されていない remotes は引き続き削除できることを検証してください。

索引モデルが issue の本文から書いたものです。

説明

Feature

Is your feature request related to a problem? Please describe.
If we remove a remote that is linked to a distribution, trying to pull non-synced content may fail.

Describe the solution you'd like
We could define the on_delete of Distribution remote attribute as models.Protect
https://github.com/pulp/pulpcore/blob/1672b3f405170d0a45de9c4b8cc2b059a066a162/pulpcore/app/models/publication.py#L659

as a safeguard to ensure that there is no associated Distribution before removing the Remote.

Additional context
This is related to https://github.com/pulp/pulp_container/issues/1729

主要言語
Python
スター
606
フォーク
174
平均マージ
16時間 44分
マージ済み PR(30日)
107

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pulp/pulpcore のほかの issue

pulp/pulpcore の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。