Commit Graph

601 Commits

Author SHA1 Message Date
John Krauss
61854a070d fix wrong quoting 2016-07-12 14:11:02 -04:00
John Krauss
8654c22c87 handle area categories properly 2016-07-12 14:06:43 -04:00
John Krauss
62c08864af remove bad "target_table" notice 2016-07-12 12:37:30 -04:00
John Krauss
af39a37b43 fix missing comma 2016-07-12 12:34:32 -04:00
John Krauss
26b61a6ddb minor formatting 2016-07-12 12:26:10 -04:00
John Krauss
965fb94704 fix bugs in obs_getcategory implementation 2016-07-12 12:22:06 -04:00
John Krauss
84dec8bdf4 simplify obs_getcategory and use obs_meta 2016-07-12 12:09:42 -04:00
John Krauss
ebc27dbbb7 faster obs_meta generation, use better formatting and handle NULL boundary_id 2016-07-12 11:52:56 -04:00
John Krauss
56fa19118b adjust expectations 2016-07-12 11:25:50 -04:00
John Krauss
4f3baac10a adjust expectations and make sure echo is none 2016-07-12 11:21:42 -04:00
John Krauss
b512985b46 drop/create less, better indexes 2016-07-12 11:15:08 -04:00
John Krauss
329b4dbca3 do not imitate foreign keys 2016-07-12 10:46:53 -04:00
John Krauss
897cf38d42 faster generation of obs-meta via indexes 2016-07-12 10:42:00 -04:00
John Krauss
fe6343c73f should use coaelesce, not nullif 2016-07-12 10:16:19 -04:00
John Krauss
26ee8aedb1 solve null identifier issue 2016-07-12 10:16:13 -04:00
John Krauss
66e2c6be54 create obs_meta out of dump band 2016-07-12 10:16:02 -04:00
John Krauss
6b41994a87 add missing formatstring args 2016-07-12 10:15:53 -04:00
John Krauss
d3d5cbdbbd use obs_meta in obs_getmeasurebyid 2016-07-12 10:15:44 -04:00
John Krauss
4d51ecc12e comment out notices 2016-07-12 10:14:59 -04:00
Rafa de la Torre
926435a908 Update NEWS and control file for v1.0.1 2016-07-01 18:57:21 +02:00
John Krauss
11dbb860ab preemptively set_srid for obs_getavailableboundaries 2016-07-01 18:43:05 +02:00
Carla
9ade6588e2 Add augment functions, add mocks for data retrieval, create own fdw functions to avoid cartodb dependency 2016-07-01 12:31:39 +02:00
John Krauss
17aeb5187b update to NEWS and control file in prep for release 2016-06-27 12:51:39 -04:00
John Krauss
cf7c115a76 Merge branch 'release-v-0.0.6' into fix-geom_geoid_colname 2016-06-27 12:39:09 -04:00
John Krauss
4e8341daab Merge branch 'release-v-0.0.6' into obs-dump-version 2016-06-27 12:37:15 -04:00
John Krauss
ca4327d3cd use data_geoid_colname with data table, reenable area-based measure tests that can catch this bug 2016-06-27 11:55:03 -04:00
John Krauss
bac48d7bea add missing RETURN 2016-06-22 14:35:40 -04:00
John Krauss
91383fe933 correct obs_getdumpversion to obs_dumpversion 2016-06-22 14:33:53 -04:00
John Krauss
446bdec30d obs_dumpversion and associated tests 2016-06-22 14:29:58 -04:00
John Krauss
f362e97f88 remove geometrycollection from obs_table fixture 2016-06-22 14:20:03 -04:00
John Krauss
975137641d fix ambiguous reference o the_geom 2016-06-22 13:38:29 -04:00
John Krauss
9379224629 use intersection against geom instead of && against bounds, update fixtures 2016-06-22 12:20:52 -04:00
Andy Eschbacher
8fbb9ebbcc updating version to 0.0.5 2016-05-26 13:48:37 -04:00
Andy Eschbacher
076e285ed7 adds notes on test calls 2016-05-26 13:37:02 -04:00
Andy Eschbacher
43dc37f62b Merge branch 'develop' into add-getmeasurebyid 2016-05-26 13:31:55 -04:00
Andy Eschbacher
49d584822c adds another test on different types of inputs 2016-05-26 13:28:56 -04:00
Mario de Frutos
faa72b69ed Version 0.0.4 files 2016-05-25 15:45:59 +02:00
John Krauss
de567e4dc7 fix expectations that were borked because of a holey fixture resolved with https://github.com/CartoDB/bigmetadata/issues/38 2016-05-24 15:18:40 -04:00
John Krauss
614bce3051 remove tight binding between metadata and tests for some of the exploration tests 2016-05-24 13:24:37 -04:00
Andy Eschbacher
b5267c14bf removes unneeded todo 2016-05-24 13:15:19 -04:00
Andy Eschbacher
afb548c75d adds tests 2016-05-24 12:02:32 -04:00
Andy Eschbacher
94756a2377 minor formatting changes 2016-05-24 11:27:41 -04:00
Andy Eschbacher
2e312464aa fixes geom_ref in where condition 2016-05-24 11:22:39 -04:00
Andy Eschbacher
3f77a384c7 adds missing comma 2016-05-24 11:06:53 -04:00
Andy Eschbacher
1ba7299fe4 adds obs_getmeasurebyid 2016-05-24 11:02:35 -04:00
John Krauss
45ae255223 update es.ine expectations and tests 2016-05-24 12:51:55 +00:00
John Krauss
dc5e9ba2ad update fixtures and swap us.census.acs.demographics for us.census% fuzzy match for getuscensusmeasure 2016-05-24 12:34:06 +00:00
Mario de Frutos
b848ccc077 Version 0.0.3 release files 2016-05-24 11:45:45 +02:00
Andy Eschbacher
7e431ea223 adding forgotten test expectation 2016-05-21 10:15:01 -04:00
John Krauss
73dfba2d4b Merge remote-tracking branch 'origin/develop' into more-tests-for-boundaries 2016-05-20 18:02:32 -04:00
John Krauss
90aa7c2417 Merge branch 'develop' into remove-geoid-from-obs_getpolygons 2016-05-20 18:00:51 -04:00
john krauss
a1bbd5ace5 Merge pull request #67 from CartoDB/iss66-cast-geom-ids-to-text
cast geom ids to text
2016-05-20 17:59:07 -04:00
Andy Eschbacher
d92f472708 remove verbose version of test 2016-05-19 16:52:31 -04:00
Andy Eschbacher
38226e40b4 merge from develop 2016-05-19 16:48:40 -04:00
Mario de Frutos
00165b17e6 Fixed wrong return for an empty element in _OBS_Get 2016-05-18 09:55:16 +02:00
Andy Eschbacher
a9d357699a Merge branch 'develop' into iss66-cast-geom-ids-to-text 2016-05-17 11:52:48 -04:00
John Krauss
8d17375766 fix extra "u" 2016-05-17 11:39:11 -04:00
John Krauss
ddf9e9f3cc fixes to segment expectation 2016-05-17 11:35:19 -04:00
John Krauss
3983967920 Merge branch 'develop' into get_segment_snapshot_fix 2016-05-17 11:20:32 -04:00
Andy Eschbacher
3f76602028 adding who's on first expectation 2016-05-17 11:13:17 -04:00
Andy Eschbacher
e145d26cbd adding new fixtures with who's on first 2016-05-17 11:12:57 -04:00
Andy Eschbacher
fd483b60f4 Merge branch 'develop' into iss66-cast-geom-ids-to-text 2016-05-17 11:09:10 -04:00
Andy Eschbacher
e4d8422787 update test results 2016-05-17 11:02:59 -04:00
Andy Eschbacher
80d7813845 removes whitespaces 2016-05-17 08:33:43 -04:00
Andy Eschbacher
0d5e45fc98 Merge branch 'develop' into update-total-pop-column-ids 2016-05-17 08:30:02 -04:00
Andy Eschbacher
52f44e995a updating expected outputs for tests 2016-05-17 08:28:45 -04:00
Andy Eschbacher
b73883aa1c updates fixtures 2016-05-17 08:28:23 -04:00
Andy Eschbacher
4f82b9d3f2 update test outputs 2016-05-17 08:27:55 -04:00
Mario de Frutos
f17dc6d8ff Added return statements when missing 2016-05-17 11:06:43 +02:00
Andy Eschbacher
f0baf48e85 update timespan 2016-05-16 17:50:17 -04:00
Andy Eschbacher
1a51c786d3 Merge branch 'develop' into update-total-pop-column-ids 2016-05-16 16:50:15 -04:00
Andy Eschbacher
a3bf071acb adding more recent defaults and return catches for return query 2016-05-16 16:49:48 -04:00
Andy Eschbacher
b5f4a617e8 adding more tests 2016-05-16 14:40:59 -04:00
Andy Eschbacher
57adaf78d6 puts in data_geoid 2016-05-16 14:30:27 -04:00
Andy Eschbacher
60e716878f template geoid 2016-05-16 14:00:04 -04:00
Andy Eschbacher
1e0b0a181c removing geoid from obs_getpolygons 2016-05-16 13:32:55 -04:00
Mario de Frutos
75c8e052a1 Fixed more casts to text 2016-05-16 18:01:53 +02:00
Mario de Frutos
4536de681e Cast aggregate to text 2016-05-16 17:53:58 +02:00
Andy Eschbacher
b074c1194b casting return types to text 2016-05-16 11:50:12 -04:00
Andy Eschbacher
126643b84e casting to text, fixing return catch 2016-05-16 11:15:15 -04:00
Andy Eschbacher
08bbfe190a putting cast in proper place 2016-05-16 10:23:59 -04:00
Andy Eschbacher
73e768d698 cast returned values to text 2016-05-16 10:21:32 -04:00
Stuart Lynn
06204d471e fixing obs_getSegmentSnapshot 2016-05-13 15:40:48 -04:00
Andy Eschbacher
c6213e388c updating fixtures for new metadata defintions 2016-05-13 13:42:34 -04:00
Andy Eschbacher
9ff99cbfbd updating total pop column reference 2016-05-13 11:23:10 -04:00
Andy Eschbacher
7e7f572bf1 Merge branch 'develop' into docs-768-obs-docs-structure 2016-05-13 09:36:46 -04:00
Andy Eschbacher
2c10e75af6 cast return value of obs_getboundaryid to text 2016-05-13 06:51:13 -04:00
Andy Eschbacher
8696037dd6 adding test of who's on first 2016-05-12 22:29:46 -04:00
Andy Eschbacher
4fb79c6bc4 adds missing returns to properly exit function 2016-05-12 21:32:44 -04:00
Andy Eschbacher
18eb4b8e41 casting geom_refs to text 2016-05-12 21:08:58 -04:00
Andy Eschbacher
02a4dbde57 using appropriate operators in format function 2016-05-12 15:13:50 -04:00
John Krauss
aca37666fa Merge remote-tracking branch 'origin/develop' into default-recent-timespan-weighted-geom 2016-05-12 09:51:14 -04:00
John Krauss
8e3c75a94b Merge branch 'develop' into remove-geoid-from-getboundaryid 2016-05-12 09:48:50 -04:00
John Krauss
1152eb542a Merge branch 'iss52-timespan-overuse' into develop 2016-05-12 09:47:47 -04:00
John Krauss
3f1b1cfcb9 update tests to work with latest zillow 2016-05-12 09:39:44 -04:00
Andy Eschbacher
ebb2af249b adding back missing return; 2016-05-12 08:31:20 -04:00
Andy Eschbacher
9a7c0885bf remove words error when it's a notice 2016-05-12 08:08:13 -04:00
Andy Eschbacher
a6c395e3be remove hard-coded geoid from getgeometryid 2016-05-12 08:03:06 -04:00
John Krauss
506f9ead30 first-pass defaults to latest timespan/boundary_id 2016-05-11 18:17:48 -04:00
John Krauss
ccf61c3583 array typing issues 2016-05-11 17:59:58 -04:00
John Krauss
d1c2598167 fix bug with table alias 2016-05-11 17:57:46 -04:00
John Krauss
b2b34bfe05 default to latest if unspecified timespan/boundary id 2016-05-11 17:55:52 -04:00
John Krauss
011baaacd5 Merge branch 'develop' into default-recent-timespan-weighted-geom 2016-05-11 16:58:14 -04:00
John Krauss
ce0601e157 include correct zcta rows 2016-05-11 16:35:40 -04:00
John Krauss
e9f6326f04 add missing tiger.zcta5 2016-05-11 16:25:32 -04:00
John Krauss
7e1fcc2b15 fix broken schema in tests 2016-05-11 16:20:59 -04:00
Andy Eschbacher
b656569d51 remove unused normalize type from error reporting 2016-05-11 16:18:14 -04:00
John Krauss
addaef7d40 zillow expectation 2016-05-11 16:09:52 -04:00
John Krauss
d2233609bc add zillow test, still missing expectation 2016-05-11 16:08:59 -04:00
John Krauss
aab24d00dd use data_geoid_colname for data, geom_geoid_colname for geom 2016-05-11 15:47:29 -04:00
John Krauss
56f4d2f256 fix geoid hardcode 2016-05-11 14:58:19 -04:00
Andy Eschbacher
b21ff8a65e adding errors to docs 2016-05-11 14:50:23 -04:00
Andy Eschbacher
4d60a211de fixes timespan mis-naming issue 2016-05-11 13:38:51 -04:00
Andy Eschbacher
9d3bb40877 scratch work to get _obs_columndata to return better defaults 2016-05-11 11:39:23 -04:00
Andy Eschbacher
ec1c2f8dfb removing hard-coded geoid from _obs_getpoints 2016-05-11 11:25:08 -04:00
Andy Eschbacher
c05d4cb909 Merge pull request #53 from CartoDB/iss51-tests-fixes
update tests to account for json responses with different key orders and
2016-05-11 08:44:44 -04:00
Andy Eschbacher
7c655dcaa6 converting to point geoms 2016-05-10 15:44:58 -04:00
Andy Eschbacher
f9394129d9 add missing schema to function 2016-05-10 15:21:58 -04:00
Andy Eschbacher
dfbdb3c9ad updating geometry types to (geometry/point, 4326) where appropriate 2016-05-10 15:09:07 -04:00
Andy Eschbacher
25b3e5e2ec update tests to account for json responses with different key orders and
numeric precision
2016-05-10 14:24:21 -04:00
Andy Eschbacher
e39b438a0a updating tests after adding new fixtures 2016-05-06 07:47:00 -04:00
Andy Eschbacher
d747d3d3a9 scratch work to figure out test behavior 2016-05-05 17:53:11 -04:00
Andy Eschbacher
a5a011e9db removed unused test 2016-05-05 17:52:41 -04:00
Andy Eschbacher
c46630847b minor edits 2016-05-05 17:51:32 -04:00
Andy Eschbacher
67c66358e8 updating test for 41 2016-05-05 16:22:08 -04:00
John Krauss
d4b0f72016 updated fixture file 2016-05-05 15:51:36 -04:00
Andy Eschbacher
66f2948d4d Merge branch 'fixture-autogen' of https://github.com/CartoDB/observatory-extension into fixture-autogen 2016-05-05 15:39:30 -04:00
Andy Eschbacher
cff1189acd updating default timespan 2016-05-05 15:39:17 -04:00
John Krauss
290ca3cb20 a few more lines 2016-05-05 15:00:03 -04:00
John Krauss
e306408a6a fix fixture, test and function bugs 2016-05-05 14:58:06 -04:00
John Krauss
499eb6da62 fix casting issue 2016-05-05 14:49:43 -04:00
John Krauss
5dcec6e126 fix comma bug 2016-05-05 14:48:34 -04:00
John Krauss
73f8ea1b4e allow _obs_geomtable to take a timespan, and default to most recent 2016-05-05 14:45:56 -04:00
John Krauss
7aabc1be76 update expectations for 40 2016-05-05 14:36:07 -04:00
John Krauss
111d07c80a update test 2016-05-05 14:31:16 -04:00
Andy Eschbacher
4a3d35759b fix tests after adding new fixtures 2016-05-05 14:20:57 -04:00
Andy Eschbacher
10df7bc745 Merge branch 'develop' into fixture-autogen 2016-05-05 14:06:54 -04:00
Andy Eschbacher
a60fe76259 minor test fixes 2016-05-05 14:01:53 -04:00
John Krauss
b938058b92 for now stick to 2009-2013 default 2016-05-05 14:01:42 -04:00
John Krauss
92d090a392 switch optional defaults to null 2016-05-05 13:59:08 -04:00
Andy Eschbacher
f8e5d162ec fixing tests after adding new fixtures 2016-05-05 13:57:54 -04:00
Andy Eschbacher
3b9d71aa00 move fixture scripts to fixtures/ 2016-05-05 13:54:04 -04:00
Andy Eschbacher
c03800779a removing old fixtures 2016-05-05 13:53:30 -04:00
Andy Eschbacher
ef42e1212c regenerated fixtures 2016-05-05 13:52:23 -04:00
John Krauss
3299bb013b kill obs_lookupcensushuman 2016-05-05 11:46:04 -04:00
John Krauss
5d20bd0804 remove test expectations 2016-05-05 11:43:16 -04:00
John Krauss
14ab3bef6a remove _obs_getcensus and make demographicsnapshot use obs_get directly 2016-05-05 11:37:04 -04:00
John Krauss
ab75d2ecd6 Merge branch 'develop' into eliminate-quotes-in-ids 2016-05-03 17:16:28 -04:00
Andy Eschbacher
7dcc22828f whitespace in tests uggggh 2016-05-03 17:11:27 -04:00
Andy Eschbacher
af1afa57f3 adding spaces to header 2016-05-03 17:07:18 -04:00
Andy Eschbacher
ea8b212d45 adding missing header formatting for test 2016-05-03 17:04:18 -04:00
Andy Eschbacher
1b3e8f52e1 fixing tests after adding new fixture data 2016-05-03 17:00:15 -04:00
Andy Eschbacher
199f090d7b fix test after adding more fixture data 2016-05-03 16:51:57 -04:00
Andy Eschbacher
59b5a09b32 adding all of brooklyn to segments fixtures 2016-05-03 16:41:08 -04:00
John Krauss
050398bc84 eliminate extra quotes 2016-05-03 16:32:52 -04:00
John Krauss
fe7035c702 Merge branch 'add-boundary-bbox-functions' into eliminate-quotes-in-ids 2016-05-03 16:25:55 -04:00
John Krauss
cccf2a6615 fix slight numeric differences 2016-05-03 15:19:46 -04:00
John Krauss
4125f05b28 fix expectations 2016-05-03 14:31:00 -04:00
John Krauss
998d6e742c fix expectations 2016-05-03 14:29:13 -04:00
John Krauss
47b2227453 fix obs_search signature & tests 2016-05-03 14:27:36 -04:00
John Krauss
685cb21779 fix broken columns metadata fixture and some other expectations 2016-05-03 14:23:26 -04:00
John Krauss
7f2d675602 eliminate quotes in IDs 2016-05-03 14:10:47 -04:00
Andy Eschbacher
c6ad6b3c08 boundary expected test results 2016-05-02 15:42:22 -04:00
Andy Eschbacher
2d635db39b adding tests for boundary functions 2016-05-02 15:40:43 -04:00
Andy Eschbacher
9601aab581 move misplaced todo; add missing declared var 2016-05-02 14:18:53 -04:00
Andy Eschbacher
2200b2e437 extracting getboundariesbybbox to interal, more general function 2016-05-02 12:12:49 -04:00
Andy Eschbacher
57fe6862b0 small edits 2016-05-02 08:55:01 -04:00
Andy Eschbacher
7556e43b22 change return name of boundaries to the_geom 2016-04-29 14:02:00 -07:00
Andy Eschbacher
530ce4e61e changing overlap default to intersects 2016-04-29 08:52:05 -07:00
Andy Eschbacher
ac3574b98b adding user-selected overlap methods 2016-04-28 16:45:41 -07:00
Andy Eschbacher
2325f97684 formatting 2016-04-28 16:33:07 -07:00
Andy Eschbacher
ab93ff4ec0 adding _obs_getgeometrymetadata function 2016-04-28 16:25:10 -07:00
Andy Eschbacher
0ba66c8f31 adding point and radius functions 2016-04-28 12:05:36 -07:00
Andy Eschbacher
1a19e33877 adding boundaries by bbox functions 2016-04-28 11:14:15 -07:00
John Krauss
502ffca6ec increment version 2016-04-28 13:38:01 -04:00
John Krauss
cdf70ea545 fix tests 2016-04-28 13:28:38 -04:00
Andy Eschbacher
d5e67b9fe1 updating getGeometry* to getBoundary* 2016-04-27 13:07:19 -07:00
Andy Eschbacher
6230e52d98 quashing more cdb_latlng 2016-04-27 11:09:47 -07:00
Andy Eschbacher
a9d084e250 removing cdb_latlng from tests 2016-04-27 10:54:54 -07:00
Andy Eschbacher
11df52dc3b remove cartodb dependency 2016-04-27 10:28:53 -07:00
John Krauss
8e38cafe87 fix to work with little area 2016-04-25 19:13:07 -04:00
John Krauss
4ad485984c fix expectations & fixture metadata 2016-04-25 19:08:29 -04:00
John Krauss
236ad00a26 fix bug in drop_fixtures 2016-04-25 18:59:01 -04:00
John Krauss
73ab1ea58a add new fixture 2016-04-25 18:55:29 -04:00
John Krauss
dc66ec40c4 fix nullvalue miscounting 2016-04-25 18:29:10 -04:00
John Krauss
d686b6b436 fix namespace issue 2016-04-25 18:20:26 -04:00
John Krauss
c9c5509f6b more expectation fixes 2016-04-25 18:00:51 -04:00
John Krauss
2152f97c9d fixing some bugs introduced by merge into tests 2016-04-25 17:58:36 -04:00
John Krauss
12610e8a8a adjust getmeasure and getcategory to work with json 2016-04-25 17:55:40 -04:00
John Krauss
f2d71fb5a0 fix signature bugs 2016-04-25 16:40:25 -04:00
John Krauss
647ebf9255 fix signature bugs 2016-04-25 16:39:23 -04:00
John Krauss
10fc4f56f0 fix bug with variable declaration 2016-04-25 16:31:06 -04:00
John Krauss
108fa9cc56 Merge branch 'release_v1_api_functions' into release_v1_api_functions_aug_use 2016-04-25 16:25:11 -04:00
John Krauss
0274337ded include both carriage returns and newlines in test expectation 2016-04-25 16:15:54 -04:00
John Krauss
34e2fdd284 carriage return for multiline 2016-04-25 16:10:10 -04:00
John Krauss
c45b2cfdd5 fixing test errors 2016-04-25 15:49:59 -04:00
John Krauss
972b9b941f Merge branch 'release_v1_api_functions' into release_v1_api_functions_add_boundary_functions 2016-04-25 15:41:32 -04:00
John Krauss
4e87eae904 Merge branch 'release_v1_api_functions' into get_obs_json_version 2016-04-25 15:35:49 -04:00
John Krauss
b93ea03786 update tests for segmentation to work with JSON 2016-04-25 15:31:39 -04:00
John Krauss
3e99b2deeb add in missing test 2016-04-25 15:19:38 -04:00
John Krauss
0d811f6eb3 uncomment some public-facing code 2016-04-25 15:10:09 -04:00
John Krauss
0535d3e305 fixes for first test in 41 2016-04-25 15:00:56 -04:00
John Krauss
82a838ff74 whitespace fixes 2016-04-25 14:56:45 -04:00
Stuart Lynn
21d306898b typo 2016-04-25 13:24:39 -04:00
Stuart Lynn
ace34f6ad8 removing table returning census snapshot function for json returning one for now 2016-04-25 10:45:54 -04:00
Stuart Lynn
20ec7ef25a whitespace fix 2016-04-25 10:18:18 -04:00
Stuart Lynn
511a15d993 removing extra test statment 2016-04-25 10:15:08 -04:00
Stuart Lynn
07b678e448 test for obs get census 2016-04-25 10:12:43 -04:00
Stuart Lynn
68f5bce80b updating get census functions to work with new json internals 2016-04-25 09:52:34 -04:00
Stuart Lynn
6709ce1589 removing extra json in function causing bug 2016-04-25 09:24:25 -04:00
Andy Eschbacher
55bbe55b4a adding tests for getgeometry* 2016-04-22 21:21:18 -04:00
Andy Eschbacher
0ab7982727 adding expected out for getgeometry* functions 2016-04-22 21:20:43 -04:00
Andy Eschbacher
18445d7755 adding better comments and tidying up code 2016-04-22 21:19:55 -04:00
Andy Eschbacher
ebc2c6dec5 adding tests for _obs_searchtables 2016-04-22 21:19:19 -04:00
Andy Eschbacher
54c3407d49 adding fixture to load/drop scripts 2016-04-22 20:55:59 -04:00
Stuart Lynn
aa29a287d1 tests for OBS_GetCategories 2016-04-22 16:49:51 -04:00
Stuart Lynn
0406d493a7 removing extra JSON from testing 2016-04-22 16:49:38 -04:00
Stuart Lynn
a9b22caadf updating OBS_GetCategories to json internals 2016-04-22 16:40:21 -04:00
Stuart Lynn
2c46a72038 bug fix 2016-04-22 16:14:56 -04:00
Stuart Lynn
7782bdeec2 adding tests fro new json returning get methods 2016-04-22 16:10:41 -04:00
Stuart Lynn
69ac0d25f2 Adding tests for new json returning utility functions 2016-04-22 16:10:30 -04:00
Andy Eschbacher
31609e347a adding new fixture 2016-04-22 15:48:07 -04:00
Andy Eschbacher
6fa7bcd871 adding expected for getgeom functions 2016-04-22 15:08:34 -04:00
Stuart Lynn
3394483a45 migrating OBS_GET, OBS_GetPoints, OBS_GetPolygons and OBS_GetMeasure to all use json internals 2016-04-22 14:45:22 -04:00
Stuart Lynn
7659ededaa Changing OBS_GetColumnData to return json and more metadata 2016-04-22 14:43:56 -04:00
John Krauss
a8829e76da fix expectations 2016-04-22 13:55:41 -04:00
John Krauss
7e9047eaf0 first pass getcategories & tests 2016-04-22 13:52:53 -04:00
John Krauss
830a65b93f remove internal use of json 2016-04-22 12:28:16 -04:00
John Krauss
22549206c2 return numeric instead of json for obs_getmeasure and obs_getuscensusmeasure 2016-04-22 12:23:14 -04:00
John Krauss
0baa3b4a33 updating expectations 2016-04-22 12:15:58 -04:00
John Krauss
0221379606 fix missing tabs 2016-04-22 12:01:45 -04:00
John Krauss
893002e6c0 add obs_column_tag and obs_tag fixtures 2016-04-22 11:52:47 -04:00
John Krauss
8268044c2f basic tests 2016-04-21 22:43:00 -04:00
John Krauss
74e4e5877a first pass obs_getuscensusmeasure functioning 2016-04-21 22:40:40 -04:00
Andy Eschbacher
6d30ee352c adding schema 2016-04-21 16:29:27 -04:00
Andy Eschbacher
17267c5894 adding schema hard-coded to function names 2016-04-21 16:22:32 -04:00
Andy Eschbacher
a2a0a6f3b7 harmonizing functions with timespan 2016-04-21 16:19:51 -04:00
Stuart Lynn
1e625ce3ef Updated version of OBS_Get to support json returning 2016-04-21 15:18:39 -04:00
Stuart Lynn
00d43a7812 Updating OBS_ColumnData to support more info 2016-04-21 15:16:04 -04:00
Andy Eschbacher
e119e0ddda make search_tables a table returning function 2016-04-21 15:13:02 -04:00
John Krauss
516ac1e358 Merge branch 'release_v1_api_functions' into release_v1_api_functions_aug_use 2016-04-21 14:22:41 -04:00
John Krauss
5411079553 fix expectations 2016-04-21 14:20:16 -04:00
John Krauss
6fd8a43e44 adding standardizemeasurename 2016-04-21 14:17:31 -04:00
John Krauss
f5e2ae6273 updated expectations 2016-04-21 13:57:08 -04:00
John Krauss
be20b052ce first-pass working denominator for getmeasure 2016-04-21 13:54:09 -04:00
John Krauss
b16a2ca6a8 Merge remote-tracking branch 'origin/release_v1_api_functions' into release_v1_api_functions_aug_use 2016-04-21 12:32:34 -04:00
john krauss
06232b235a Merge pull request #21 from CartoDB/denominator
adding _OBS_GetRelatedColumn function
2016-04-21 12:31:31 -04:00
John Krauss
afd1be30b5 fixing whitespace 2016-04-21 12:30:50 -04:00
John Krauss
90a944070d more test and whitespace fixes 2016-04-21 12:26:55 -04:00
John Krauss
b8148768b8 fix whitespace and bug in test call 2016-04-21 12:22:20 -04:00
Stuart Lynn
6684c67e61 updating function name 2016-04-21 12:14:30 -04:00
John Krauss
06290fedf7 matching expectations 2016-04-21 11:41:52 -04:00
John Krauss
722b9404dc tests for getpopulation 2016-04-21 11:39:44 -04:00
John Krauss
24eeaa787d first-pass obs_getpopulation 2016-04-21 11:33:37 -04:00
Andy Eschbacher
e72583e15c formatting 2016-04-21 09:48:43 -04:00
Andy Eschbacher
16d65d01f3 finishing getgeometrybyid 2016-04-21 09:48:20 -04:00
Stuart Lynn
c10da16d55 adding _OBS_GetRelatedColumn function 2016-04-20 17:24:07 -04:00
john krauss
17db441b6e Merge pull request #19 from CartoDB/add_back_search_functions
Adding OBS_search function and tests
2016-04-20 17:16:45 -04:00
John Krauss
75f4e6d412 add trailing whitespace 2016-04-20 17:11:12 -04:00
John Krauss
1702a392b3 add trailing whitespace 2016-04-20 17:08:56 -04:00
John Krauss
30c1ed08c0 adjusting expectations 2016-04-20 17:05:29 -04:00
John Krauss
39e9ff32e5 missing "and" 2016-04-20 16:57:07 -04:00
John Krauss
851419a927 fix duplicate var name issue 2016-04-20 16:49:41 -04:00
John Krauss
a6655003aa fix duplicate var name issue 2016-04-20 16:47:40 -04:00
John Krauss
6696d4fcf5 adding id to return for obs_search, fixing OBS_GetAvailableBoundaries 2016-04-20 16:45:24 -04:00
John Krauss
594c6b5d80 test_point => TestPoint 2016-04-20 16:23:57 -04:00
John Krauss
73f4a682cf fix whitespace and testpoint 2016-04-20 16:22:13 -04:00
John Krauss
1f6347aa23 adjusting expectations to reflect reality of the situation 2016-04-20 16:18:20 -04:00
John Krauss
d016c4b4bd remove typo in sql def 2016-04-20 16:15:39 -04:00
John Krauss
83119d0720 fix expectation typo 2016-04-20 16:12:23 -04:00
John Krauss
e90a0c1900 tautolotest 2016-04-20 16:03:14 -04:00
John Krauss
5e69297836 first pass obs_getmeasure 2016-04-20 15:51:19 -04:00
Stuart Lynn
b8d42a41dd adding OBS_GetAvailableBoundaries 2016-04-20 15:28:45 -04:00
Andy Eschbacher
8f161c1e68 debugged getgeometry and getgeometryid 2016-04-20 15:13:22 -04:00
Stuart Lynn
a29876f47f making obs_search a bit more secure 2016-04-20 13:42:13 -04:00
Stuart Lynn
6e9f4a03d1 Adding OBS_search function and tests 2016-04-20 13:28:27 -04:00
Rafa de la Torre
d6077457dd Revert "Make OBS_GetDemographicSnapshot return json"
This reverts commit 987cfde7b6.
2016-04-20 11:12:41 +02:00
Rafa de la Torre
987cfde7b6 Make OBS_GetDemographicSnapshot return json 2016-04-19 17:54:56 +02:00
Carla Iriberri
077f8fedf5 Wrap functions in row_to_json 2016-04-19 17:31:08 +02:00
Carla Iriberri
ad55625769 Rename private functions and edit tests 2016-04-19 15:39:31 +02:00
Rafa de la Torre
e9f390526b Make expected values of observatory functions match actual ones 2016-04-19 15:13:18 +02:00
Rafa de la Torre
96b3a085b6 Remove fixture from metadata not present in data 2016-04-19 15:12:00 +02:00
Rafa de la Torre
10a175ed0b Fully qualify function names 2016-04-19 15:09:17 +02:00
Rafa de la Torre
b1b69113a2 Fully qualify function names 2016-04-19 14:59:54 +02:00
Rafa de la Torre
67ae37fb67 Remove search_path modification from tests 2016-04-19 14:44:19 +02:00
Rafa de la Torre
66f89e0728 Fixed observatory utility tests after merge 2016-04-19 14:41:41 +02:00
Rafa de la Torre
a999c6e99c Some test fixes after merging branches 2016-04-19 14:40:11 +02:00
Rafa de la Torre
7a215db14f Merge remote-tracking branch 'origin/QLIK' into qlik-alfa-plproxy
Conflicts:
	src/pg/test/expected/40_observatory_utility_test.out
	src/pg/test/sql/40_observatory_utility_test.sql
2016-04-19 14:26:41 +02:00
Carla Iriberri
7bc37861a5 Make tests work in Postgres 9.3 2016-04-19 14:15:33 +02:00
Rafa de la Torre
55ae84362a Fix utility tests 2016-04-19 14:04:42 +02:00
Rafa de la Torre
a533eb703e Use schema explicitly from within extension 2016-04-19 14:04:12 +02:00
Andy Eschbacher
4977b94281 more robust tests around null island 2016-04-14 16:35:30 -04:00
Andy Eschbacher
c1fb6c3694 adding null cases to augmentation 2016-04-14 16:25:09 -04:00
Andy Eschbacher
f72754e1d5 fixing case where point doesn't intersect so area is null 2016-04-14 16:22:32 -04:00
Andy Eschbacher
c434cacd10 adding null cases 2016-04-14 14:52:23 -04:00
Andy Eschbacher
4b6b311823 augmentation tests 2016-04-14 14:27:56 -04:00
Andy Eschbacher
3ee448016a whitespace 2016-04-14 14:27:34 -04:00
Andy Eschbacher
874a397d3b adding percentile fixtures 2016-04-14 14:26:19 -04:00
Andy Eschbacher
3468d6e5e9 add new fixtures to process 2016-04-14 13:23:40 -04:00
Andy Eschbacher
094b2da61d adding new data fixtures subset 2016-04-14 13:23:04 -04:00