amercader
15caaad9f1
Refactor the search logic to move it to its own module
2022-10-11 10:20:45 +02:00
amercader
b89da29192
Add tests for ordering and other queries
2022-10-10 11:26:25 +02:00
amercader
2945795b5f
Update backend internally whenusing deprecated "solr" one
2022-10-07 15:23:55 +02:00
amercader
f64121ab04
Fix CSRF issus in functional tests
2022-10-06 11:49:03 +02:00
amercader
ef8c3c1134
Rename solr backend to solr-bbox for clarity
2022-10-06 11:19:38 +02:00
Andres Vazquez
e5628f088a
Test GeometryCollection
2022-09-14 13:20:37 -03:00
Andres Vazquez
31d73b2b48
Fix error for older Shapely versions
2022-09-14 12:45:00 -03:00
Andres Vazquez
ca7a054a39
Py2 compatibility
2022-09-13 17:02:01 -03:00
Andres Vazquez
9bc5b4f000
Allow Multiple Geometries
2022-09-13 16:36:57 -03:00
amercader
44e3ce1a42
Fix, add 2.9 hook variant in test plugin
2022-09-07 10:24:35 +02:00
amercader
3fce3934bf
Add tests for custom indexing and multivalued geometries
2022-09-06 14:37:40 +02:00
amercader
efc244bff4
Update spatial search documentation
2022-09-06 13:44:56 +02:00
amercader
f28b42a8aa
Load plugins in test classes
2022-09-06 11:58:09 +02:00
amercader
cf2b2a9089
Drop big fields from indexed dict before
2022-09-06 11:25:40 +02:00
amercader
89070be10c
Allow to configure the Solr spatial query sent
2022-09-06 10:31:51 +02:00
amercader
a358afce5c
Clean up and consolidate solr based searches
2022-09-05 15:40:32 +02:00
amercader
244b2ba20f
More antimeridian fixes
2022-09-05 15:26:26 +02:00
amercader
07a028f06f
Handle some antimeridian cases
2022-09-05 12:36:56 +02:00
amercader
c4fd9ce21a
Re-add lost logic to remove fields from the index (take 2)
2022-09-05 12:36:22 +02:00
amercader
4a4c36f4e2
Spatial field tests
...
Still 2 failing
2022-09-01 14:35:10 +02:00
amercader
65de1d0e77
Refactor search backend handling
2022-09-01 14:33:49 +02:00
amercader
9cb4fb5fb3
Move query tests to own file
2022-09-01 12:00:34 +02:00
amercader
95c7b67132
PostGIS' and Solr's logic for wrapping bboxes is different
2022-09-01 11:44:54 +02:00
amercader
d0a722551d
Don't fit bbox in normalize function
2022-08-31 17:10:49 +02:00
amercader
de7c85b59d
Re-add lost logic to remove fields from the index
2022-08-31 17:08:58 +02:00
amercader
d7e55b7290
cleanup
2022-08-31 16:46:46 +02:00
amercader
916d5c92ba
Update Bbox based search (`solr` backend)
...
Use the `bbox` field in Solr, and the relevant query syntax
2022-08-31 13:21:18 +02:00
amercader
eebd3954a1
Separate functions for normalizing and fitting a bbox
...
`normalize_bbox()` just parses incoming coordinates into a normalized dict
`fit_bbox()` will translate any outlying coordinates to ensure they fit
the -180, -90, 180, 90 extent
2022-08-31 13:19:14 +02:00
amercader
b4a9eba67a
Fix all tests
2022-08-24 16:24:14 +02:00
amercader
322a92bcec
Remove old API in Pylons controller
2022-08-24 13:56:50 +02:00
amercader
2b26b7c746
Fix wrong expected message
2022-08-24 13:53:29 +02:00
amercader
6b61ac66db
Update expected error message
2022-08-24 13:42:00 +02:00
amercader
81a4b1529b
Don't load postgis related libraries
2022-08-24 13:30:54 +02:00
amercader
5742a5fff0
Test cleanups
2022-08-24 13:17:54 +02:00
amercader
470ac76cba
Move Postgis API tests to own module
...
TODO: Enable tests for Solr
2022-08-24 13:09:09 +02:00
amercader
6f8870ee58
Actually add the postgis tests
2022-08-24 13:00:00 +02:00
amercader
a14dcf3109
Fix check spatial field logic
2022-08-24 12:50:04 +02:00
amercader
43e573d4da
Consolidate all PostGIS tests
...
Also remove old unused API endpoint
2022-08-24 12:11:03 +02:00
amercader
93f6f87868
[ #195 ] Don't use PostGIS by default
...
Consolidate all DB related modules and functions into a single module
for easier encapsulation. The PostGIS database table and the functions
to store PostGIS geometries are no longer called by default.
There is a new config option (`ckan.spatial.use_postgis=true`) to
re-enable this behaviour. This option (and the actual PostGIS modules)
will be dropped in future versions.
2022-08-24 11:24:30 +02:00
amercader
ffba7092db
Remove support for old GeoAlchemy library
...
Not needed since CKAN 2.3
2022-08-24 10:14:54 +02:00
amercader
f63797d054
Remove un-needed error function
2022-08-24 10:00:21 +02:00
amercader
e29e171958
Refactor the IPackageController hooks
...
Don't use the old `.create()`, `.edit()`, `.delete()` hooks and use the
new `after_dataset_*()` ones. Use the geojson package to validate the
spatial extra
2022-08-24 09:53:46 +02:00
Jari Voutilainen
d00d6bee39
Remove spatial field from solr as well
2022-06-23 09:26:21 +03:00
Jari Voutilainen
a17ca674ff
Remove coupled resources from solr
2022-06-17 12:46:51 +03:00
Adrià Mercader
f00ad5b1d9
Merge pull request #279 from ckan/2.10-support
...
CKAN 2.10 support
2022-04-22 15:17:19 +02:00
amercader
ee5d7b48ac
Fix syntax
2022-04-22 14:49:22 +02:00
amercader
69a65c4f74
Don't use deprecated h.url() helper
2022-04-22 14:47:56 +02:00
amercader
1da4b6329a
Support new IPackageController hooks
2022-04-22 14:47:47 +02:00
bonnland
4fd2420e05
Apply byte->str conversion to recursive call
2022-04-14 14:01:39 -06:00
Adrià Mercader
09fbc27054
Merge pull request #266 from ccancellieri/lineage-support
...
Lineage support
2022-02-21 12:30:06 +01:00