Migration activation Job log ends some outcomes with two periods

Đang mở Phù hợp với người mới
#164 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả 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

Bắt đầu bằng cách tìm script Activate Projects và đoạn mã định dạng từng kết quả kích hoạt trong nhật ký Job. Kiểm tra dấu câu của nội dung kết quả, sau đó chạy các bài kiểm thử kích hoạt liên quan hoặc tái hiện trường hợp thiếu bản sửa đổi đã lưu được mô tả trong issue. Công việc hoàn tất khi mỗi kết quả được ghi nhật ký đều kết thúc bằng một dấu chấm, trong khi các kết quả kích hoạt và kết quả migration được ghi lại vẫn không thay đổi.

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

Mô tả

app: scripts severity: low status: backlog type: bug
Plugin Version

v0.0.1

NetBox Version

v4.7.5

Python Version

3.12

Steps to Reproduce
  1. Under Scripts > Migration, stage and validate the built-in Custom Scripts, then complete Enter Cutover.
  2. In a test environment, make a staged Project's stored revision unavailable after validation, for example by removing its stored files from the configured storage backend.
  3. Run Activate Projects and inspect the Job log.
Expected Behavior

Each Project's activation outcome ends with a single period, including when the error message already has one.

For example:

Project deploy could not be activated: The stored revision a1b2c3d4e5f6 is missing.

Observed Behavior

The Job log adds another period to activation errors that already end with one:

Project deploy could not be activated: The stored revision a1b2c3d4e5f6 is missing..

The issue comes from the Job-log message appending a period to the recorded outcome without checking its existing punctuation.

This affects only the Job-log formatting, not the activation result or the recorded migration outcome.

The example uses the revised storage error wording from #150. The same issue exists with the current wording on main.

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

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.