Cleanup completes migration while a retained module still has an unfinished built-in run
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 66/100
Hướng nghiên cứu
Start with _refusal_for() in netbox_scripts/migration/cleanup.py and trace how permanent history refusals are ordered relative to live_script_jobs. Reproduce the cleanup flow with a retained module that has a waiting or running built-in Job, including Jobs attached directly to the module. Done means cleanup reports the module as blocked and leaves the migration open in both cases.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Plugin Version
v0.0.1
NetBox Version
v4.7.3
Python Version
3.12
Steps to Reproduce
- Create a built-in module containing two Custom Scripts, synchronized from a Data Source.
- Run one Script to completion. Remove its class from the source and synchronize the same module, keeping its Job history and the other Script.
- Under Scripts > Migration, complete the passes through Repoint references.
- As a superuser, schedule the remaining built-in Script for the following day.
- Select Clean up.
Expected Behavior
Cleanup counts the module as blocked and leaves migration open while it has a waiting or running built-in Job, even when its historical Jobs require the module to be retained.
Observed Behavior
Cleanup counts the module as retained, reports no blocked modules, and marks the migration migrated. Its warning mentions only the removed class's Job history. The scheduled Job still refers to the remaining built-in Script and can execute it later.
The same problem occurs when Job history belongs directly to the module. On main (7b7cdf1), _refusal_for() in netbox_scripts/migration/cleanup.py returns these permanent history refusals before checking live_script_jobs. A retained module does not keep the migration open.
Related: #4 covers Verify reporting, and #14 covers cleanup recovery advice.
- Ngôn ngữ chính
- Python
- Star
- 8
- Fork
- 0
- Merge trung bình
- 11 giờ 35 phút
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của netbox-community/netbox-scripts
-
app: scripts severity: medium status: backlog type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netbox-community/netbox-scripts#83 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts status: backlog type: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
netbox-community/netbox-scripts#80 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts severity: medium status: backlog type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
netbox-community/netbox-scripts#79 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts severity: medium status: backlog type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
netbox-community/netbox-scripts#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app: scripts severity: low status: backlog type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
netbox-community/netbox-scripts#76 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của netbox-community/netbox-scripts
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
aws-samples/sample-per-model-bedrock#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
awslabs/visual-asset-management-system#937 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
project-codeflare/codeflare-sdk#1195 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bump numpy dependencyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pandas-dev/pandas-stubs#2051 ·
Maintainer thường phản hồi trong vòng 1 ngày