Commit Graph

937 Commits

Author SHA1 Message Date
Raul Ochoa
335d71bc04 Adds a custom log4js format function to log sql query from POST requests
Tokens in log4js are not provided with request/response for context,
using a custom format function allow to access them

In the case of express logger token functions receive request/response
for context so it uses a custom token

Closes #206
2015-09-04 12:29:20 +02:00
Raul Ochoa
bb884b51a6 Disable regression test until CDB_QueryTablesText is fixed 2015-09-03 11:24:38 +02:00
Raul Ochoa
df589b5e85 Merge pull request #247 from CartoDB/last-modified-header
Set Last-Modified header based on affected tables
2015-09-03 09:30:50 +02:00
Raul Ochoa
3c0f9aaf17 Merge pull request #248 from CartoDB/issue-224
Adds regression test for issue #224
2015-09-02 17:18:10 +02:00
Raul Ochoa
0e07e39efc Adds regression test for issue #224 2015-09-02 17:09:22 +02:00
Raul Ochoa
f816093036 Set Last-Modified header based on affected tables
Closes #101
2015-09-02 16:25:56 +02:00
Raul Ochoa
1cad6aad02 Merge pull request #246 from CartoDB/health-check-no-results
Do not return results from health check
2015-08-28 18:50:40 +02:00
Raul Ochoa
c6c614b5bf Do not return results from health check
It also removed old dependencies and takes disabled file path in ctor.
2015-08-28 18:16:04 +02:00
Andrew Thompson
91afe720bc Merge pull request #237 from CartoDB/docs-injection-psql-users
Add doc Q&A about SQL injection and Postgres users
2015-08-04 17:06:11 -04:00
Andrew Thompson
ba393101a2 remove sales info and add api key regeneration 2015-08-04 17:05:05 -04:00
Raul Ochoa
9b5a729a41 Stubs next version 2015-08-04 16:33:36 +02:00
Raul Ochoa
6d5e11c8d3 Release 1.24.0 2015-08-04 16:32:09 +02:00
Raul Ochoa
686976fbec Merge pull request #243 from CartoDB/issue-241
Remove client from pool after error happens
2015-08-04 16:28:52 +02:00
Raul Ochoa
d42e5a6b75 Do not expose remove from pool after query error as a config option 2015-08-04 16:23:36 +02:00
Raul Ochoa
7c696317d0 New option to remove client from pool after error happens
This help to avoid issues with transactions.

Closes #241
2015-08-04 15:53:50 +02:00
Raul Ochoa
219dfe5ecd Merge pull request #242 from CartoDB/upgrade-cartodb-psql
Upgrades cartodb-psql to 0.6.0
2015-08-04 15:45:28 +02:00
Raul Ochoa
bb2cf83ff6 Upgrades cartodb-psql to 0.6.0 2015-08-04 15:35:31 +02:00
Raul Ochoa
8db6b88853 Update CDB_QueryTables to match current spec 2015-08-04 14:45:14 +02:00
Andrew Thompson
bd822900c1 Add doc Q&A about SQL injection and Postgres users 2015-07-27 19:29:59 -04:00
Raul Ochoa
283572c535 Stubs next version 2015-06-16 17:36:26 +02:00
Raul Ochoa
050a3addd3 Release 1.23.0 2015-06-16 17:35:09 +02:00
Raul Ochoa
62e7e1634f Use in memory sqlite databases for spatialite tests 2015-06-16 17:33:04 +02:00
Raul Ochoa
afdb385fcf Bumps versions for new SpatiaLite feature 2015-06-16 17:19:57 +02:00
Raul Ochoa
b0be80c622 Merge pull request #233 from CartoDB/undo-ogr-fake-tables
Undo ogr fake tables
2015-06-16 17:17:31 +02:00
Raul Ochoa
1c35eb057c Update news 2015-06-16 17:01:51 +02:00
Raul Ochoa
a297a14300 Revert "Uses tables ogr2ogr param to avoid heavy query on pg_class and friends"
This reverts commit b6e53f7326.
2015-06-16 16:58:22 +02:00
Raul Ochoa
b122503f67 Fix format 2015-06-16 16:54:07 +02:00
Raul Ochoa
2d197b0f13 Update news with latest PR 2015-06-16 16:53:12 +02:00
Raul Ochoa
a8316d50c1 Merge pull request #232 from CartoDB/ogr2ogr-command-via-config
Ogr2ogr command via config
2015-06-16 16:52:51 +02:00
Raul Ochoa
5dea85ed22 Merge pull request #231 from CartoDB/ogr2ogr-command-via-config
Ogr2ogr command via config
2015-06-16 16:51:14 +02:00
Raul Ochoa
8b6545b2a7 Update news 2015-06-16 16:48:29 +02:00
Raul Ochoa
e12a37328c Keep using ogr2ogr in test example config 2015-06-16 16:45:21 +02:00
Raul Ochoa
c842a3f8a8 Regenerate npm-shrinkwrap.json 2015-06-16 16:12:45 +02:00
Raul Ochoa
66eb846bfd Try to use ogr2ogr2 from ppa:cartodb/gis 2015-06-16 15:58:33 +02:00
Raul Ochoa
e9dda12ad3 Adds tests for big results in ogr formats 2015-06-16 15:54:13 +02:00
Raul Ochoa
93e965af29 Makes ogr2ogr command configurable so it's possible to change path/bin 2015-06-16 15:53:33 +02:00
Francisco Dans
d1db897699 Merge pull request #228 from CartoDB/spatialite
Adds SpatiaLite as export format
2015-06-03 16:02:16 +02:00
Francisco Dans
f34e010785 uses concat instead of looping 2015-06-03 15:32:20 +02:00
Francisco Dans
fdb946ed8f adds spatialite as export format in the api docs 2015-06-03 12:33:19 +02:00
Francisco Dans
e57f2e7219 specifies spatialite spec in the formatter 2015-06-03 12:10:57 +02:00
Francisco Dans
dfa18f7c11 checks if there are command params provided by the specific exporter 2015-06-03 12:09:48 +02:00
Francisco Dans
59d93aeb57 removes only from test call 2015-06-01 17:17:05 +02:00
Francisco Dans
5140aaa132 actually uses variable... 2015-06-01 16:48:27 +02:00
Francisco Dans
61ef29a02d puts SPATIALITE command option in SpatialiteFormat model 2015-06-01 16:33:04 +02:00
Francisco Dans
3a8f94641b Merge pull request #225 from CartoDB/log-addr
Uses :remote-addr instead of :req[X-Real-IP]
2015-06-01 16:17:47 +02:00
Francisco Dans
fc30771879 adds couple more tests 2015-06-01 15:16:05 +02:00
Francisco Dans
6e9eb9f43f adds sqlite3 as dev dep 2015-06-01 13:21:17 +02:00
Francisco Dans
2363b87b61 adds acc test for sqlite 2015-06-01 13:20:51 +02:00
Francisco Dans
f3bdddf123 forces spatialite if sqlite is passed as format 2015-05-29 15:25:19 +02:00
Francisco Dans
44be0ea1b7 adds spatialite export model 2015-05-29 15:24:50 +02:00