Need a CLI alternative to execute initNonNativeTables

Aperta
#1,465 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
perl
Ambito
cli, database

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Perl
Stelle
164
Fork
167
Merge medio
6g 7h
PR unite (30g)
27

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwebwork/webwork2

Tutte le issue di openwebwork/webwork2

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.