Delete dead emancipations.js (DataTable on a table that no longer exists)

Đang mở Phù hợp với người mới
#7,302 1 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

@KoushikSagarr đang làm issue này rồi.

Từ ngày 2/11/2026.

  • #7336 của @KoushikSagarr — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
88/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, jquery, rails, ruby
Lĩnh vực
frontend

Hướng nghiên cứu

Đoạn mã thừa là app/javascript/src/emancipations.js, file này khởi tạo một DataTable của jQuery trên table#all-case-emancipations; comment ở đầu app/views/emancipation_checklists/index.html.erb xác nhận id đó không còn tồn tại. Hãy xóa file và dòng require('./src/emancipations') trong app/javascript/application.js. Hoàn thành khi /emancipation_checklists vẫn tải được với tài khoản [email protected] và npm run test chạy thành công.

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

Mô tả

Difficulty: Easy Good First Issue Help Wanted javascript

What

app/javascript/src/emancipations.js starts a jQuery DataTable on table#all-case-emancipations. The redesigned app/views/emancipation_checklists/index.html.erb no longer renders that id (see the comment at the top of the view), so the script does nothing.

Checklist

  • Delete app/javascript/src/emancipations.js
  • Remove its require('./src/emancipations') line from app/javascript/application.js
  • Visit /emancipation_checklists as [email protected] and confirm the page still works
  • npm run test passes

Before you start

  • Comment here to be assigned. Setup is bin/setup, then bin/dev. Logins are in the README.
  • JS tests: npm run test. Lint: bin/lint.
  • Part of #7301 (removing jQuery). Keep this PR to just this file.
Ngôn ngữ chính
Ruby
Star
384
Fork
558
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
63

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 rubyforgood/casa

Tất cả issue của rubyforgood/casa

Issue tương tự

Thêm issue về Ruby

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.