Support from Acquia helps fund testing for Drupal Acquia logo

Comments

e0ipso created an issue. See original summary.

dawehner’s picture

Assigned: Unassigned » dawehner

Working on it

dawehner’s picture

Needed to stop, will continue later. Maybe we though better patch core to support UUIDs in its entity_reference_item

e0ipso’s picture

e0ipso’s picture

Priority: Normal » Critical
e0ipso’s picture

Assigned: dawehner » e0ipso

Stealing this from @dawehner.

e0ipso’s picture

e0ipso’s picture

Added fixing patch.

Even if this comes green we need error handling for situations where the user inputs unexisting UUIDs.

Status: Needs review » Needs work

The last submitted patch, 8: 2759707--support-denormalization-with-uuid--7.patch, failed testing.

The last submitted patch, 7: 2759707--support-denormalization-with-uuid--7--failing.patch, failed testing.

The last submitted patch, 8: 2759707--support-denormalization-with-uuid--7.patch, failed testing.

The last submitted patch, 7: 2759707--support-denormalization-with-uuid--7--failing.patch, failed testing.

The last submitted patch, 7: 2759707--support-denormalization-with-uuid--7--failing.patch, failed testing.

The last submitted patch, 7: 2759707--support-denormalization-with-uuid--7--failing.patch, failed testing.

e0ipso’s picture

Forgotten annotation in abstract class.

e0ipso’s picture

Since I made it an abstract class, I should remove the group annotation.

The last submitted patch, 15: 2759707--support-denormalization-with-uuid--15.patch, failed testing.

The last submitted patch, 15: 2759707--support-denormalization-with-uuid--15.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 16: 2759707--support-denormalization-with-uuid--16.patch, failed testing.

The last submitted patch, 16: 2759707--support-denormalization-with-uuid--16.patch, failed testing.

e0ipso’s picture

Status: Needs work » Needs review

The last submitted patch, 3: 2759707-3.patch, failed testing.

The last submitted patch, 3: 2759707-3.patch, failed testing.

e0ipso’s picture

  • dawehner committed 24e04df on 8.x-1.x authored by e0ipso
    Issue #2759707 by e0ipso, dawehner: [FEATURE] Support denormalization...
dawehner’s picture

Status: Needs review » Fixed

This looks like a great feature and implementation, filters, maps etc. :)
Conceptually it'd be great to document this entire new code.

+++ b/src/Normalizer/DocumentRootNormalizer.php
@@ -74,9 +75,31 @@ class DocumentRootNormalizer extends NormalizerBase implements DenormalizerInter
+        list($entity_type_id,) = explode('--', $relationship['data'][0]['type']);

I really like using strtok for this specific usecase

e0ipso’s picture

@dawehner thank you for the review.

Conceptually it'd be great to document this entire new code.

Do you mean inline code documentation or more like drupal.org/documentation docs?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.