Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
layout_builder.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2019 at 16:22 UTC
Updated:
4 Apr 2019 at 13:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tim.plunkettThe FAIL patch comments out the line in
\Drupal\layout_builder\Normalizer\LayoutEntityDisplayNormalizerthat removes the section data we do not want to expose.Comment #3
wim leers🔍🤔 Übernit: you can omit
'layout_builder'from these and just set this in the base test class :)🤔 AFAICT this can be removed?
👍 Perfect!
Comment #5
wim leersAddressed #3.
As far as I'm concerned, this is then RTBC. @tim.plunkett, are you +1 to the changes in this interdiff?
Comment #6
tim.plunkettI had the same interdiff I was about to post. So yes, agreed! This looks great, happy to be doing things The Right Way™
Comment #7
wim leersAlright, RTBC it is then 🥳
Comment #8
wim leersFor core committers: these assertions have essentially been moved and now run in more scenarios.
Comment #9
tim.plunkettOkay not 100% the same as I had locally, because I fixed the @todo I left in there.
Comment #10
wim leersAh yes, thanks! I had forgotten to call that out in my review even though I noticed it. My bad. Thanks for fixing it!
Comment #11
xjmGuessing this is about the most literal stable blocker we could have.
Comment #12
xjmOne thing we're losing here is assertions about the expected format of the entity when not served over REST (basically, that the layout has one section which is not served over REST because we've excluded section data from the response). So the test could have a false positive from a layout with no sections... and actually, didn't we change the default behavior to no longer add a section automatically, so it'd be easy to get in a situation that has that false positive?
Comment #13
tim.plunkettDefaults get one section by default for all the fields that were previously displayed. But just to help prove there's no regression, I can add this.
Comment #14
wim leersComment #15
xjmThat works. This is ready for commit after the freeze is over.
Comment #17
xjmCommitted and pushed to 8.8.x. We'll backport to 8.7.x in a bit.
Thanks!
Comment #19
gábor hojtsy