Skip to content

Sheet Download #100

@darth-cheney

Description

@darth-cheney

We should be able to download the entire contents of a given sheet as CSV (up to some max file size limit).

To make this work in practice, I think we need to implement a route in the ActiveWebService at some endpoint like /downloads/<cellId>. We then pull in the current Cell tree from the request session object, find the cellId given (which in this case will be for a Sheet cell), and correctly respond with a multipart stream of bytes for download.

Note that the functionality I'm describing gives a kind of "download" method to any Cell. I'm thinking the default behavior should be to respond with an Error. In fact, there should be three kinds of errors for requests on that route:

  1. Cell with the id was not found (404)
  2. The Cell with the id cannot be "downloaded" (503)
  3. Other generic error (500)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions