Commit Graph

13 Commits

Author SHA1 Message Date
Esther Lozano
aff725f570
Add response time to pubsub events (#646) 2020-03-10 11:27:17 +01:00
Esther Lozano
0a68b48acc
Avoid normalizing empty fields (#645) 2020-02-26 17:58:32 +01:00
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
Esther Lozano
ac8086a8e3
Rename accepted headers for metrics events (#641)
* Rename accepted headers for metrics events
2020-02-18 11:14:06 +01:00
Esther Lozano
90ee8af129
Allow metrics custom headers in cors (#640)
* Allow metrics custom headers in cors

* Update NEWS.md
2020-02-13 11:30:14 +01:00
Daniel García Aubert
1e413a9332 Eslint errors 2019-12-26 18:28:01 +01:00
Daniel García Aubert
5a96dbb59c Run eslint --fix 2019-12-23 18:19:08 +01:00
Daniel García Aubert
ef43192538 Please JSHint 2019-10-15 13:30:40 +02:00
Daniel García Aubert
be4ecfdc6d Please JSHint 2019-10-15 13:30:13 +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
2ec65375fc Be able to synchronize the TTL of cache-control header to expire in a coherent way 2019-10-15 13:11:49 +02:00
Daniel García Aubert
62d98949ca Consistent middleware naming 2019-10-03 19:35:18 +02:00
Daniel García Aubert
06a47a8afc Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00