Merge branch 'release-v-1.0.2' into getmeasure-using-obsmeta

This commit is contained in:
John Krauss
2016-07-13 18:41:04 -04:00
3 changed files with 25 additions and 1 deletions

20
NEWS.md
View File

@@ -1,3 +1,23 @@
1.0.2 (2016-07-12)
---
__Bugfixes__
* Fix for `OBS_GetCategory` outside the US ([#135](https://github.com/CartoDB/observatory-extension/pull/137))
__Improvements__
* Automated tests cover Mexico data
* `obs_meta` is now provisioned during unit tests
* `OBS_GetMeasureByID` uses `obs_meta` internally, which should help
performance
* `OBS_GetCategory` uses `obs_meta` internally, which should help perfromance
* `OBS_GetCategory` will pick the correct category for an arbitrary polygon
(the category covering the highest % of that polygon)
* Fixtures are only loaded at the start of the unit test suite, and dropped at the end,
instead of at the start/end of each individual test file
* Comment noisy NOTICEs ([#73](https://github.com/CartoDB/observatory-extension/issues/73))
1.0.1 (2016-07-01)
---

View File

@@ -112,6 +112,7 @@ def default_area(column_id):
@parameterized(US_CENSUS_MEASURE_COLUMNS)
def test_get_us_census_measure_points(name):
print 'test_get_us_census_measure_points, ', name
resp = query('''
SELECT * FROM {schema}OBS_GetUSCensusMeasure({point}, '{name}')
'''.format(name=name.replace("'", "''"),
@@ -125,6 +126,7 @@ SELECT * FROM {schema}OBS_GetUSCensusMeasure({point}, '{name}')
@parameterized(MEASURE_COLUMNS)
def test_get_measure_areas(column_id, point_only):
print 'test_get_measure_areas, ', column_id, point_only
if point_only:
return
resp = query('''
@@ -140,6 +142,7 @@ SELECT * FROM {schema}OBS_GetMeasure({area}, '{column_id}')
@parameterized(MEASURE_COLUMNS)
def test_get_measure_points(column_id, point_only):
print 'test_get_measure_points, ', column_id, point_only
resp = query('''
SELECT * FROM {schema}OBS_GetMeasure({point}, '{column_id}')
'''.format(column_id=column_id,
@@ -164,6 +167,7 @@ SELECT * FROM {schema}OBS_GetMeasure({point}, '{column_id}')
@parameterized(CATEGORY_COLUMNS)
def test_get_category_points(column_id):
print 'test_get_category_points, ', column_id
resp = query('''
SELECT * FROM {schema}OBS_GetCategory({point}, '{column_id}')
'''.format(column_id=column_id,

View File

@@ -1,5 +1,5 @@
comment = 'CartoDB Observatory backend extension'
default_version = '1.0.1'
default_version = '1.0.2'
requires = 'postgis'
superuser = true
schema = cdb_observatory