Closed pleonard212 closed 6 years ago
Reading through this app, it appears this is set by db.workflows.findOne({'name': 'transcribe'}).generates_subjects_after
, currently set to 1.
This was correctly set via the configuration for the transcribe step.
I'm remembering now we only needed to change retirement from mark because we had multiple subjects that belong to a subject set--we didn't need to touch the transcription retirement logic.
This seems to be resolved simply via mongo:
db.workflows.update({'name': 'transcribe'}, {$set: {'generates_subjects_after': 3}})
> db.workflows.findOne({'name': 'transcribe'}).generates_subjects_after
3
To unretire everyone, we can use:
db.subject_set_first_pages.update({}, {$set: {'retired_from_mark': 0, 'retired_from_transcribe': 0}}, {multi: true})
db.subject_sets.update({}, {$set: {'retired_from_mark': 0, 'retired_from_transcribe': 0}}, {multi: true})
@pleonard212 @lindsaymking This should be all set. If you find an obscure record with no marks or transcriptions and add a new mark to it, then transcribe that record 3 times, then try to transcribe the record again, you should find your new mark no longer appears to be transcribed.
Thanks!
Put retired plays back to work