Upgrade datatables.net-dt from 1.13 to 3.x and check every table (#7248)
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, jquery, rails
- Lĩnh vực
- frontend
Hướng nghiên cứu
Read the DataTables 2.0 and 3.0 upgrade notes, then inspect app/javascript/datatable.js, app/javascript/src/all_casa_admin/tables.js, app/javascript/src/emancipations.js, and their import in app/javascript/application.js. Run bin/dev with the README seed logins and check sorting, search, pagination, and styling on each table; rerun the named system spec on main to assess flakiness. Done means the upgrade works across the tables and the PR includes before-and-after screenshots.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Dependabot's #7248 bumps datatables.net-dt from 1.13.11 to 3.1.4, skipping a whole major version (2.x). Its CI failed docker with one system spec:
rspec ./spec/system/volunteers/edit_spec.rb:155 # saves the user as inactive, but only if the admin confirms
Unable to find modal dialog
That spec may just be flaky, since it isn't obviously related to tables. But a jump across two majors needs a real check of every table in the app, not only green CI.
Where DataTables is used
app/javascript/datatable.js:$(selector).DataTable({ searching: true, order: [[0, 'asc']] })app/javascript/src/all_casa_admin/tables.js: admin and organization lists on the All CASA admin pagesapp/javascript/src/emancipations.js:table#all-case-emancipations- Imported from
app/javascript/application.js; styles come from the-dtpackage
Tasks
- Read the DataTables 2.0 and 3.0 upgrade notes. Check how the jQuery plugin is imported and initialised, and whether the options we pass changed.
- Check each table above in the browser (
bin/dev, seed logins in the README): sorting, search box, pagination, styling - Rerun the
volunteers/edit_spec.rb:155system spec onmaina few times. If it fails there too, it's flaky: file it per our flaky-test process instead of blocking this. - Open a PR with the bump plus any code changes, with before/after screenshots of each table
- Longer term (separate issue): the redesign is moving tables to Tailwind and Stimulus, so check whether these tables still need DataTables at all
Difficulty: intermediate.
- Ngôn ngữ chính
- Ruby
- Star
- 382
- Fork
- 547
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 46
Chuẩn bị môi trường
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.
- Có Dockerfile hoặc 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 rubyforgood/casa
-
Remove leftover Cloud66 custom_web process from ProcfileCó thể đã có người làm @ShahadatTest đã nhận 1 ngày trước. Đang mởDifficulty: Easy Good First Issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
rubyforgood/casa#7330 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove the bin/bundle binstub (Heroku warns it can break Bundler on deploy)Có thể đã có người làm @KoushikSagarr đã nhận 1 ngày trước. Đang mởdependencies Difficulty: Easy Good First Issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
rubyforgood/casa#7325 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Difficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rubyforgood/casa#7311 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Difficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rubyforgood/casa#7310 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Difficulty: Easy Good First Issue Help Wanted javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rubyforgood/casa#7309 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rubyforgood/casa
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
TheOdinProject/curriculum#31512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/web interface
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/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 78/100
ruby-grape/grape-swagger#1014 ·
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 85/100
rubys/roundhouse#1757 ·
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
shakacode/react-on-rails-demo-flagship#102 ·
Maintainer thường phản hồi trong vòng 1 ngày