Commit Graph
20 Commits
Author SHA1 Message Date
Raul Ochoa a9ab9f8b5c Pick render limit and add it to request context
- Extends the problematic fake request in templates
 - Picks the value in waterfall, this must be improved because:
   1. It does not make sense if there is no layers with limits
   2. If we want to include it always without considering the layer type
      we can do the operation in parallel
2015-04-01 15:11:58 +02:00
Raul Ochoa f5f7be627f Move userByReq to its own model 2015-03-23 17:35:09 +01:00
Raul Ochoa 8c09dfd230 No capitalize step 2015-03-16 00:21:55 +01:00
Raul Ochoa 336491b54c Remove unused vars 2015-03-16 00:16:36 +01:00
Raul Ochoa 3c56c1fab3 Adds next param 2015-03-16 00:05:01 +01:00
Raul Ochoa 0a331cee37 do not redefine vars 2015-03-16 00:03:59 +01:00
Raul Ochoa fda8afdaf2 jshint: fix Bad line breaking 2015-03-15 23:44:45 +01:00
Raul Ochoa 90b22b2718 QueryTables and last updated_at retrieved with user
Move setDBAuth and setDBConn to PgConnection entity
 - It uses cartodb-redis to retrieve datasource configuration
Start using it in ServerOptions, TemplateMaps and QueryTablesApi
QueryTablesApi don't receive anymore the connection/credentials
 - It will always use an authenticated query to retrieve last update
 - That will allow to query affected private tables last update
2015-02-09 14:46:52 +01:00
Raul Ochoa 272e8cd221 Adds Surrogate Keys to named maps 2015-01-23 16:37:38 +01:00
Raul Ochoa e8ab3a48c6 Removes TemplateMaps dependency on SignedMaps
- Token validation is done against the template
 - Template is always extended with default values for auth and placeholders
 - MapConfig is extended, in order to validate auth_toknes, with template info:
    - template name
    - template auth
 - No more locks to create, update or delete templates
    - Trusting in redis' hash semantics
    - Some tradeoffs:
        * A client having more templates than allowed by a race condition
        between limit (HLEN) check and creation (HSET)
        * Updating a template could happen while the deleting it, resulting in
        in a new template
        * Templates already instantiated will be accessible thrught their
        layergroup so it is possible to continue requesting tiles/grids/etc.
 - Authorization is now handled by template maps
2015-01-22 15:40:40 +01:00
Raul Ochoa 595dac57a0 Moves setDBParams into controller 2015-01-20 18:14:10 +01:00
Raul Ochoa 007196555d Use userByReq from serverOptions 2015-01-20 18:12:24 +01:00
Raul Ochoa 62ffc05ef4 Move template map instantiation into controller 2015-01-20 17:57:53 +01:00
Raul Ochoa 5962141114 Moves template options to controller 2015-01-20 17:45:47 +01:00
Raul Ochoa 7901a05b55 List templates moved into controller 2015-01-20 17:39:33 +01:00
Raul Ochoa 4c2a0ca048 Delete moved to controller 2015-01-20 17:34:23 +01:00
Raul Ochoa b40c8e6624 Retrieve template moved to controller 2015-01-20 17:17:06 +01:00
Raul Ochoa 97d3b1a03b Move update template to controller 2015-01-20 17:07:55 +01:00
Raul Ochoa fcea0c9b83 Move template creation to controller 2015-01-20 16:58:12 +01:00
Raul Ochoa 7ce8737e75 Initial split template maps endpoint into its own controller 2015-01-20 16:56:06 +01:00