Commit Graph

294 Commits

Author SHA1 Message Date
Sandro Santilli
c00cf6d390 Revert "Upgrade node-csv module to version 0.2.4"
This reverts commit 270e6280ed.
The performance issue must be fixed before we can upgrade:
https://github.com/wdavidw/node-csv-parser/issues/64
2012-11-19 18:44:53 +01:00
Sandro Santilli
270e6280ed Upgrade node-csv module to version 0.2.4
Will help with compressed-csv export format
2012-11-19 16:20:40 +01:00
Sandro Santilli
0274425de9 Add another test for CSV truncation (succeeds) 2012-11-16 12:54:09 +01:00
Sandro Santilli
3a641beda8 Fix UTF8 in shapefile export. Closes #66.
Testcases count reaches 100 ! Happy post-post-gis day :)
2012-11-16 12:50:21 +01:00
Sandro Santilli
70d348dcb6 Oops, the correct bug for previous fix was #70
Closes #70
2012-11-16 12:23:30 +01:00
Sandro Santilli
da05e6f4ca Fix KML export truncation. Closes #947
Also adds test for SHP truncation (isn't trucated)
2012-11-16 12:22:06 +01:00
Luis Bosque
e20c14e222 target v1.3.2 2012-11-14 18:24:26 +01:00
Sandro Santilli
0223ff83e9 Reference the oAuth breakage ticket (#69) in NEWS 2012-11-14 18:06:46 +01:00
Sandro Santilli
4cc9283874 Update with oAuth bugfix 2012-11-14 18:06:05 +01:00
Sandro Santilli
75fcd5ae9c Do not write back to request.query as it breaks oAuth signature
NOTE: this breakage misses a testcase (overcomplex at the moment)
2012-11-14 18:04:38 +01:00
Sandro Santilli
34587782b5 Remove reverted change from NEWS 2012-11-14 16:32:52 +01:00
Sandro Santilli
bd08eb4add Use inline attachment also with POST, if format isn't given 2012-11-14 16:30:18 +01:00
Sandro Santilli
cceeb72f4e Update NEWS 2012-11-13 19:28:09 +01:00
Sandro Santilli
6b7cada97d Never dispose "inline" when using POST. 2012-11-13 19:27:25 +01:00
johnhackworth
e64c3f57f7 changes in the way the parameters are collected to support both POST and GET 2012-11-13 19:27:25 +01:00
Luis Bosque
1914ab9196 target v1.3.1 2012-11-13 11:42:18 +01:00
Sandro Santilli
0ef13f08c2 Use inline disposition when no format and no filename are given
See #61
2012-11-12 19:44:16 +01:00
Sandro Santilli
120cf3f0c5 Add 'cache_policy' parameter. Closes #62 2012-11-12 19:14:20 +01:00
Sandro Santilli
005ae48e3a Support for specifying a list of fields to skip from output.
Closes #63
2012-11-12 17:11:17 +01:00
Luis Bosque
ab9c739995 removed -dev suffix from package.json version 2012-11-12 13:23:34 +01:00
Sandro Santilli
f7c64b8886 Add the 'filename' parameter to API doc 2012-11-12 13:21:46 +01:00
Sandro Santilli
46cec7a0e5 Add support for specifying a filename for exports. Closes #64
Sets release target to 1.3.0, due to parameter addition
2012-11-12 12:40:53 +01:00
Luis Bosque
755fe738ca target v1.2.2 2012-11-12 12:27:37 +01:00
Luis Bosque
dd5a2a38c3 Updated NEWS.md for 1.2.1 2012-11-12 12:23:06 +01:00
Luis Bosque
c0568b59d9 timeout is in miliseconds, not in seconds 2012-11-02 23:47:01 +01:00
Luis Bosque
ef4a379e05 set 600 timeout in cluster.js 2012-11-02 23:19:36 +01:00
Luis Bosque
62b22bb9f3 target version 1.2.1 2012-11-02 15:38:24 +01:00
javi
ce9c89ae42 Merge branch 'develop' of github.com:Vizzuality/CartoDB-SQL-API into develop 2012-11-01 13:17:57 +01:00
javi
3fd3c5fabc added the needed headers for CORS 2012-11-01 13:17:45 +01:00
javi
cea7e8c365 added the needed headers for CORS 2012-11-01 13:16:46 +01:00
Sandro Santilli
765dc101b0 Target 1.2.0, due to addition of new features since 1.1.0
NOTE: I haven't touched npm-shrinkwrap.json as that file will
      get version from package.json on next regeneration

NOTE2: I added -dev suffix to the version so you can tell if
       you're running a development version or the "official"
       release (will get -dev removed)
2012-10-31 12:13:12 +01:00
Sandro Santilli
110af3e9d9 Add "sqlapi" prefix to temporary dir for shapefile output 2012-10-31 11:57:20 +01:00
Luis Bosque
4e0346a5a1 target version 1.1.1 2012-10-30 18:56:11 +01:00
Luis Bosque
d3760b1d7a Merge branch 'release/staging' into develop
Conflicts:
	doc/API.md
2012-10-30 13:14:42 +01:00
Luis Bosque
311262c2ad updated NEWS for 1.1.0 2012-10-30 13:11:34 +01:00
Sandro Santilli
9aa28c5bea Initial support for KML output format. Closes #54. 2012-10-25 18:10:56 +02:00
Sandro Santilli
578edf29db Update NEWS file (the 1.1.0 section, being still open) 2012-10-25 18:07:51 +02:00
Sandro Santilli
978c0b4cbe Advertise header presence in CSV Content-Type 2012-10-25 13:40:21 +02:00
Sandro Santilli
a6837573c5 Use "attachment" Content-Disposition for all output formats.
Closes #61, includes tests

NOTE: this includes the default "json" format.
2012-10-25 13:34:06 +02:00
Sandro Santilli
5d8eccc81e Fix CSV output with no rows. Closes #60 2012-10-25 13:14:47 +02:00
Sandro Santilli
a560a37823 Generalize OGR output function 2012-10-23 17:45:56 +02:00
Sandro Santilli
26bdccf541 Remove debugging output 2012-10-18 13:19:08 +02:00
Sandro Santilli
e7c1724999 Advertise new SHP format in NEWS file (closes #53) 2012-10-18 12:56:16 +02:00
Sandro Santilli
d0ae7e08a6 Initial support for Shapefile output 2012-10-18 12:51:12 +02:00
Sandro Santilli
b038419abd Add missing newline 2012-10-18 11:35:06 +02:00
Sandro Santilli
729462b500 Fix throw in async function (verifyRequest) 2012-10-18 11:34:39 +02:00
Sandro Santilli
8574517ab8 Add a userid_to_dbuser function 2012-10-18 11:33:35 +02:00
Sandro Santilli
d399d2153f Improve input data control in test for "dp" parameter 2012-10-18 11:32:08 +02:00
Sandro Santilli
d9b733e5c6 Recognize ALTER as a writing query 2012-10-15 13:40:04 +02:00
Sandro Santilli
d23416cc60 Set X-Cache-Channel to NONE when the SQL may write to the database
Note that "may write" allows for false positive, so there could be
less cache hits than possibly allowable. If this will be a problem
for any real use case we could still improve the regular expression
used to detect "writing" queries.

Automated tests are added to check for the X-Cache-Channel header
with both writing and read-only queries performed by authenticated
requests.

Closes #27
Closes #43
2012-10-15 13:23:17 +02:00