Closed jennifer-richards closed 11 months ago
This is likely damage to the data from the rogue code running during migration:
>>> Counter(RelatedDocument.objects.filter(relationship_id='obs').values_list('source__type_id','target__type_id'))
Counter({('rfc', 'rfc'): 1489, ('rfc', 'draft'): 1})
Yes, that one RelatedDocument object is bogus - it was built from a DocAlias pk and not a Document pk. The real obs relationship from the affected rfc is already in place and deleting the bogus relation is all that is needed, I will do in the admin.
For the sake of documentation:
>>> RelatedDocument.objects.filter(relationship_id='obs',target__type_id='draft')
<QuerySet [<RelatedDocument: rfc9386 obsoletes draft-ohba-pana-pemk>]>
>>> RelatedDocument.objects.filter(relationship_id='obs',target__type_id='draft').get().target.became_rfc()
<Document: rfc5807>
>>> RelatedDocument.objects.filter(relationship_id='obs',source__name='rfc9386')
<QuerySet [<RelatedDocument: rfc9386 obsoletes rfc6036>, <RelatedDocument: rfc9386 obsoletes draft-ohba-pana-pemk>]>
RelatedDocument 1296946 removed using the admin.
Describe the issue
After deploying v12.0.0, the hourly cron scripts fail with a traceback including
Code of Conduct