-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search
legacy route missing
#4346
Comments
@metaodi it was not added as the 'package' controller was not merged in that time, but i think it could be added in the .ini file edit: but you are right, we should add it in the helper |
Well yes, but I think all legacy routes should be added there for compatibility reasons. If I provide a CKAN extension, it should work on all CKAN versions. The ini file might be a solution for tests, but I don't want all users of an extension to add |
[#4346] Update missing legacy routes
@tino097 Why have you removed |
Here is the link to the build: https://travis-ci.org/opendatazurich/ckanext-stadtzh-theme/jobs/405325390#L1427 I'd propose to add a test for this, calling build_nav_main() with the legacy routes should not raise an exception. |
@metaodi |
@tino097 @amercader just let me know if you want help. Happy to provide a PR with the test and/or the updated legacy routes. |
@metaodi why just not update the nav menu in the template in your extension? As the migration to Flask will be finishing, those routes would be deprecated |
@tino097 because the extension runs on multiple versions of CKAN, older version do not support the new flask-based names obviously, so the new CKAN version should support the old names to be backwards compatible. |
I was mistaken in the way @tino097 just to be clear the |
@amercader my PR #4367 is ready. It re-adds the |
CKAN Version if known (or site URL)
2.8+ (master)
Please describe the expected behaviour
There is a shortcut for the
search
legacy route in CKAN 2.8+, I guess it's missing in LEGACY_ROUTE_NAMES.Please describe the actual behaviour
On master
search
is not available as route, basically the same as described in #4066What steps can be taken to reproduce the issue?
The text was updated successfully, but these errors were encountered: