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

Declining a study invite calls a route that doesn't exist

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

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
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, frontend

Hướng nghiên cứu

Start at application/user-client/src/components/StudyInvites.tsx:46 and trace the /invites/{id}/decline request through apiClient and the invite controllers. Check how invite statuses are handled; the issue offers either a matching decline handler and status or removing the button. Done means the UI no longer reports a decline when the invite remains open.

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

Mô tả

backend bug user-client

The Decline button on a participant's study invites (application/user-client/src/components/StudyInvites.tsx:46) posts to /invites/{id}/decline, which no controller defines, so the request gets a 404. The UI shows "Declined" anyway, because apiClient's error interceptor resolves failed requests instead of rejecting them, so the invite stays open while the participant thinks they've declined it.

I'd either add a decline handler with a matching invite status, or remove the button until there is one.

Ngôn ngữ chính
TypeScript
Star
4
Fork
0
Merge trung bình
14 giờ 50 phút
Pull request đã merge (30 ngày)
5

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 Garvan-Data-Science-Platform/ctrl

Tất cả issue của Garvan-Data-Science-Platform/ctrl

Issue tương tự

Thêm issue về TypeScript

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.