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

Record migration warnings where they arise

オープン
#63 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

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 の本文から書いたものです。

説明

app: scripts status: backlog type: housekeeping
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

環境構築

はじめの一歩

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

netbox-community/netbox-scripts のほかの issue

netbox-community/netbox-scripts の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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