Daniel García Aubert
c839a0b0a3
Fix assertions, now MapCofig.getLayer() return {} if layer not found
2017-03-16 16:44:41 +01:00
Raul Ochoa
e74ce9dfd8
Analyses limit configuration allows to set other limits than timeout
...
Configuration is now defined as a dictionary instead of just timeouts
per analysis type
2016-11-10 18:41:59 +01:00
Raul Ochoa
376573459c
Default analyses limits can be defined in configuration
2016-10-20 14:03:42 +02:00
Raul Ochoa
5e6529363b
Remove unused var
2016-05-23 23:29:41 +02:00
Raul Ochoa
e9d1951d48
Use context for datasource 1/2
2016-05-23 19:09:57 +02:00
Raul Ochoa
7ad8a99373
Unify getMapConfig signature for overviews adapter
2016-05-23 18:35:16 +02:00
Raul Ochoa
efcb73e0d1
Named layers adapter with getMapConfig signature
2016-05-23 18:03:45 +02:00
Raul Ochoa
6ccdb6cefd
Overviews adapter with getMapConfig interface
2016-05-23 15:52:31 +02:00
Raul Ochoa
9f6ce64a31
Named maps adapter with getMapConfig interface
2016-05-23 15:39:11 +02:00
Raul Ochoa
69f40e6f6a
Removed duplicated declaration
2016-05-23 13:26:34 +02:00
Raul Ochoa
20725900b6
Overviews adapter into adapters package
2016-05-23 13:25:11 +02:00
Raul Ochoa
ab984729f5
Named layers adapter into adapters package
2016-05-23 13:16:34 +02:00
Javier Goizueta
7a6b1ec871
Fix tests for MapConfigOverviewsAdaptar changes
2016-05-17 16:01:10 +02:00
Javier Goizueta
fd44b62f26
Fix tests for new MapConfigOverviewsAdapter interface
2016-05-12 17:52:39 +02:00
Javier Goizueta
a0445b5cdd
💄 Fix indentation
...
2 spaces were used instead of 4 in some places
2016-04-20 17:47:43 +02:00
Javier Goizueta
7902b276ad
Support unneeded schema names in overviews queries
...
Fixes #420
Keep table schema of overviews base tables and use it
to support queries that use the schema name when not
strictly needed.
2016-04-19 22:50:05 +02:00
Raul Ochoa
df0597f12a
Rename suite
2016-03-03 19:29:42 +01:00
Raul Ochoa
52cb224225
Add integration test with QueryTables module
...
This tests should be better placed at cartodb-query-tables repo but
it's easier to do it here. Lazy dev.
2016-03-03 19:27:44 +01:00
Alejandro Martínez
e67f7b0d0e
Drop old QueryTablesApi
2016-02-22 15:26:06 +01:00
Alejandro Martínez
0e83420e24
Fix long line
2016-02-15 16:15:43 +01:00
Alejandro Martínez
119846b56b
Fix specs
2016-02-15 16:04:13 +01:00
Javier Goizueta
0a218da835
Implement an Overviews query rewriter
...
Use the Windshaft query-rewriter interface to adapt queries so
they use available overview tables.
This requires a version of Windshaft that implements the query-rewriter
interface (package.json/npm-shrinkwap.json have yet to be updated)
2016-02-04 10:26:31 +01:00
Javier Goizueta
6dbb0cb1c1
Emulate new overview table naming schme in the tests
2016-01-26 15:08:55 +01:00
Javier Goizueta
3b6abb5c9f
Refactor construction of OverviewsApi
2016-01-26 11:49:41 +01:00
Javier Goizueta
ef9e9f8c78
Adapt to changes in CDB_Overviews SQL function
...
Now data for multiple tables is obtained in one call, simplifying the
use of this function. Also base table is returned as an oid, so we
now have the overview base table names with schema only when needed.
2016-01-26 11:38:21 +01:00
Javier Goizueta
a6e3b07439
Reformat long lines
2016-01-21 17:42:52 +01:00
Javier Goizueta
6532024330
Add tests for MapConfigOverviewsAdapter
2016-01-21 15:44:22 +01:00
Javier Goizueta
532654eea8
Add tests for the OverviewsApi
2016-01-21 13:33:45 +01:00
Raul Ochoa
9e74e8633a
Merge pull request #359 from CartoDB/query-runner-improvements
...
Query runner improvements
2016-01-13 18:56:26 +01:00
Raul Ochoa
8203c878f4
Send 409 error code when maximum number of templates limit is reached
...
Closes #346
2016-01-12 15:53:16 +01:00
Raul Ochoa
74898e4261
Integration tests for QueryTablesApi
...
Again this is more about how it would be possible to use it isolated.
2015-12-30 17:48:24 +01:00
Raul Ochoa
c664d5392c
Adds some tests about how to use PgQueryRunner isolated
2015-12-30 17:48:00 +01:00
Raul Ochoa
fa7288e03e
Remove redis keys used in tests after each test
2015-09-25 14:08:35 +02:00
Raul Ochoa
bbac1df463
Moves acceptance test about statsd uncaugth exception to integration
2015-09-17 13:40:01 +02:00
Raul Ochoa
c6f9152efe
Moves template maps to backends directory
2015-06-29 16:38:13 +02:00
Raul Ochoa
ed3517e733
fix jshint
2015-04-27 18:08:40 +02:00
Raul Ochoa
6ac3b4c005
fix jshint
2015-04-27 18:05:39 +02:00
Raul Ochoa
d311dd4245
Use PgConnection to set db auth
...
No need to use request context anymore
X-Cache-Channel will be set now even for private tables: fixes #253
2015-02-16 11:57:53 +01:00
Raul Ochoa
2c7bc6adde
Datasource to give per-layer authentication in named layers
...
Make beforeLayergroupCreate to return a datasource with different
authentication for the different layers.
- Named layers will get access to private tables in case it's needed
Changes in MapConfigNamedLayersAdapter:
- It will retrieve the dbAuth params only if named layers are present so
there is no extra overhead for normal layers
- Rename queue function signature from `callback` to `done` so it is easier
to follow the code
Add several tests to validate `named` layers authentication
2015-02-04 11:30:36 +01:00
Raul Ochoa
12c5d835c5
Fix integration tests as I messed with the filename
2015-01-30 19:11:54 +01:00
Raul Ochoa
87eaeb0074
Some integration tests for different cases in named layers type
2015-01-30 18:57:01 +01:00