Delete dead All-CASA-admin DataTables scripts (tables.js, datatable.js)

オープン 初心者向け
#7,303 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@KoushikSagarr がすでに取り組んでいます。

2026年11月2日 から。

  • #7354 @KoushikSagarr による — オープン

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, jquery, rails
領域
frontend, web-dev

調査の方向性

本文で挙げられている2つのファイル、app/javascript/src/all_casa_admin/tables.js と app/javascript/datatable.js から始め、app/views 内の admin-list および organization-list の grep 結果が空であることを確認してください。app/javascript/all_casa_admin.js の require と app/javascript/application.js の import を削除し、npm run test と bundle exec rspec spec/system/all_casa_admins を実行します。両方のファイルが削除され、スペックがパスし、管理ダッシュボードと組織ページがコンソールエラーなしで読み込まれれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Difficulty: Easy Good First Issue Help Wanted javascript

What

app/javascript/src/all_casa_admin/tables.js and app/javascript/datatable.js start DataTables on table.admin-list and table.organization-list. No view renders those classes any more (grep -rn "admin-list\|organization-list" app/views returns nothing), so both files are dead.

Checklist

  • Delete app/javascript/src/all_casa_admin/tables.js and app/javascript/datatable.js
  • Remove require('./src/all_casa_admin/tables') from app/javascript/all_casa_admin.js, and import './datatable.js' from app/javascript/application.js
  • Sign in at /all_casa_admins/sign_in as [email protected], click through the dashboard and the organization pages, and check the browser console for errors
  • bundle exec rspec spec/system/all_casa_admins 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.
主要言語
Ruby
スター
384
フォーク
558
平均マージ
1日 7時間
マージ済み PR(30日)
63

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rubyforgood/casa のほかの issue

rubyforgood/casa の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。