Commit Graph

509 Commits

Author SHA1 Message Date
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
CKAN User 8648312a85 Add nginx WAF server 2022-04-30 04:35:06 +00:00
CKAN User 6c607cf9bb Add HTML test 2022-04-26 16:13:33 +00:00
CKAN User 3de046365b Fix HTML view of ISO XML 2022-04-25 21:07:05 +00: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
Adrià Mercader bce907544c
Merge pull request #267 from ccancellieri/validate_wms
Make ckanext.spatial.harvest.validate_wms working again #265
2022-02-21 12:28:27 +01:00
Adrià Mercader 0f67cc9413
Merge pull request #268 from ccancellieri/guess-resource-format
guess_resource_format may use protocol and function to better guess t…
2022-02-21 12:27:48 +01:00
Adrià Mercader 0594fdf43c
Merge pull request #276 from NINAnor/update-shapely-usage-to-avoid-deprecation
Update shapely usage to avoid deprecation
2022-02-18 14:04:54 +01:00
Francesco Frassinelli df3af62cfa Handle shape(...) exceptions 2022-02-18 10:42:04 +01:00
mutantsan 494ab539fd Fix shapely deprecation warning 2022-02-18 10:39:49 +01:00
Adrià Mercader b54b641c12
Merge pull request #236 from NINAnor/patch-1
Make _params_for_solr_search extend fq_list
2022-02-17 14:55:07 +01:00
mutantsan 94ff6cbe13 remove typing 2022-01-21 13:20:48 +02:00
mutantsan 43c26afeae Drop deprecated package_extras usage 2022-01-21 13:11:47 +02:00
Francesco Frassinelli 6cbb62c2b9 Make _params_for_solr_search extend fq_list
_params_for_solr_search should extend fq_list not replace it
2021-12-14 14:58:47 +01:00
carlo cancellieri 8198d27260 guess_resource_format may use protocol and function to better guess the resource type #262 2021-10-28 17:45:51 +02:00
carlo cancellieri 90eb2aacdb Make ckanext.spatial.harvest.validate_wms working again #265 2021-10-28 17:43:48 +02:00
carlo cancellieri 8bafbd401f lineage 2021-10-28 17:39:45 +02:00
carlo cancellieri 2089ad1549 Lineage is missing on 19139 ISO base implementation #263
Lineage is missing on 19139 ISO base implementation #263

Lineage is missing on 19139 ISO base implementation #263
2021-10-28 17:36:41 +02:00
Nicholas Kumia a3ae18ec40 conform encoding check to ckanext-spatial standards;
> use the appropriate text_type for py2 and py3 for waf harvester
2021-07-15 15:25:53 -04:00
amercader 00bd462403 Use ckantoolkit whenever possible 2021-05-28 14:16:44 +02:00
amercader ac470f2c90 Better version checks in templates 2021-05-28 14:15:39 +02:00
amercader 5b05a12d61 Reduce duplication on blueprint/controllers 2021-05-28 13:57:15 +02:00
amercader cdf4b70bb7 Update CLI docstrings and documentation, remove unused file 2021-05-28 13:27:12 +02:00
Taro Matsuzawa dd42aa8318 remove unused print debug 2021-05-26 07:24:07 +09:00
Taro Matsuzawa 2934317f40 added note for github action and added failback code 2021-01-19 04:15:12 +00:00
Taro Matsuzawa 8821118aa6 WIP: remove print debug and fixes test 2021-01-19 04:02:23 +00:00
Taro Matsuzawa 5bdd481d99 WIP: remove "" 2021-01-19 03:46:41 +00:00
Taro Matsuzawa 2477721d18 WIP: fixes warning 2021-01-19 03:29:25 +00:00
Taro Matsuzawa 36d0d9bfa4 WIP: debug 2021-01-18 15:24:26 +00:00
Taro Matsuzawa 93f7502bdb WIP: don't remove metadata 2021-01-18 23:34:12 +09:00
Taro Matsuzawa 1d7d913cdb WIP: debug print 2021-01-18 23:27:33 +09:00
Taro Matsuzawa 2a8da191a8 WIP: debug print 2021-01-18 23:15:21 +09:00
Taro Matsuzawa 5b744cb5b4 WIP: debug print 2021-01-18 23:04:52 +09:00
Taro Matsuzawa 01ad817444 WIP: debug print 2021-01-18 22:57:47 +09:00
Taro Matsuzawa 487cbc8d53 WIP: debug print 2021-01-18 22:51:13 +09:00
Taro Matsuzawa 7d3dbfcc0f WIP: debug print 2021-01-18 22:43:40 +09:00
Taro Matsuzawa 56b42907d9 WIP: don't set alter view and table, remove test code 2021-01-18 13:29:35 +00:00
Taro Matsuzawa 1e8b223729 WIP: test: copy error function to last test 2021-01-18 13:11:09 +00:00
Taro Matsuzawa 3364ca09ab WIP: don't drop idx_package_extent_the_geom 2021-01-18 12:49:28 +00:00
Taro Matsuzawa 4448fede1b WIP: set fixture each functions 2021-01-18 12:20:30 +00:00
Taro Matsuzawa d919c04da5 WIP: added test for ci 2021-01-18 20:48:07 +09:00
Taro Matsuzawa b0ed33ef89 WIP: remove with_plugins fixture 2021-01-18 11:36:45 +00:00
Taro Matsuzawa 20e7598264 WIP: supports ckan 2.8 2021-01-18 10:43:59 +00:00
Taro Matsuzawa f623dfb568 WIP: use asset instead of resource 2021-01-14 15:11:16 +09:00
Taro Matsuzawa 3477eccefd WIP: call initial_data in each function(autouse=True fixture doesn't work) 2021-01-14 14:09:51 +09:00
Taro Matsuzawa 4ff78e0c17 WIP: remove clean_db 2021-01-14 12:52:39 +09:00
Taro Matsuzawa b0a3290ba8 WIP: added fixture each test 2021-01-14 12:35:57 +09:00
Taro Matsuzawa a1ba3fdee2 WIP: drop package_extent table in clean up postgis 2021-01-08 12:46:09 +09:00
Taro Matsuzawa 075b6d6b89 WIP: drop import sql 2021-01-07 20:50:59 +09:00
Taro Matsuzawa 9f45d31f21 WIP: create postgis extension before check postgis version 2021-01-07 20:44:24 +09:00
Taro Matsuzawa 787cbb5c89 WIP: test: create postgis extension with ckan_default user 2021-01-07 19:06:29 +09:00
Taro Matsuzawa ff9dc44bc0 WIP: create/drop extension postgis in ci 2021-01-07 17:08:27 +09:00
Taro Matsuzawa 23a36d1937 WIP: added if exists option, added spatial_setup fixture to all 2021-01-07 13:55:24 +09:00
Taro Matsuzawa 77558ec3bf WIP: force remove index for package_extent 2021-01-07 13:45:33 +09:00
Taro Matsuzawa 12eb8c05e0 WIP: drop index for package_extent 2021-01-07 13:38:57 +09:00
Taro Matsuzawa 68acc993cd WIP: test: extend_existing flag 2021-01-07 13:11:59 +09:00
Taro Matsuzawa bf29fa0d90 WIP: test: revert package_extent issue 2021-01-07 13:02:39 +09:00
Taro Matsuzawa 1663e93d71 WIP: test: remove package_extent issue 2021-01-07 12:55:43 +09:00
Taro Matsuzawa 6c3c9f4046 WIP: test: added spatial_setup fixture 2021-01-07 12:47:19 +09:00
Taro Matsuzawa d7a2b7ed49 WIP: test: added harvest_setup fixture 2021-01-07 12:39:09 +09:00
Taro Matsuzawa c0626ccbe4 WIP: test: test_api use harvest_setup 2021-01-07 12:28:21 +09:00
Taro Matsuzawa 4cca5822e3 WIP: test: use harvest_setup 2021-01-07 11:52:46 +09:00
Taro Matsuzawa 26286fa385 WIP: test: use clean_db instead of spatial_clean_db 2021-01-07 11:42:53 +09:00
Taro Matsuzawa 14d98bc781 WIP: test: use {} instead of set() 2021-01-07 11:30:55 +09:00
Taro Matsuzawa eece0a89c2 WIP: test: remove package_extent before spatial_db_setup() 2021-01-07 11:08:40 +09:00
Taro Matsuzawa 0820b1929f WIP: test: added with_plugins 2021-01-06 23:03:22 +09:00
Taro Matsuzawa 4681706b83 WIP: remove spatial_ref_sys table in ckan's clean_db 2021-01-06 21:52:42 +09:00
Taro Matsuzawa 468ed052d9 WIP: test: added debug comment 2021-01-06 21:10:00 +09:00
Taro Matsuzawa 6e57837f9b WIP: test: remove spatial_ref_sys from metadata.tables 2021-01-06 20:53:25 +09:00
Taro Matsuzawa c46936a5e7 WIP: drop table spatial_ref_sys when drop extension postgis 2021-01-06 20:45:15 +09:00
Taro Matsuzawa f8e3b70897 WIP: test: setup only create extension 2021-01-06 19:03:55 +09:00
Taro Matsuzawa 50311ac610 WIP: added cascade option 2021-01-06 17:03:39 +09:00
Taro Matsuzawa 44e9ec0afb WIP: close all session before drop postgis extension 2021-01-06 16:32:38 +09:00
Taro Matsuzawa f11101659f WIP: reset_db will fail to drop table spatial_ref_sys, so use drop extension instead of drop table 2021-01-06 16:21:10 +09:00
Sergey Motornyuk 4b7cd9fca7 rename clean_db fixture 2020-05-06 16:21:08 +03:00
Sergey Motornyuk 123fc5a6fd Backport pytests 2020-05-06 15:19:21 +03:00
Sergey Motornyuk e84430a92d Install setuptools 2020-05-06 02:04:34 +03:00
Sergey Motornyuk 2420d62847 Fix import for nose tests 2020-05-06 01:20:21 +03:00
Sergey Motornyuk f7dc2bf40d Update tests 2020-05-03 20:28:33 +03:00
Sergey Motornyuk 63274022fd owslib==0.18.0 2020-04-15 02:34:45 +03:00
Sergey Motornyuk 03272a9cd5 Update tests 2020-04-15 02:20:30 +03:00
Sergey Motornyuk a58510a432 Remove builtins 2020-04-15 00:06:11 +03:00