mountetna / magma

Data server with friendly data loaders
GNU General Public License v2.0
5 stars 2 forks source link

Add test for TSV + collection; update collection query_to_tsv #186

Closed coleshaw closed 4 years ago

coleshaw commented 4 years ago

This PR separates the Collection payload format from its tsv format. Previously the tsv format called query_to_payload internally, which caused the collection value to attempt to reformat / flatten twice, resulting in exceptions (and would result in users not being able to download TSV files in Timur, if they involved a collection attribute). This change removes the second formatting attempt and also adds a test to check behaviour.