Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Dec 2014 at 18:03 UTC
Updated:
23 May 2015 at 11:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pcambraComment #3
pcambraHere's another take.
I'm trying to provide a test with this but I'm struggling on how to force a preview in StyleSerializerTest.php.
Comment #4
pcambraComment #5
dawehnerAh this makes sense!
Can we fix the test coverage?
Comment #6
pcambraI've tried but I don't know how to fake the preview in views properly, some indications are appreciated :)
Comment #7
dawehner.
Comment #8
klausiStyleSerializerTest::testLivePreview() is already testing this, so you could add it there or do something similar?
Comment #9
klausiComment #10
geertvd commentedThis one is probably blocked until Live preview for REST display is fixed #2443119: Views preview not working for REST display.
Comment #11
geertvd commentedAdded tests for this.
Comment #13
Anonymous (not verified) commentedThis looks good for me, and I think the test coverage is sufficient.
Added a beta evaluation to the summary.
I only have on minor nitpick. RTBC after that is fixed.
The wrapping of this comment is wrong.
Comment #14
Anonymous (not verified) commented@geertvd pointed out to me that the wrapping of the comment mentioned in #13 actually is right, so I think this is good to go.
Comment #15
dawehnerSo what we do here, sounds a bit of a bug. Does that mean if we setup one of the formats, even if multiple, we never respect the requested format from the request, see RestExport::init(), that sounds wrong, to be honest
Comment #16
geertvd commentedYes we where actually ignoring the requested format, this should fix that.
I guess we will need extra test coverage there.
Comment #17
geertvd commentedAdded extra test coverage.
Comment #20
geertvd commentedAh the problem is the default request format in
RestExportWill check how to fix this later this weekend.
Comment #22
geertvd commentedThis should fix that test failure, it seems like there should be a better way to do this though.
Comment #23
geertvd commentedComment #24
geertvd commentedBit better
Comment #27
geertvd commentedComment #28
dawehnerThis looks perfect now, thank you a lot!
Comment #29
dawehnerSetting to RTBC
Comment #33
geertvd commentedReroll
Comment #34
geertvd commentedSetting RTBC as per #29
Comment #35
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 6e83e1f and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.