Entity DataProducers throw error for missing translations#1307
Entity DataProducers throw error for missing translations#1307bachy wants to merge 1 commit intodrupal-graphql:8.x-4.xfrom
Conversation
|
Hi Bachy, I understand you want to get this fixed, unfortunately we have to consider some more use-cases and the discussion in #1176 was still open. Perhaps you can help move that discussion along with your own insights. To recap the problem for anyone coming to this issue for the first time: Currently the Entity* data producers will throw an error in case of a missing translation, which is obviously not ideal. However, the debate is whether we should instead 1) fall back to the untranslated entity, 2) return NULL, 3) return the default language for the entity. The implementation that's in this PR at the moment is to do 1. The issue I see with this approach is that it's not possible for an API client to know whether they actually got the translation or whether they got the original entity. Issues would arise when a client tries to modify this and resubmit the data as a new translation. For API purposes I believe returning In #1176 you asked:
I would be open to comitting a quick fix, but then I would prefer that to be "return |
2607a0b to
4b7e7b0
Compare
bugfix removed patch
#1176 again