Closed (works as designed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
rest.module
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Aug 2016 at 18:56 UTC
Updated:
24 Apr 2017 at 14:08 UTC
Jump to comment: Most recent
Comments
Comment #2
wim leersInteresting! :) Thanks for filing this!
Comment #3
dawehnerYeah, that sounds like a super nice idea.
Comment #5
wim leersComment #6
wim leersHaving a CSV/XLS/… icon is definitely a minor feature.
Comment #7
dawehnerThese links are mostly used for downloading usecases, I assume. Yeah to be honest for those usecases you probably want to use views data export which actually will also implement batch support and what not. That module implements the
attachTomethod.Comment #8
wim leersOh interesting, https://www.drupal.org/project/views_data_export has a D8 release!
But nevertheless, we do have https://www.drupal.org/project/csv_serialization and https://www.drupal.org/project/xls_serialization, which would benefit from this.
Comment #9
dawehnerWell, its right, but in reality you actually use
views_data_exporttogether with those modules, like for example you want to set theContent-Typeheader automatically, which is only done when you actually use\Symfony\Component\HttpFoundation\BinaryFileResponsefor example.Comment #10
wim leersAha!
So does that mean this is a "won't fix"?
Comment #11
dawehnerGiven @jhedstrom is the other of those serialization modules there was most likely a good usecase.
Comment #12
jhedstromIt's been a while, but IIRC, the use case was to allow those serializer modules to work only with core (eg, not to require views_data_export). The views_data_export module already provides the
attachToitself, but that could be removed ifRestExportimplemented that itself.However, I'm not sure if that use case is valid enough to pursue this in core.
Comment #13
dawehnerGiven it seems to be really a minor issue, I think we should close this issue. If someone has the need in the future, they could still provide a patch.
Personally the entire link that feature in views is weird ... this should be done with some footer text and be done with it :)
Comment #14
wim leersAlright, thanks for giving that background information, @jhedstrom!