Raul Ochoa
7ae034d746
Remove no longer needed health check params
9 years ago
Raul Ochoa
e0a7eb01cc
Use torque renderer config
...
Adds some notes about db pool params in torque
9 years ago
Raul Ochoa
d6102284a4
Do not return results from health check
...
It also removed old dependencies and takes disabled file path in ctor.
9 years ago
Rafa de la Torre
90d0b23441
Use CDB_QueryTablesText instead of CDB_QueryTables
...
This avoids trouble with len(schema.table_name) > 63
See https://github.com/CartoDB/cartodb-postgresql/issues/86
9 years ago
Raul Ochoa
eaccd062d3
Adds layergroupid header
...
Closes #311
9 years ago
Raul Ochoa
68c70effec
Named maps returning `errors=>Array` instead of `error=>String`
9 years ago
Raul Ochoa
6685b759b2
Remove duplicated module.exports
9 years ago
Raul Ochoa
9613f76ef5
Keep placeholder key validation independent from name validation
9 years ago
Raul Ochoa
3f0d344313
Changes rules for names in templates
...
Now valid names can start with numbers and can contain dashes (-).
Closes #306
9 years ago
Raul Ochoa
513fa2af01
Log all named map invalidation with context
10 years ago
Raul Ochoa
7580081a64
Append stats to profiler
10 years ago
Raul Ochoa
1a66f96379
Adds custom cache control header for named map static images
10 years ago
Raul Ochoa
fde680450f
Do not use headers from abaculus in combination with sendWithHeaders
10 years ago
Raul Ochoa
6843692f01
Pick format from user params
10 years ago
Raul Ochoa
1f3a073f21
Use headers from fake request
10 years ago
Raul Ochoa
9edec8ef3f
Adds Fastly cache backend
10 years ago
Raul Ochoa
c06cba81f4
SurrogateKeysCache now accepts several cache backends
...
- uses queue-async to parallelize the call to invalidate
10 years ago
Raul Ochoa
ad5514dd02
Pick fastly config for server options
10 years ago
Raul Ochoa
a5b9ca706c
Adds new fastly cache backend
10 years ago
Raul Ochoa
5ee19cc2ed
Rename template maps controller to named maps to be more clear
10 years ago
Raul Ochoa
8c3f9c7ba0
Inject server options to use setDBParams
10 years ago
Raul Ochoa
b95a001e0b
New static maps controller/endpoint for named maps
...
- loads a template
- creates a layergroup on the fly
- checks for view center+zoom or bounds
- if not found it tries to estimate them
- if fails it falls to default bounds value
- returns an static image tagged with a surrogate key
10 years ago
Raul Ochoa
d180305e8b
Exposes pgQueryRunner in server options
10 years ago
Raul Ochoa
ef8fcf7e93
Do not inject NamedMapsCacheEntry as template controller knows about them
...
Also do not inject pgConnection
10 years ago
Raul Ochoa
e7bd5dd644
Moves setDBParams to serverOptions so it can be reused
10 years ago
Raul Ochoa
8503a5c7c9
Tables extent API: returns estimated bounds for a list of tables
10 years ago
Raul Ochoa
2de0e5d52b
Extracts psql query run to its own class to be reusable
10 years ago
Raul Ochoa
8fb3dc7529
Move templateName function to template maps model
10 years ago
Raul Ochoa
446c432484
dry content type validation
10 years ago
Raul Ochoa
c49f3aaba5
DRY ifUnauthenticated method
10 years ago
Raul Ochoa
fed29b3b50
Extract finish function
10 years ago
Raul Ochoa
e7d134d70c
No more {username}@{template_name} template id
...
It's still backwards compatible
10 years ago
Raul Ochoa
026a0750e3
Call callback on invalid map store token for named maps
...
fixes #267
10 years ago
Raul Ochoa
0c578a193c
Remove stack for debug environment option
10 years ago
Raul Ochoa
84f579f0ec
Do not add x-profiler header as it's already added by sendResponse
10 years ago
Raul Ochoa
1bf2809355
Do not check statsd_client in profiler
10 years ago
Raul Ochoa
e91bc91057
Adds test suite for x-cache-channel
10 years ago
Raul Ochoa
2d84d38b90
Do not add x-cache-channel header for GET template routes
10 years ago
Raul Ochoa
98bc95bc58
Add user from params to fakereq object so it's propagated
...
fixes #280
10 years ago
Raul Ochoa
ab9ae60958
Merge branch 'master' into render-limits
10 years ago
Raul Ochoa
2eb7529efb
Pick cacheOnTimeout and render limit from mapnik config
...
- adds default mapnik configuration values
- removes old top-level mapnik config, rely on renderer one
10 years ago
Luis Bosque
7934d659fb
Removed more unused code from healthcheck
10 years ago
Luis Bosque
21b5ed9c8a
Fixed healthcheck for jshint
10 years ago
Luis Bosque
da70839f78
Disable per-user healthchecks
10 years ago
Raul Ochoa
2e1f08d764
Adds a feature flag to cache timed out tile requests: cacheOnTimeout
10 years ago
Raul Ochoa
e3c6569302
Adds an onTileErrorStrategy that intercepts error timeout
...
- returns an fallback image without error
10 years ago
Raul Ochoa
38e4812b43
Restore previous beforeLayergroupCreate hook behaviour
...
Adds new rendercache's beforeRendererCreate hook
10 years ago
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
10 years ago
Raul Ochoa
f019f34601
Mapnik renderer configuration not part of the `renderer` root configuration
...
- All configuration must be moved into `renderer.mapnik`
- see `config/environments/*.js.example` for reference
10 years ago
Raul Ochoa
400e51f13a
Removes rollbar as optional logger
10 years ago