Record migration warnings where they arise
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with cutover.py, references.py, and cleanup.py, then trace their Jobs and existing warning handling, including the changes in #60. Update operation return values and callers so each pass logs warnings it adds, including on failure; preserve history and deduplication, and revise retry messages. Update the related docstrings and tests for interrupted operations and repeated passes.
索引モデルが issue の本文から書いたものです。
説明
Proposed Changes
Update the migration operations in cutover.py, references.py and cleanup.py to record warnings through MigrationRun.record_warnings() where they arise, and return only counts or other operation results.
Update the cutover, references and cleanup Jobs to log warnings newly added by their own pass, including when a later operation fails. Preserve the run's warning history and deduplication, and update retry messages to point to that history when a warning has already been recorded.
Update callers, docstrings and tests for the revised return values, interrupted operations and repeated passes. This follows up on the warning-handling changes in #60.
Justification
Migration helpers currently use different conventions: some return warnings for their callers to record, while others both record and return them. This adds warning-list plumbing and can lose earlier warnings if later work raises before the list is recorded.
Recording warnings in the operation that produces them gives migration one convention, simplifies callers and preserves already committed warnings when later work fails.
- 主要言語
- Python
- スター
- 8
- フォーク
- 0
- 平均マージ
- 11時間 35分
- マージ済み PR(30日)
- 20
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
app: scripts severity: medium status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
netbox-community/netbox-scripts#83 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts status: backlog type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
netbox-community/netbox-scripts#80 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: medium status: backlog type: bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
netbox-community/netbox-scripts#79 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: medium status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
netbox-community/netbox-scripts#77 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
netbox-community/netbox-scripts#76 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
awslabs/visual-asset-management-system#937 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信