Commit Graph

343 Commits

Author SHA1 Message Date
Sandro Santilli
6d98fd9117 Merge branch 'staging'
Conflicts:
	NEWS.md
	app/controllers/app.js
	npm-shrinkwrap.json
	package.json
2013-07-09 21:54:57 +02:00
Sandro Santilli
46b7f7a309 Parse all numbers as floats. Closes #100 2013-07-09 21:51:40 +02:00
Luis Bosque
b82c390c2f Target v1.5.2 2013-07-09 10:47:42 +02:00
Sandro Santilli
bc49aebd2a Don't assume SELECT "updated_at" may write to the database.
Closes #99
2013-07-08 17:36:53 +02:00
Luis Bosque
bd927556c5 Target v1.5.1 2013-07-05 15:31:21 +02:00
javi
69b5d825e3 reverted support for get params in post 2013-07-04 16:23:48 +02:00
javi
838c0c93ba Add support for GET params in POST requests 2013-07-04 16:14:44 +02:00
Sandro Santilli
46e93355c4 Set max-age=0 when using no-cache (don't be self-contraddicting) 2013-06-28 11:17:52 +02:00
Sandro Santilli
7eff0cb107 Retain UTC offset in JSON output for dates
Hopefully helps reducing confusion when using timezone-less
with postgresql, in that the time that comes out of JSON output
matches the one input by user, except it may be in an unexpected
timezone (the server's one)
2013-06-19 12:25:48 +02:00
Sandro Santilli
5e379012a8 Add support for CTE in sql windowing, add unit tests
This is still an undocumented feature, but as long as it's present
and used (by cartodb UI) better tested than broken...

NOTE: more tests are needed for CTE and RETURNING queries
2013-06-17 16:36:36 +02:00
Sandro Santilli
88f1d33b42 Add "fields" member in JSON return. Closes #97 2013-06-14 18:36:05 +02:00
Sandro Santilli
a108a8d545 Fix oAuth unit tests now that we use req.path rather than req.route.path 2013-06-11 10:01:17 +02:00
Sandro Santilli
f27812535d Merge branch 'master' into b1.4 2013-06-11 09:57:26 +02:00
Sandro Santilli
2459aba2ba Fix windowing support for non-uppercased SELECT queries 2013-06-10 10:00:31 +02:00
Sandro Santilli
14d74da874 Add latest fix to NEWS 2013-06-06 15:26:43 +02:00
Luis Bosque
80452ef6f4 Merge branch 'release/staging' into develop 2013-05-30 11:17:10 +02:00
Sandro Santilli
03cf5eab3e Add oAuth note 2013-05-29 17:43:01 +02:00
Sandro Santilli
62c314a950 Add NEWS item about queued requests handling fix 2013-05-29 17:35:16 +02:00
Sandro Santilli
7f9463e7fd Fix filesystem access conflict among clustered processes 2013-05-29 16:48:20 +02:00
Sandro Santilli
1f26d31ac4 Update NEWS, and target 1.5.0
Let's leave 1.4.x for hotfixes
2013-05-29 12:44:04 +02:00
Luis Bosque
9475e6ef0a Target v1.4.1 2013-05-28 18:15:15 +02:00
javi
0be9e47930 Add arraybuffer format 2013-05-28 10:37:39 +02:00
Sandro Santilli
ab8494ab12 Survive postgresql connection losses. Closes #95. 2013-05-24 18:18:17 +02:00
Sandro Santilli
3f98cab09a Do not execute queries on OPTIONS. Closes #94 2013-05-24 14:21:13 +02:00
Sandro Santilli
7712d6f2a5 Expose PostgreSQL client pooling settings in environment files
Actually also moves to a real pooling model, managed by node-pg.
Closes #47
See .example files for new configurations
2013-05-24 12:09:06 +02:00
Sandro Santilli
b737f8440d Add munin plugin to show connections and file descriptors 2013-05-24 10:50:51 +02:00
Sandro Santilli
b1e7bb8f8f Upgrade underscore dependencies 2013-05-24 08:26:23 +02:00
Sandro Santilli
81a83b93e4 Make base url configurable, use a wildcard in the example config 2013-05-23 11:49:23 +02:00
Luis Bosque
fcf95755b6 Fixed problem identifying OAuth request protocol
The protocol of a OAuth request wasn't being identified correctly. It
always considered that the request protocol was https.
2013-05-14 18:01:37 +02:00
Luis Bosque
b16c5bb034 Target v1.3.10 2013-05-10 12:18:27 +02:00
Sandro Santilli
414f4b6c3e Do not request caching of TRUNCATE queries 2013-05-06 18:21:22 +02:00
Sandro Santilli
cc74244b33 Do not choke on multiple skipfields parameter 2013-05-06 12:30:32 +02:00
Fabio Rueda
fc6aed2e9e targeted 1.3.9 2013-04-15 14:04:55 +02:00
Sandro Santilli
ae9ac8f9f8 Report testsuite tweaks 2013-04-11 13:37:47 +02:00
Sandro Santilli
0ec66c69a7 Allow sql queries to end with a semicolon. Closes #90 2013-04-10 17:21:42 +02:00
Sandro Santilli
1bcffbc68c Make using SET or querying system catalogues harder
An hack to "prevent" querying system tables already existed but
was pretty weak. This commits makes that a bit stronger. The
filter for SET is new.
2013-04-09 11:52:34 +02:00
Luis Bosque
aa5e3bcd36 Target v1.3.8 2013-04-02 11:39:54 +02:00
Sandro Santilli
8f60735b5e Queue export requests for shapefile format. Closes #65 2013-03-27 16:43:12 +01:00
Sandro Santilli
6d6dd16446 Draft delegating CSV output to OGR
Adapt tests to new output
2013-03-27 15:41:24 +01:00
Sandro Santilli
58b079e212 Fix reace condition in new KML output, test KML export of empty table 2013-03-26 18:18:13 +01:00
Sandro Santilli
38f99c586a Fix concurrent requests for KML export 2013-03-26 16:59:37 +01:00
Sandro Santilli
c3ae7074cb Make temporary dir a configuration setting 2013-03-26 16:02:05 +01:00
Sandro Santilli
41dd23b429 Do not run the query twice when exporting to KML 2013-03-26 12:47:03 +01:00
Sandro Santilli
eb011269bb Add node-pool upgrade notice 2013-03-14 12:06:26 +01:00
Sandro Santilli
5fa19a0515 Fix parsing of numeric arrays. Closes #88.
Includes testcase, requires using a fork of node-postgresql.
2013-03-14 11:41:07 +01:00
Luis Bosque
c5b2534687 Target v1.3.7 2013-02-28 15:03:42 +01:00
Sandro Santilli
dc87209033 Do not confuse warnings with errors on shapefile output
Closes #87
2013-02-25 18:32:28 +01:00
David Arango
a077afb331 Bump version to 1.3.6 2013-02-19 12:40:58 +01:00
Sandro Santilli
d4b1f580ff Fix X-Cache-Channel computation with paging parameters. Closes #85. 2013-02-18 16:19:12 +01:00
Sandro Santilli
19eb51b06d Use an LRU cache for query tables, and add expiration support
Defaults to 8192 items each valid for no more than 10 minutes
Both settings can be changed via environment config.
See #83
2013-02-13 18:59:09 +01:00
Sandro Santilli
7d2d585c54 Check CDB_QueryTable response before saving into cache
Also add pid to /cachestatus (#83)
2013-02-13 16:43:04 +01:00
Sandro Santilli
5959e6465a Fix Content-Disposition for error responses. Closes #82 2013-02-13 13:32:34 +01:00
Sandro Santilli
d667d64c78 Fix skipfields use with SHP output format. Closes #81 2013-02-13 13:02:37 +01:00
David Arango
938a87cfe0 Bump to 1.3.5 2013-01-21 18:01:16 +01:00
Sandro Santilli
977ecbeb29 Return an error when "the_geom" is in skipfield for SVG output
Closes #73
2013-01-21 10:06:51 +01:00
Sandro Santilli
19fc0e5854 Fix crash when issuing SQL "COPY" command
This involved upgrade of node-postgresql module.
See https://github.com/brianc/node-postgres/issues/242
2013-01-17 10:14:29 +01:00
Sandro Santilli
9bc79bded6 Re-add null geometry support in geojson output
You never know if anyone is relying on them, and they are supported
by the specs:
https://github.com/mbostock/topojson/issues/18#issuecomment-12154398

We'll still skip those records for topojson
2013-01-11 18:43:05 +01:00
Sandro Santilli
ca065e89b9 Omit NULL the_geom features from from geojson and topojson outputs
Closes #80
2013-01-11 18:20:25 +01:00
Sandro Santilli
3e7c8f4d22 Improve mixed geometry export error message. Closes #78 2013-01-11 17:09:22 +01:00
David Arango
f387903912 Bump to 1.3.4 2013-01-11 13:57:47 +01:00
Sandro Santilli
dca611db98 Update NEWS file with topojson format 2013-01-11 11:13:48 +01:00
Sandro Santilli
e311c388b6 Update NEWS with the Date format fix 2012-12-07 17:10:55 +01:00
Luis Bosque
72f202f3fc Merge branch 'release/v2.0' into develop
Conflicts:
	NEWS.md
2012-11-30 17:02:23 +01:00
Luis Bosque
f4af8b3ba4 v1.3.2 2012-11-30 17:01:17 +01:00
Luis Bosque
3b9dc554f9 Target version 1.3.3 2012-11-28 16:45:49 +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
34587782b5 Remove reverted change from NEWS 2012-11-14 16:32:52 +01:00
Sandro Santilli
cceeb72f4e Update NEWS 2012-11-13 19:28:09 +01:00
Luis Bosque
1914ab9196 target v1.3.1 2012-11-13 11:42:18 +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
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
62b22bb9f3 target version 1.2.1 2012-11-02 15:38:24 +01:00
javi
3fd3c5fabc added the needed headers for CORS 2012-11-01 13:17:45 +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
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
e7c1724999 Advertise new SHP format in NEWS file (closes #53) 2012-10-18 12:56:16 +02:00
Sandro Santilli
7b7a48103d Updated with "format" parameter related changes 2012-10-12 12:21:37 +02:00
Sandro Santilli
a3357b6841 Add info about what's changed so far 2012-10-04 12:06:04 +02:00
Sandro Santilli
954e54c87d Prepare for 1.1.0 2012-10-04 12:04:49 +02:00
Luis Bosque
686ff617b8 updated version to 1.0.0 2012-10-03 16:53:17 +02:00
Luis Bosque
f05f18e552 added NEWS.md 2012-09-18 17:04:29 +02:00