Need a CLI alternative to execute initNonNativeTables

未关闭
#1,465 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
perl
领域
cli, database

调研方向

The table creation lives in initNonNativeTables in WeBWorK/Utils/CourseManagement.pm and currently runs only when the admin course is first accessed in a browser. Read that subroutine and find where the admin-course path calls it, then look for existing command-line scripts in bin/ that manage courses. Done means a command-line entry point creates the depths, locations and location_addresses tables without a browser, and the change is confirmed by running it against a fresh database. The design choice of where that entry point lives is still open.

由索引模型根据 Issue 内容生成。

描述

I've automated the installation of Georgia Tech's WeBWork on AWS using Terraform and Ansible. We're re-deploying it from scratch each semester to keep things clean with respect to content, patching, and user access.

All authentication happens via the Canvas LTI, and courses are added via command line. With this setup, the admin course and non-LTI-based logins are not necessary. Except...

Unfortunately, the "depths", "locations", and "location_addresses" tables are created on the first access of the admin course.

WeBWorK needs an alternative way to properly initialize these tables without browser interaction. As it stands now, I have to...

  1. Set up the admin course when I don't need it
  2. Log into a server and disable external-only authentication
  3. Log into the admin course via a browser to trigger the table creation
  4. Re-enable external-only authentication

This is not at all compatible with an automated deployment! I believe the tables are created in the initNonNativeTables subroutine of WeBWorK/Utils/CourseManagement.pm. Unfortunately, I'm not fluent enough in PERL or WeBWorK design/implementation to implement such a tool.

主要语言
Perl
星标
164
派生
167
平均合并
6 天 7 小时
30 天内合并 PR
27

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

openwebwork/webwork2 的其他 Issue

查看 openwebwork/webwork2 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 发到你的邮箱

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