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

未关闭 适合新手
#7,303 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@KoushikSagarr 已经在做这个了。

开始于 2026年11月2日。

  • #7354 来自 @KoushikSagarr —— 未关闭

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, jquery, rails
领域
frontend, web-dev

调研方向

从正文中提到的两个文件开始:app/javascript/src/all_casa_admin/tables.js 和 app/javascript/datatable.js,并确认在 app/views 中搜索 admin-list 和 organization-list 的结果为空。删除 app/javascript/all_casa_admin.js 中的 require 以及 app/javascript/application.js 中的 import,然后运行 npm run test 和 bundle exec rspec spec/system/all_casa_admins。当两个文件都已删除、spec 全部通过,并且管理员仪表板和组织页面加载时控制台没有错误,即为完成。

由索引模型根据 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 小时
30 天内合并 PR
63

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rubyforgood/casa 的其他 Issue

查看 rubyforgood/casa 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。