Canceling a Piped upgrade leaves the previous Piped selected

Đang mở Phù hợp với người mới
#7,620 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 2 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
83/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ệ
react, typescript
Lĩnh vực
frontend, testing

Hướng nghiên cứu

Bắt đầu với web/src/components/settings-page/piped/components/upgrade-dialog/index.tsx, đặc biệt là trình xử lý đóng được liên kết và nút Cancel, sau đó kiểm tra bài kiểm thử Jest của SettingsPipedPage được đề cập trong issue. Tái hiện các bước với bộ lọc Active Status và kiểm tra những ID Piped nào được gửi đến API cập nhật giả lập. Công việc hoàn tất khi thao tác hủy xóa lựa chọn và khi mở lại, cần chọn lại trước khi Upgrade được bật.

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

Mô tả

What happened

Clicking Cancel in the Piped upgrade dialog keeps the checked Piped IDs. If the Active Status filter changes before the dialog reopens, a previously selected Piped can disappear from the table and still be included in the next upgrade request.

The footer's Cancel button bypasses handleClose, so upgradePipedIds survives when the parent hides the dialog. Close handler · Cancel button

What you expected to happen

Cancel clears the selected Pipeds. Reopening the dialog requires a new selection before Upgrade is enabled.

How to reproduce it

  1. In Settings → Piped, open Upgrade with an enabled Piped A and a disabled Piped B in the project.
  2. Check Piped A and click Cancel.
  3. Set the Active Status filter to Disabled, reopen Upgrade, and choose a version.
  4. The visible checkbox for Piped B is clear, but Upgrade is enabled.

A local Jest test ran these steps on SettingsPipedPage. Clicking Upgrade passed pipedIdsList: ["piped-a"] to the mocked update API.

Environment

Web console source at 87c6da5e7 on master.

Ngôn ngữ chính
Go
Star
1.4k
Fork
391
Merge trung bình
4 ngày 1 giờ
Pull request đã merge (30 ngày)
58

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 pipe-cd/pipecd

Tất cả issue của pipe-cd/pipecd

Issue tương tự

Thêm issue về Go

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.