Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Record migration warnings where they arise

Đang mở
#63 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
8
Fork
0
Merge trung bình
14 giờ 51 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của netbox-community/netbox-scripts

Tất cả issue của netbox-community/netbox-scripts

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.