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

Open Beginner friendly
#7,303 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@KoushikSagarr is already working on this.

Since Nov 2, 2026.

  • #7354 by @KoushikSagarr — open

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, jquery, rails
Domain
frontend, web-dev

Research direction

Start with the two files named in the body: app/javascript/src/all_casa_admin/tables.js and app/javascript/datatable.js, and confirm the grep for admin-list and organization-list in app/views comes back empty. Remove the require in app/javascript/all_casa_admin.js and the import in app/javascript/application.js, then run npm run test and bundle exec rspec spec/system/all_casa_admins. Done when both files are gone, the specs pass, and the admin dashboard and organization pages load without console errors.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Ruby
Stars
384
Forks
558
Avg merge
1d 7h
Merged PRs (30d)
63

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rubyforgood/casa

All issues in rubyforgood/casa

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.