I noticed this when working with deploying an entity using UUID + Deploy. This was also with the revisions patch recently committed and entity translation. Essentially I couldn't get metatags to deploy successfully. Normally only the source language would deploy with no alternative languages working.
I traced this to when deployment happens the metatags array is sent over differently then metatag_metatags_save expects in that it expects to only perform a single save vs one for each defined language.
I have attached a patch that will no doubt need some improvements but does solve the problem I have been experiencing.
Comment | File | Size | Author |
---|---|---|---|
#20 | metatags_deploy_support-2166769-20.patch | 2.18 KB | sylus |
Comments
Comment #1
sylus CreditAttribution: sylus commentedComment #2
sylus CreditAttribution: sylus commentedComment #3
sylus CreditAttribution: sylus commentedComment #4
sylus CreditAttribution: sylus commentedComment #5
DamienMcKennaWhere does $new_language come from?
Comment #6
sylus CreditAttribution: sylus commentedGood catch!
This might mean I won't need that extra logic so attaching an updated and simpler patch.
Comment #7
sylus CreditAttribution: sylus commentedComment #8
sylus CreditAttribution: sylus commentedUpdating for the extremely awesome beta8 release. ^_^
Comment #9
DamienMcKennaThanks for the reroll. What version of Deploy did you test this with, alpha2 or the dev release?
Comment #10
DamienMcKennaI'm inclined to suggest the extra code should go right into metatag_entity_insert..
Comment #11
sylus CreditAttribution: sylus commentedHey! ^_^
Yeah using latest dev with the following patches:
I am also using the following: Make File for my deployment workflow as a whole but shouldn't be relevant I don't think.
We have tested this patch and deployment of metatag seems to work great now based on our testing but would definitely like someone else to confirm solves issue.
Comment #12
sylus CreditAttribution: sylus commentedUpdating patch.
Comment #13
sylus CreditAttribution: sylus commentedUpdated patch.
Comment #14
sylus CreditAttribution: sylus commentedFinal patch that seems to be working for deploy and checks for services on the destination side. Note the addition in hook_entity_update.
Comment #16
sylus CreditAttribution: sylus commentedWhoops bad syntax.
Comment #17
sylus CreditAttribution: sylus commentedOne more time...
Comment #18
sylus CreditAttribution: sylus commentedComment #19
SebCorbin CreditAttribution: SebCorbin commentedI'm encountering an issue with Entity Translation and Metatags and I'm not sure if this is related: when reverting a revision with translations, the metatags of translation don't get reverted.
Please tell me if this issue id really about that so I can try to test/review/modify the patch
Comment #20
sylus CreditAttribution: sylus commentedI don't think this patch will resolve your issue but likely it has been solved in a later version of metatags.
I have attached an updated patch to latest dev post v1.4.
Comment #21
sylus CreditAttribution: sylus commentedHmm it actually looks like this patch isn't needed at all anymore. Deploy is working out of the gate so something got fixed and improved in later metatag releases.
This makes me a very happy camper. Thanks so much for all of the work!
Comment #22
DamienMcKennaI'm very happy to hear it :-)