qld-gov-au / ckanext-publications-qld-theme

publications.qld.gov.au theme
GNU Affero General Public License v3.0
0 stars 1 forks source link

Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead #62

Open duttonw opened 2 years ago

duttonw commented 2 years ago
1:20:21,304 INFO  [ckan.lib.helpers] Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead
11:20:21,330 INFO  [ckan.config.middleware.flask_app]  200 /dataset/ render time 0.053 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /dataset/?license_id=cc-by-4&res_format=PDF&tags=victims%20assist%20queensland&tags=VAQ%20guidelines&tags=financial%20assistance%20guidelines&tags=guidelines%20for%20assessing%20financial%20assistance HTTP/1.0" 200 25077 "-" "Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)"
11:20:21,353 INFO  [ckan.lib.helpers] Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead
11:20:21,367 INFO  [ckan.config.middleware.flask_app]  200 /dataset/ render time 0.033 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /dataset/?tags=registered+jp&tags=registration+list&tags=jp+registration&tags=jp+registrations&tags=registered+cdec&tags=registered+list&tags=cdec+registration HTTP/1.0" 200 15837 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
11:20:21,597 INFO  [ckan.lib.helpers] Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead
11:20:21,611 INFO  [ckan.config.middleware.flask_app]  200 /dataset/ render time 0.032 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /dataset/?tags=registered+jp&tags=jp+registration&tags=registration+list&tags=cdec+registrations&tags=registered+list&tags=jp+registrations&tags=cdec+registration&tags=registered+cdec HTTP/1.0" 200 16473 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
11:20:21,753 INFO  [ckan.lib.helpers] Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead
11:20:21,798 INFO  [ckan.config.middleware.flask_app]  200 /dataset/vetic-apprenticeship-and-traineeship-forms/resource/532699be-a92f-4a6d-8064-dad1cc614afc render time 0.103 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /dataset/vetic-apprenticeship-and-traineeship-forms/resource/532699be-a92f-4a6d-8064-dad1cc614afc HTTP/1.0" 200 30231 "https://desbt.qld.gov.au/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
11:20:21,832 INFO  [ckan.lib.helpers] Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead
11:20:21,869 INFO  [ckan.config.middleware.flask_app]  200 /dataset/ render time 0.068 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /dataset/?license_id=cc-by-4&tags=Lottery%20systems&tags=Casino%20equipment&tags=Keno%20equipment&tags=olgr&tags=Gaming%20machine%20monitoring%20systems HTTP/1.0" 200 32026 "-" "Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)"
11:20:21,891 INFO  [ckan.lib.helpers] Route name "search" is deprecated and will be removed. Please update calls to use "dataset.search" instead
11:20:21,904 INFO  [ckan.config.middleware.flask_app]  200 /dataset/ render time 0.032 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /dataset/?tags=registered+jp&tags=registered+list&tags=jp+registrations&tags=registration+list&tags=jp+registration&tags=registered+cdec&tags=cdec+registration HTTP/1.0" 200 15837 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
11:20:21,937 INFO  [ckan.config.middleware.flask_app]  304 /webassets/base/a98d57ea_main.css render time 0.014 seconds
127.0.0.1 - - [10/Oct/2022:11:20:21 +1000] "GET /webassets/base/a98d57ea_main.css HTTP/1.0" 304 220 "https://www.publications.qld.gov.au/dataset/vetic-apprenticeship-and-traineeship-forms/resource/532699be-a92f-4a6d-8064-dad1cc614afc" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
duttonw commented 2 years ago

update https://github.com/qld-gov-au/ckanext-publications-qld-theme/blob/8b1a2ae2a3a52dfb51f7416c1a6063be8b89a7b5/ckanext/publications_qld_theme/templates/header.html and https://github.com/qld-gov-au/ckanext-publications-qld-theme/blob/bf3623c1b58a11419889e1aad73dbd0fcf8468e2/ckanext/publications_qld_theme/templates/error_document_template.html

{{ h.url_for('search') }} to this pattern {{ h.url_for('dataset.search') }}