Commit Graph

384 Commits

Author SHA1 Message Date
Esther Lozano
419adea234
Add pubsub metrics (#642)
* Create middleware and service for pubsub metrics

* Use pubsub middleware for all request

* Replace isEnabled with isDisabled to avoid negation

* Use new headers names

* Add acceptance and unit tests

* Remove commented log calls

* Remove only filters in tests

Remove typo

* Refactor service to ease integration test

* Fix interaction with query controller

* Use middleware at api-router and test all controllers

* Rename user middleware function

* Use sinon latest version

* Create middleware and service for pubsub metrics

* Use pubsub middleware for all request

* Replace isEnabled with isDisabled to avoid negation

* Use new headers names

* Add acceptance and unit tests

* Remove commented log calls

* Remove only filters in tests

Remove typo

* Refactor service to ease integration test

* Fix interaction with query controller

* Use middleware at api-router and test all controllers

* Rename user middleware function

* Use sinon latest version

* Fix tests

* Fix typos

* Checks if pubsub config exists to enable the service

* Fix typo

* Normalize headers values for pubsub

* Trim fields when normalizing

* Trim fields when normalizing
2020-02-26 17:19:06 +01:00
Daniel García Aubert
4e9b68e578 Stubs next version 2020-01-27 12:54:50 +01:00
Daniel García Aubert
fc3a149657 Update package.json 2019-12-28 20:02:13 +01:00
Daniel García Aubert
77a12bc821 Replace the deprecated instanbul by nyc as coverage tool 2019-12-27 13:26:02 +01:00
Daniel García Aubert
24572f63a2 Stop using makefile and bash scripts to prepare redis and postgres 2019-12-27 13:09:05 +01:00
Daniel García Aubert
b11437e6cd Replace jshint by eslint as default linter tool 2019-12-23 18:18:18 +01:00
Daniel García Aubert
494f7f9bfb Stubs next version 2019-11-13 13:16:32 +01:00
Daniel García Aubert
d8494f10ff Release 5.0.0 2019-11-13 13:10:00 +01:00
Daniel García Aubert
476a220991 Update cartodb-query-tables to version 0.7.0 2019-10-21 16:20:52 +02:00
Daniel García Aubert
dc051fcc94 Update development branch 2019-10-21 13:46:40 +02:00
Daniel García Aubert
ee97a9f047 Use development branch of query-tables 2019-10-15 13:23:43 +02:00
Daniel García Aubert
ec436b9c5e Add contributor 2019-10-01 16:11:18 +02:00
Daniel García Aubert
a63c79fdd8 Release 4.0.0 2019-09-30 17:47:25 +02:00
Raúl Marín
16a8187269
Update cartodb-query-tables to 0.6.3 (#616)
* Update cartodb-query-tables to 0.6.3
2019-09-20 10:36:33 +02:00
Raul Marin
ff4721c480 Update cartodb-query-tables to 0.6.2 2019-09-18 18:19:26 +02:00
Raúl Marín
d57f00c4e5
query_tables_update: Update to 0.6.0 (#613) 2019-09-13 13:45:43 +02:00
Raúl Marín
df523960a2
Fix test timeouts (#612)
* Tests: Work with re-runs

* Test: Adapt copyfrom test
- Reduce timeout from 10 to 1 ms.
- Increase the size of the file from 6 to 2016 rows.

* Use node-cartodb-psql 0.14.0

Ref: https://github.com/CartoDB/CartoDB-SQL-API/pull/612
2019-09-13 11:28:37 +02:00
Daniel García Aubert
1055245eab Update cartodb-query-tables to version 0.5.0 2019-07-09 12:46:40 +02:00
Daniel García Aubert
7f152bc937 Update cartodb-query-tables to a development branch 2019-07-09 12:26:11 +02:00
Daniel García Aubert
3fbe18b333 Update version 2019-06-03 12:49:57 +02:00
Daniel García Aubert
e57f7b6ecf Use CARTO's fork of pg-copy-streams 2019-05-24 17:30:26 +02:00
Daniel García Aubert
679f9fa451 Use pg-copy-stream upstream 2019-05-17 18:50:41 +02:00
Daniel García Aubert
dc1c1230c4 Upgrade devel dep sqlite3 to version 4.0.6 2019-04-02 18:07:53 +02:00
Daniel García Aubert
066938cee7 Stubs next version 2019-02-22 13:07:54 +01:00
Daniel García Aubert
d04542f045 Update engines 2019-02-21 19:00:57 +01:00
Daniel García Aubert
26f8ccc3cf Drop support for Node.js 6, npm 3, Postgres 9.5, PostGIS 2.2, and Redis 3 2019-02-21 18:55:27 +01:00
Daniel García Aubert
955b72a87c Upgrade to mocha 5 to fix vulns 2019-01-16 18:13:17 +01:00
Daniel García Aubert
3e1916c003 Fix vuls in debug 2019-01-16 17:42:03 +01:00
Daniel García Aubert
020c64af26 Fix vulns in zipfile 2019-01-16 17:37:26 +01:00
Daniel García Aubert
4dec5dc992 Fixed vulns automatically with 'npm audit fix' 2019-01-16 15:32:56 +01:00
Daniel García Aubert
e36d4080d8 Stubs next version 2019-01-16 14:43:50 +01:00
Daniel García Aubert
a3a8224263 Update next release version 2019-01-16 14:40:47 +01:00
Daniel García Aubert
fc1fd66867 Get fine-grained garbage collection stats 2019-01-03 19:09:01 +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
880d4ce30c Stubs next version 2018-12-26 15:33:57 +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
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
Rafa de la Torre
eb48963d59 Update cartodb-psql 2018-12-10 17:24:53 +01:00
Daniel García Aubert
9cd485be45 Prepare next release 2018-11-22 11:45:03 +01:00
Daniel García Aubert
627fdc1e2c Update dependencies to released versions that support Node.js 10 2018-11-21 18:43:05 +01:00
Daniel García Aubert
54343162a3 Be able run CI test agaisnt Node.js 6 and 10 2018-11-07 18:37:05 +01:00
Daniel García Aubert
6984be4edd Use dependencies compatible with Node.js 10 2018-11-07 18:03:35 +01:00
Daniel García Aubert
805a0e2346 Link released version of pg-copy-streams 2018-10-26 13:34:23 +02:00
Daniel García Aubert
2794e24e84 Use releeased version of cartodb-redis and the development branch of pg-streams 2018-10-26 13:01:04 +02:00
Rafa de la Torre
cf5ad64fd4 Stub next version 2018-09-18 10:33:25 +02:00
Simon Martín
416c3d6285 add mkdirp 2018-08-30 12:27:25 +02:00
Rafa de la Torre
097900f00d Stub next version 2018-07-25 10:00:13 +02:00