πŸ‡ΊπŸ‡ΈUnited States @dabblela

Account created on 20 July 2008, over 16 years ago
#

Merge Requests

Recent comments

πŸ‡ΊπŸ‡ΈUnited States dabblela

Test failures appear to be unrelated to this MR

πŸ‡ΊπŸ‡ΈUnited States dabblela

Updated the comment on the translation controller. Thanks for the review @catch

πŸ‡ΊπŸ‡ΈUnited States dabblela

dabblela β†’ made their first commit to this issue’s fork.

πŸ‡ΊπŸ‡ΈUnited States dabblela

Thanks @quietone and @Spokje for the reviews. I've updated the patch to address the feedback.

πŸ‡ΊπŸ‡ΈUnited States dabblela

Agreed with @fathima.asmat, this definitely needs a way to update the default revision of a translation that has never been published. I think it can be done with this code, but I'm a little wary of potentially looping through every revision of a node so I took a different approach.

I was able to fix the issue here by:
1) applying the patch from πŸ› New translations for moderated nodes are not created in the initial workflow state Needs work
2) setting the default moderation state to "Default moderation state" and
3) creating a new state called "Pre-published" with "Default revision" enabled

This approach has worked better in testing with modules that use `hasTranslationChanges` (eg, paragraphs), I think because the default revision field is set earlier in the entity save process.

πŸ‡ΊπŸ‡ΈUnited States dabblela

@catch Thanks for the review. I think the only question about loading the entity is whether to load the translation from the default revision, or to load latest translation affected revision for each language. As far as I can tell, the way the patch is currently written saves data to the revision table in the same way as creating translations without the patch.

πŸ‡ΊπŸ‡ΈUnited States dabblela

It looks like this is the same issue as πŸ› Creating a new translation may delete translations with drafts Fixed . That issue also has a patch with tests, but a different fix. I'm not really sure what the best approach is, I think the patch there is a little closer to how translation currently works.

I don't believe πŸ› Installing a module causes translations to be overwritten Fixed is related, that looks more like interface translation than content translation.

πŸ‡ΊπŸ‡ΈUnited States dabblela

Fixing incompatible method declaration in TableWidget in #187

πŸ‡ΊπŸ‡ΈUnited States dabblela

Attaching a patch with the tests and an attempted fix.

πŸ‡ΊπŸ‡ΈUnited States dabblela

@tim.plunkett The bug has different effects depending on if a new translation is published vs if the new translation is a draft so I tried to cover both cases with a test.

@joseph.olstad I took a look but I don't think these two are related. As far as I can tell this is specifically from the way the "add translation" form prepares the node object for saving.

Production build 0.71.5 2024