Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This issue is to discuss the segmentation semantics. I think we can't use IDs, because they need to be unique, and since we have the source and translation editors, they will get duplicated.
I would suggest using data-id or something similar. What are your suggestions?
Comment | File | Size | Author |
---|---|---|---|
#10 | segmentation_semantics-2742525-10.patch | 32.26 KB | edurenye |
Comments
Comment #2
sasanikolic CreditAttribution: sasanikolic as a volunteer commentedComment #3
sasanikolic CreditAttribution: sasanikolic as a volunteer commentedComment #4
sasanikolic CreditAttribution: sasanikolic commentedComment #5
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedWe originally discussed about using a combination of job Item id, data key, and segment id. As this let us show the exact place where this is used in Drupal. But for the import this gives us a problem as we do not have the Job Item id, one option could be to just left this id empty in case a segment is imported.
Comment #6
edurenye CreditAttribution: edurenye commentedI think the solution here is to use the UUID of the segment.
Comment #7
edurenye CreditAttribution: edurenye commentedBut this ID of the segment maybe should identify the translation, so the same for a source and target, well this leads to a problem in the export, as we have a segment that translates to each language so all the translations from on segment should have the same ID, then probably the best solution is to use the UUID of the source segment as ID.
Comment #8
sasanikolic CreditAttribution: sasanikolic commentedThere was some discussion to replace the ids with the hash of the segments content. More info should be provided by Miro.
The uniqueness of the ids is not a problem, since they are in iframes. Each page/text inside of an iframe is totally self-contained and unique. Check this discussion.
Comment #9
edurenye CreditAttribution: edurenye commentedAs I told to Miro we have a problem with the hash if the content of a segment appears twice in a data item.
Comment #10
edurenye CreditAttribution: edurenye commentedIn this patch there are all the changes needed after #2737131: Add methods in JobItem to get segmented data, also started playing with the ID's right now there is a strange failing test.
Comment #11
edurenye CreditAttribution: edurenye commentedThe link for simplytest.me https://simplytest.me/project/2715815/8.x-1.x?add[]=tmgmt&patch[]=https://www.drupal.org/files/issues/segmentation_semantics-2742525-10.patch
Comment #12
edurenye CreditAttribution: edurenye commentedI committed this and some more changes, but I'll continue here with the discussion about the ID's.