Commit Graph

2740 Commits

Author SHA1 Message Date
Daniel García Aubert
0333a85270 Release 2.4.0 2019-01-16 14:41:50 +01:00
Daniel García Aubert
a3a8224263 Update next release version 2019-01-16 14:40:47 +01:00
Alberto Romeu
2a9b1c8457
Merge pull request #557 from CartoDB/cors-authorization-headers
adding Authorization to Access-Control-Allow-Headers
2019-01-11 12:07:05 +01:00
Simon Martín
d08e4211e2 NEWS 2019-01-10 16:58:55 +01:00
Simon Martín
60702faa57 adding Authorization to Access-Control-Allow-Headers 2019-01-10 15:55:08 +01:00
Simon Martín
68b2b1970a
Merge pull request #546 from CartoDB/unique-query-ratelimit
Unique query ratelimit
2019-01-09 09:14:50 +01:00
Simon Martín
b953564fe2 Updating NEWS 2019-01-09 09:04:45 +01:00
Simon Martín
f947fd7cd5 Merge branch 'master' into unique-query-ratelimit 2019-01-09 08:50:41 +01:00
Daniel García Aubert
807359e9f8 Update NEWS 2019-01-04 10:31:08 +01:00
Daniel G. Aubert
735d992246
Merge pull request #556 from CartoDB/gc-stats
Get fine-grained garbage collection stats
2019-01-04 10:17:09 +01:00
Daniel García Aubert
71bc3da115 Bad variable name 2019-01-03 19:26:44 +01:00
Daniel García Aubert
a1b7a07c8e Update srinkwrap 2019-01-03 19:15:06 +01:00
Daniel García Aubert
fc1fd66867 Get fine-grained garbage collection stats 2019-01-03 19:09:01 +01:00
Raúl Marín
bef3568f0c
Merge pull request #555 from Algunenano/cancel_timeout
Consider cancelled queries as platform limits
2019-01-03 15:26:15 +01:00
Raul Marin
df4732ff94 Consider cancelled queries as platform limits 2019-01-03 15:17:47 +01:00
Raúl Marín
c7bda6620c
Merge pull request #554 from Algunenano/forgotten_news
Update NEWS
2019-01-03 14:47:31 +01:00
Raul Marin
f3317340b7 Update NEWS 2019-01-03 14:21:56 +01:00
Raúl Marín
eff8d80d44
Merge pull request #552 from Algunenano/pg11
Set platform limits message on streaming responses
2019-01-03 13:51:55 +01:00
Raul Marin
03701ae695 Set platform limits message on streaming responses too 2019-01-02 16:21:33 +01:00
Raul Marin
4662077a02 Doc: Document errors in streaming responses 2019-01-02 16:21:33 +01:00
Raul Marin
7eb412cf59 Test: Accept PG11 error messages 2019-01-02 16:21:33 +01:00
Daniel G. Aubert
9c015d40cb
Merge pull request #551 from CartoDB/update-node-npm-versions
Update docs: Node.js and npm version
2019-01-02 13:04:15 +01:00
Daniel García Aubert
3f6cccc50b Add deprecation warning 2019-01-02 12:52:53 +01:00
Daniel García Aubert
e9e2117046 Update docs: Node.js and npm version 2019-01-02 11:16:00 +01:00
Daniel García Aubert
2404368e36 Stubs next version 2018-12-26 17:23:44 +01:00
Daniel García Aubert
d6140d39dc Release 2.3.1 2018-12-26 17:22:00 +01:00
Daniel G. Aubert
76c70cdd2c
Merge pull request #549 from CartoDB/fix-carto-package
Fix carto-package.json
2018-12-26 17:20:48 +01:00
Daniel García Aubert
8f40149ba1 Fix carto-package.json 2018-12-26 17:20:04 +01:00
Daniel García Aubert
880d4ce30c Stubs next version 2018-12-26 15:33:57 +01:00
Daniel García Aubert
72e99904e2 Release 2.3.0 2018-12-26 15:31:36 +01:00
Simon Martín
e1610b1f01 NEWS 2018-12-24 13:46:53 +01:00
Simon Martín
be8fac3315 Merge branch 'master' into unique-query-ratelimit 2018-12-24 13:43:58 +01:00
Rafa de la Torre
f5a79eef7e
Merge pull request #548 from CartoDB/fix-version-cartodb-psql
Fix version of cartodb-psql (remove caret ^)
2018-12-13 14:55:28 +01:00
Rafa de la Torre
da46f9f8e2 Fix version of cartodb-psql (remove caret ^) 2018-12-12 18:20:10 +01:00
Rafa de la Torre
2773c6d23e
Merge pull request #547 from CartoDB/mockdate
Properly mock Date.now() for tests
2018-12-11 12:46:49 +01:00
Rafa de la Torre
cb5970d4a4
Merge pull request #545 from CartoDB/update-cartodb-psql
Update cartodb-psql
2018-12-11 12:03:20 +01:00
Rafa de la Torre
2f8357ee4f Properly mock Date.now() for tests 2018-12-11 11:50:53 +01:00
Rafa de la Torre
a7c0917019 Add mockdate to dev dependencies 2018-12-11 11:37:45 +01:00
Rafa de la Torre
b56f60ac4b Update package-lock.json 2018-12-10 18:23:58 +01:00
Simon Martín
254896e666 remove query_format rate limit 2018-12-10 18:20:10 +01:00
Simon Martín
498ddc58b7 unique rate limit fot both query endpoints 2018-12-10 18:19:56 +01:00
Rafa de la Torre
7502b65acb Update npm-shrinkwrap.json 2018-12-10 18:08:05 +01:00
Rafa de la Torre
eb48963d59 Update cartodb-psql 2018-12-10 17:24:53 +01:00
Rafa de la Torre
b9f647f15d Update NEWS.md #543 2018-12-07 10:31:04 +01:00
Rafa de la Torre
a3b1a38faf
Merge pull request #544 from CartoDB/max-error-header-size
Limit size of error header
2018-12-07 10:28:41 +01:00
Rafa de la Torre
aeec1922ee Fix test and add const #543 2018-12-05 19:15:57 +01:00
Rafa de la Torre
b6251568eb Test first, with hardcoded values (WIP) #543 2018-12-05 18:59:11 +01:00
Rafa de la Torre
8505857412 Make error_handler.test.js independent from other tests #543
This is needed to avoid a "test race" and get it closer to a real unit
test.

When running it along with others it passes:

```
$ make test-unit
...
  48 passing (54ms)
  12 pending
```

(note it relies on the ordering produced by `find`)

when running it along with some other test that reads the config, it
works as well:

```
$ test/run_tests.sh  test/unit/apikeyauth.test.js test/unit/error_handler.test.js
...
  3 passing (9ms)
  12 pending
```

but when run in isolation, it fails:

```
$ test/run_tests.sh test/unit/error_handler.test.js
...
  0 passing (15ms)
  3 failing

  1) error-handler should return a header with errors:
     TypeError: Cannot read property 'environment' of undefined
      at errorMiddleware (app/middlewares/error.js:10:28)
      at Context.<anonymous> (test/unit/error_handler.test.js:53:26)

  2) error-handler JSONP should return a header with error statuscode:
     TypeError: Cannot read property 'environment' of undefined
      at errorMiddleware (app/middlewares/error.js:10:28)
      at Context.<anonymous> (test/unit/error_handler.test.js:79:26)

  3) error-handler should escape chars that broke logs regex:
     TypeError: Cannot read property 'environment' of undefined
      at errorMiddleware (app/middlewares/error.js:10:28)
      at Context.<anonymous> (test/unit/error_handler.test.js:108:26)
```
2018-12-05 16:22:48 +01:00
Simon Martín
93c0ef4e0d
Merge pull request #542 from CartoDB/copy-quota-exceeded
cancel query when quota exceeded or max POST size
2018-11-30 10:29:01 +01:00
Simon Martín
4dbd4d8b80 tests ensuring cancel query with Quota exceeded or max POST size 2018-11-29 18:42:04 +01:00