Now that we have serializer support for JSON and XML. The last one it makes sense to implement is YAML. Then we have the most common serialization formats out of the box. Plus, as we already have the YAML component, this is a relatively small amount of code.

This could open out some (possibly crazy) possibilities using rest web services with configuration too.

Here is an initial patch, we have to create the encoder from scratch as symfony doesn't have one, but this could be patched upstream later if possible?

CommentFileSizeAuthor
#76 interdiff-1897612-66-mr-3399.txt2.71 KBBhanu951
#71 1897612-71.patch3.97 KBAkhil Yadav
#70 1897612-nr-bot.txt4.53 KBneeds-review-queue-bot
#66 interdiff_64-66.txt826 bytesravi.shankar
#66 1897612-66.patch8.41 KBravi.shankar
#64 interdiff-1897612-63-64.txt599 bytesyogeshmpawar
#64 1897612-64.patch8.42 KByogeshmpawar
#63 interdiff_61-63.txt495 bytesSuresh Prabhu Parkala
#63 1897612-63.patch8.43 KBSuresh Prabhu Parkala
#61 1897612-61.patch8.37 KBranjith_kumar_k_u
#53 interdiff_51-53.txt885 bytesshobhit_juyal
#53 1897612-53.patch8.39 KBshobhit_juyal
#51 1897612-51.patch7.35 KBshobhit_juyal
#50 1897612-50.patch6.54 KBshobhit_juyal
#50 interdiff_49-50.txt1.92 KBshobhit_juyal
#49 interdiff_45-49.txt630 bytesshobhit_juyal
#49 1897612-49.patch6.63 KBshobhit_juyal
#46 interdiff-1897612-44-45.txt1016 bytesmanojapare
#46 1897612-45.patch6.61 KBmanojapare
#44 interdiff-40-44.txt10.93 KBmanojapare
#44 1897612-44.patch6.6 KBmanojapare
#40 1897612-40.patch6.14 KBmanojapare
#40 1897612-15-40.txt741 bytesmanojapare
#15 1897612-15.patch6.15 KBdamiankloip
#15 interdiff.txt2.15 KBdamiankloip
#12 1897612-12.patch6.2 KBdamiankloip
#12 interdiff.txt697 bytesdamiankloip
#8 1897612-9.patch6.2 KBdamiankloip
#5 1897612-5.patch6.13 KBdamiankloip
#5 interdiff.txt1.01 KBdamiankloip
#4 1897612-3.patch6.33 KBdamiankloip
#4 interdiff.txt546 bytesdamiankloip
#2 1897612-2.patch6.36 KBdamiankloip
#1 1897612-1.patch7.19 KBdamiankloip
#1 interdiff.txt1.25 KBdamiankloip
d8.yaml-encoder.patch5.11 KBdamiankloip

Issue fork drupal-1897612

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

FileSize
1.25 KB
7.19 KB

Added some quick tests too. Not sure if we want to actually test against a yaml string?

damiankloip’s picture

FileSize
6.36 KB

Sorry, this patch.

dawehner’s picture

This is really looking great so far.

PS: Do we still need the needs tests tag?

+++ b/core/lib/Drupal/Core/Serialization/SerializerFormatSubscriber.phpundefined
@@ -0,0 +1,37 @@
+   * @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event

+++ b/core/lib/Drupal/Core/Serialization/YamlEncoder.phpundefined
@@ -0,0 +1,100 @@
+   * @var Symfony\Component\Yaml\Dumper
...
+   * @var Symfony\Component\Yaml\Parser

Missing starting "\"

+++ b/core/lib/Drupal/Core/Serialization/SerializerFormatSubscriber.phpundefined
@@ -0,0 +1,37 @@
+    $event->getRequest()->setFormat('yaml', array('application/x-yaml', 'text/yaml'));

Maybe we should explain why application/x-yaml or text/yaml is used, I guess because of http://stackoverflow.com/questions/332129/yaml-mime-type

+++ b/core/lib/Drupal/Core/Serialization/YamlEncoder.phpundefined
@@ -0,0 +1,100 @@
+      // Set Yaml\Dumper's default indentation for nested nodes/collections to
+      // 2 spaces for consistency with Drupal coding standards.

Hey that comment is stolen :)

damiankloip’s picture

FileSize
546 bytes
6.33 KB

I'm not sure we need the extend the serializerAwareEncoder.

damiankloip’s picture

FileSize
1.01 KB
6.13 KB

Sorry, without the use for that too. Also just realised I x-posted the last patch. So thanks! I've addressed your comments too, except the mime type one: Any good suggestions? Also, do you think we should add all the possibilities? seems a bit overkill. I can if you want though.

dawehner’s picture

+++ b/core/lib/Drupal/Core/Serialization/YamlEncoder.phpundefined
@@ -75,8 +75,6 @@ public function supportsDecoding($format) {
-      // Set Yaml\Dumper's default indentation for nested nodes/collections to
-      // 2 spaces for consistency with Drupal coding standards.

Oh to be honest I didn't wanted it to be dropped, as that's helpful for everyone reading the code.

Anonymous’s picture

Julian Reschke is the person we should be listening to in that issue, even though he doesn't get the upvotes.

The right thing to do is to use the personal tree, the vendor tree, or to actually attempt a proper media type registration.

I found a message he sent shortly after posting that, indicating that he wanted to get one formally registered. I'm not sure where that went.

damiankloip’s picture

FileSize
6.2 KB

Rerolled after #1850704: Available serialization formats.

So are we saying we want to add 'application/vnd.yamlorg.yaml' to the list of mime types?

Status: Needs review » Needs work
Issue tags: -Needs tests, -VDC

The last submitted patch, 1897612-9.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
Issue tags: +Needs tests, +VDC

#8: 1897612-9.patch queued for re-testing.

Anonymous’s picture

Apparently, MediaWiki does use application/yaml. That might be our best bet, even though it doesn't follow JR's advice.

Do we know which consumers are going to be requesting it?

damiankloip’s picture

FileSize
697 bytes
6.2 KB

So we go with this for now?

I think this is something we can easily modify a bit later if we find out we need to, that's well within reason.

Anonymous’s picture

Status: Needs review » Needs work

The suggestions are pretty minor, so I don't feel strongly about them and would be ok with the patch going ahead. I realize some of the code style errors made it in to JSON-LD module, so those errors may just be from referring to the existing code.

+++ b/core/lib/Drupal/Core/Serialization/SerializerFormatSubscriber.phpundefined
@@ -0,0 +1,37 @@
+class SerializerFormatSubscriber implements EventSubscriberInterface {

Should this be called SerializerFormatSubscriber? In JSON-LD, it's just called JsonldSubscriber (I think klausi implemented that, but I agree with his naming). I would just call it SerializationSubscriber

+++ b/core/lib/Drupal/Core/Serialization/SerializerFormatSubscriber.phpundefined
@@ -0,0 +1,37 @@
+   * @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event

Small code style issue, the class should have a slash at the front.

+++ b/core/lib/Drupal/Core/Serialization/SerializerFormatSubscriber.phpundefined
@@ -0,0 +1,37 @@
+    $events[KernelEvents::REQUEST][] = array('onKernelRequest', 30);

Why do we have a priority here?

+++ b/core/modules/system/lib/Drupal/system/Tests/Serialization/EntitySerializationTest.phpundefined
@@ -153,5 +154,14 @@ public function testSerialize() {
+    $expected = $dumper->dump($normalized, PHP_INT_MAX);

Do we feel confident that the $normalized array will be properly handled by the dumper? As confident as we are that json_encode() will always give us the results we expect?

If we aren't confident, then we should actually test the output like we do with XML. I don't have enough background on how we've been using the YAML dumper to know.

damiankloip’s picture

Assigned: Unassigned » damiankloip

Thank s for the feedback. I will reroll with these changes.

damiankloip’s picture

Assigned: damiankloip » Unassigned
Status: Needs work » Needs review
FileSize
2.15 KB
6.15 KB

I think I would be pretty confident with the YAML dumper. We use the same implementation in core, and this is obviously used alot :). So I think comparing to this is for the expected output is pretty safe.

I have made those other changes.

Crell’s picture

Is there a use case for this in core?

The REST and CMI teams already concluded that since CMI files are best deployed via Git, not via REST, so we're not supporting ConfigEntities. That means this wouldn't be useful for doing configuration deployments.

If there's a core-friendly use case here we can move forward. If not, I think this would be better off in contrib where we can sort out the mime type issue and other questions at our leisure.

damiankloip’s picture

Well, technically there probably isn't use cases for json, xml, or json-ld in core either. It seems like a good idea to have support for the most commonly used formats out of the box, and as we already have the yaml component, it's a small patch.

Anonymous’s picture

There are two use cases for JSON-LD in core: content deployment and Spark. We've determined the particular advantages that JSON-LD has in terms of those two use cases.

I think Crell has a point in pushing for a core use case. There is a significant disadvantage to having code live in core... it's much harder to change it than it is if it lives in a contrib module. Since there are still open questions around this (who are the consumers and what media type will they handle), I think it makes more sense for it to live in contrib, where the users can influence the implementation more.

damiankloip’s picture

What about json and xml? It's not about pushing config around with yaml, we could do that with json if we wanted to. Having this format too will mean we have all the common formats. That can't be too much of a bad thing.

Anonymous’s picture

JSON is used for AJAX, which is a pretty clear core use case. TBH, I would personally be fine with moving XML out of core too.

scor’s picture

well, maybe the question to consider is what are the overheads of having many serialization formats in core. YAML has an unstable MIME type, ok. JSON and XML are much more mature. Leaving aside the MIME type discussion, what is the code overhead everytime we add/allow a format? How much code do we need to add/maintain everytime we add a format? I'm assuming we're relying on the upstream serializers like PHP or Symfony, which are available no matter what. We just have to decide whether we allow them or not. What about performance overheads in adding more formats?

Edit: I don't particular care for YAML or XML one way or another, just trying to get the bigger picture here.

Crell’s picture

To be clear, I am not against being able to serialize to YAML. I'm just looking at it and going "uh, why?", especially since, as Lin notes, core moves more slowly than contrib. Aside from "ticking a box", does YAML serialization being in core buy us anything? If so, then I'm fine with including it.

We should have at minimum one non-JSON format in core to validate that serialization is in fact pluggable; XML already fills that role, though, plus gives a foundation for doing other XML formats. (Atom, SVG, etc. can probably reuse at least some code.)

Anonymous’s picture

This only matters for denormalizing, but are we certain that we wouldn't open up security holes with YAML? See the "What went wrong" paragraph of What The Rails Security Issue Means For Your Startup.

Anonymous’s picture

Actually, now that I think of it, I wonder if it might matter for serializing as well. Could an attacker construct an entity body such that it triggered a YAML vulnerability when serializing? I legitimately have no idea.

Anonymous’s picture

Issue tags: +Needs security review

We've been discussing this in IRC, but I just want to post it here for history's sake.

I would not feel comfortable with this being added unless we got full review and sign off from the security team.

I personally do not think it's worth going to the effort, but am fine with it if someone else does want to pursue that.

scor’s picture

not speaking on behalf of the team, but just my personal feeling as a member: it seems unlikely the security team would have the time or resources to do a full review on this, especially since the benefits of adding YAML in this instance (serializer) are still unclear/unknown. contrib seems like a good place for such serializer to live for now.

Anonymous’s picture

Status: Needs review » Closed (won't fix)

So here's what chx said about the exploitability:

you need some code -- which doesnt exist readily -- that passes user supplied data to yaml::parse to have a sechole

That's what this functionality would do. As such, I think we should make it a wontfix for core. chx and others are talking about ways to improve Symfony's security (#1907170: Very simple config files can't be read), if those move forward this could happen in contrib.

Damien Tournoud’s picture

Status: Closed (won't fix) » Postponed

Symfony actually has this capability since mid-January. So this is just postponed on us updating the Yaml component.

http://symfony.com/blog/security-release-symfony-2-0-22-and-2-1-7-released

Anonymous’s picture

Is there anyone actually asking for this functionality? Moshe, Crell, and myself have all asked what the use case is or who the consumers would be, and scor points out that the benefits are unknown. We still haven't established these basic benefits, which I think should be a blocker in and of itself... nothing should get in core (and thus have to be maintained) unless it has a clear benefit. Contrib is for hypotheticals.

I do realize that Symfony added new, safer versions of Yaml:parse(). However, other projects have been seriously burned by YAML security holes, which were clearly not obvious to them for years... what makes us think that a few weeks worth of security review has fixed all the holes.

Why play with fire in core when we don't have a use case in mind?

Anonymous’s picture

Issue summary: View changes

Updated issue summary.

yched’s picture

Reminder: The "Serialization API" handbook page at https://drupal.org/node/1900312 still has an example about "adding YAML serializer", with a "TODO Insert example once YAML patch [this issue here] is finalized" :-)

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Chi’s picture

Issue summary: View changes

There is pretty solid use case for having Yaml serializer - deploying content.
Default content module uses Json format which is not as readable as Yaml. Demo content and Yaml content modules have own implementation of Yaml import but not export. I suppose Yaml serializer would help a lot on this.

AndyF’s picture

FYI I've made a module from the patch (many thanks @damiankloip!). It's just a sandbox at the mo. I'll promote it in a few weeks if there's no further discussion - just in case this or Chi's message sparks more dialogue and people end up wanting it in core again :p

https://www.drupal.org/sandbox/andy/2924284

Thanks

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

andypost’s picture

Version: 8.6.x-dev » 9.0.x-dev
Status: Postponed » Needs work
manojapare’s picture

To make sure Drupal\Core\Serialization onKernelRequest() event callabck is called just before Symfony\Component\HttpKernel\EventListener\RouterListene onKernelRequest(). Increased the priority for onKernelRequest() event callback from 0 to 40.

Unless yaml mime type is not taken for REST endpoints.

andypost’s picture

@manojapare thank you for reroll, please add #40 as code comment to keep knowledge of why 40

It needs some codestyle changes as well

  1. +++ b/core/lib/Drupal/Core/Serialization/SerializerSubscriber.php
    @@ -0,0 +1,37 @@
    + * @file
    + * Contains \Drupal\Core\Serialization\SerializerSubscriber.
    
    +++ b/core/lib/Drupal/Core/Serialization/YamlEncoder.php
    @@ -0,0 +1,99 @@
    + * @file
    + * Contains \Drupal\Core\Serialization\YamlEncoder.
    

    should be removed

  2. +++ b/core/lib/Drupal/Core/Serialization/SerializerSubscriber.php
    @@ -0,0 +1,37 @@
    +  static function getSubscribedEvents() {
    +    $events[KernelEvents::REQUEST][] = ['onKernelRequest', 40];
    

    Needs a code comment about why

  3. +++ b/core/lib/Drupal/Core/Serialization/YamlEncoder.php
    @@ -0,0 +1,99 @@
    +  static protected $format = array('yaml');
    

    should be short array syntax

AndyF’s picture

It looks like perhaps we should be taking a different approach since #2445723: Use the $request format instead of the ContentNegotation. landed of altering the DIC at build time to register the format with the middleware, similar to how \Drupal\hal\HalServiceProvider does it?

xjm’s picture

Version: 9.0.x-dev » 9.1.x-dev
manojapare’s picture

Status: Needs work » Needs review
FileSize
6.6 KB
10.93 KB

Rerolled the patch to 9.1.x-dev and taken care suggestions by @andypost.

Status: Needs review » Needs work

The last submitted patch, 44: 1897612-44.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

manojapare’s picture

Status: Needs work » Needs review
FileSize
6.61 KB
1016 bytes

Sorry my bad, fixed codesniffer list.

johnwebdev’s picture

Status: Needs review » Needs work
  1. +++ b/core/modules/serialization/src/Encoder/YamlEncoder.php
    @@ -0,0 +1,89 @@
    +class YamlEncoder extends BaseYamlEncoder implements EncoderInterface, DecoderInterface {
    ...
    +  protected $baseEncoder;
    ...
    +  public function getBaseEncoder() {
    
    +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +   * @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event
    

    Why do we need to extend the same encoder we are wrapping?

  2. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    + * Event subscriber for adding additional content types to the request.
    

    It does more than just register formats currently.

  3. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +   *   The Event to process.
    

    s/Event/event

  4. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +   * Register content type formats on the request object.
    

    Copy error.

  5. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +   *   The Event to process.
    

    s/Event/event

  6. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +      $event->setResponse(new Response('Yaml Parse Error', 400));
    

    This message is not really that helpful. Also missing test coverage.

  7. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +   * Implements \Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents().
    

    Here we can use {@inheritdoc}

  8. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +    // To process REST POST endpoints with yaml mime type
    

    s/yaml/YAML
    s/callabck/callback

  9. +++ b/core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php
    @@ -0,0 +1,51 @@
    +    // Symfony\Component\HttpKernel\EventListener\RouterListene::onKernelRequest().
    

    This line exceeds 80 characters.

shobhit_juyal’s picture

Issue summary: View changes
shobhit_juyal’s picture

Hi here is the updated testcase for patch 45 uploaded in #46

shobhit_juyal’s picture

Hi @johnwebdev

I'd not get much about #1 and #6.

The attached patch has the suggested improvements and the interdiff of #49 and #50.

shobhit_juyal’s picture

This patch contains the fixes for the 2 failures in #49 and #50

shaktik’s picture

Assigned: Unassigned » shaktik
shobhit_juyal’s picture

shaktik’s picture

Status: Needs work » Needs review
Rkumar’s picture

Assigned: shaktik » Unassigned

Unassigning this.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

bradjones1’s picture

Title: Add serializer support for YAML » Add YAML support to serialization module

Adjusting title since this is a bit confusing when searching for other issues relating to yaml serialization, e.g. for parsing config. This is more for request/response serialization akin to JSON and XML.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

andypost’s picture

Component: other » serialization.module
ranjith_kumar_k_u’s picture

Re-rolled #53

shaktik’s picture

Status: Needs review » Needs work
Suresh Prabhu Parkala’s picture

Status: Needs work » Needs review
FileSize
8.43 KB
495 bytes

Tried to fix the custom error. Please have a look.

yogeshmpawar’s picture

Resolved Custom Commands errors & also added an interdiff.

Status: Needs review » Needs work

The last submitted patch, 64: 1897612-64.patch, failed testing. View results

ravi.shankar’s picture

Fixed failed tests of patch #64.

ravi.shankar’s picture

Status: Needs work » Needs review

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
4.53 KB

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Akhil Yadav’s picture

Added patch against #66 in 10.1 version

Bhanu951’s picture

Status: Needs work » Needs review

Setting as need review for tests to run.

Status: Needs review » Needs work

The last submitted patch, 71: 1897612-71.patch, failed testing. View results

Bhanu951’s picture

Seems changes made to core/modules/serialization/src/EventSubscriber/SerializerSubscriber.php in #66 are missing in #71.

Bhanu951’s picture

Status: Needs work » Needs review
FileSize
2.71 KB

Raised MR based on #66 against branch 10.1.x

apaderno’s picture

@Akhil The previous patch is 8.41 KB. How can a re-roll be 3.97 KB?

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs issue summary update

This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

This could use an issue summary update. Example What is the proposed solution exactly?

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.