Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Issue/motivation
RequestTranslationSubscriber
tries to create a url for job items (which contain only locale strings, not entities) but fails because TranslationJobToUrl::convert()
can't load an entity by default
entity type. That's why we have items in context_upload_queue
which will fail on cron runs and will write error log messages into dblog.
Possible solution
Seems like RequestTranslationSubscriber
should check for $url
to be non-empty before attempting to create the item.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-2-4.txt | 1.19 KB | Loparev |
#4 | tmgmt_smartling-2897169-4.patch | 1.55 KB | Loparev |
#2 | tmgmt_smartling-2897169-2.patch | 912 bytes | Loparev |
Comments
Comment #2
Loparev CreditAttribution: Loparev commentedComment #3
Loparev CreditAttribution: Loparev commentedComment #4
Loparev CreditAttribution: Loparev commentedAdded alter hook. For now it's possible to disable/alter context creation for a content from a given job item.
Comment #5
Soul88I don't see why would we need another hook to solve the issue from the initial post. Could you please elaborate more on that?
Comment #6
Loparev CreditAttribution: Loparev commented@Soul88 it's just an opportunity to alter context url or disable context at all
Comment #7
Soul88ok, looks good then. Thank you.
Comment #10
Loparev CreditAttribution: Loparev commented