-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change queue job fails on missing content file #70
Comments
The search page reconstructs the filename using getAnnotationFileNameFromItem(item). Made from doc & img path in the annotation. That method is wrong. It should be the same as the one used by the annotator. Made from DTS member id and the image file name in the TEI.
Answer 2At some point we switched the reference to the text from a link to the sicily domain to the DTS request path for that document. The old reference pattern and the DTS object ID share the same substring. Which makes the wrong method work with older annotations. $ grep -rin 'source":' annotations/ | grep -v 'IIIF'
annotations/http-sicily-classics-ox-ac-uk-inscription-isic000176-isic000176-jpg.json:51: "source": "http://sicily.classics.ox.ac.uk/inscription/ISic000176.xml",
annotations/http-sicily-classics-ox-ac-uk-inscription-isic000186-isic000186-jpg.json:61: "source": "http://sicily.classics.ox.ac.uk/inscription/ISic000186.xml",
annotations/http-sicily-classics-ox-ac-uk-inscription-isic020300-isic020300-jpg.json:36: "source": "https://crossreads.web.ox.ac.uk/api/dts/documents?id=ISic020300",
annotations/http-sicily-classics-ox-ac-uk-inscription-isic020300-isic020300-jpg.json:108: "source": "https://crossreads.web.ox.ac.uk/api/dts/documents?id=ISic020300", Answer 3See fix below, I've made the change queue script tolerant to invalid references. So no need to update the change queue itself. Answer 1Resolution for that is still pending. |
…ived valid name from it. gh-70
@geoffroy-noel-ddh Interesting, the two files 1447 and 1473 were annotated a while back. Are they the only files that throw up this issue? The majority of the archaic texts were done at the same time. Let me know if you need me to test anything. |
Hi Simona, the change queue (i.e. your bulk tag edits from the search page) has been successfully processed now. And the error shouldn't occur any more as I have made the automated script tolerant to invalid references. I'll soon fix the search so it doesn't produce those invalid references any more. (Although invalid, they uniquely refer to the right inscription & annotation, but not the exact correct format for the file name; so no risk of tags going to the wrong place). If you want to help, just check that the change queue message says 'no change(s) pending' (see below) at least once a day and the tags you've applied are indeed reflected in the annotator (just check a few). If you notice anything wrong, please let me know. Thank you. |
The change-queue job running on github is failing due to a missing file:
11 out of 36 changes in the queue have a different format for the filename. With -api-dts in it. Why?
That annotation exists in this file instead:
Annotation in the correct file:
It looks like the reference to the file in the change queue was incorrectly constructed by the search page from the textual source, rather than the image source. That's most likely due to the wrong assumption that the second target is always the image?
The text was updated successfully, but these errors were encountered: