Migration from pre summer version leads courses and course templates with out title

Aperta
#361 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
backend, database

Direzione di ricerca

Start by reviewing the migration history and the Course and CourseTemplate records involved in the pre-summer migration. Reproduce the console update against affected courses, then verify that both records receive titles without overwriting existing values and that course updates no longer fail.

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

Descrizione

bug easy important tmc-legacy-course

and thus fails all updates to course.

The fix can be easily applied via console:

Course.all.each do |course|
    course.course_template.update_attributes(title: course.name.humanize)
    course.update_attributes(title: course.name.humanize) 
end

We should either add a new migration just to update these fields and make sure not to rewrite these or just find out and fix the migration which failed to do it...

Lingua principale
Ruby
Stelle
51
Fork
42
Merge medio
1h 27m
PR unite (30g)
1

Guida per i contributori

Apri la 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 testmycode/tmc-server

Tutte le issue di testmycode/tmc-server

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.