-
Notifications
You must be signed in to change notification settings - Fork 2k
Clean _make_menu_item helper #6263
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
Conversation
This looks good @pdelboca but we should add a note to the CHANGELOG (a |
Done @amercader ! Let me know if that's okay :)
|
I see that there are still warnings for the old route style, saying that is deprecated, but it has been dropped instead: old code will give errors. Lines 985 to 999 in bb5e40c
Should such message be changed? |
Will this be backported to 2.9? |
Reference: ckan/ckan#6263
Reference: ckan/ckan#6263
This PR aims to clean the helpers to build navigation bars and some old code and configs that are now obsolete.
config['routes.named_routes']
should be straight forward since we don't require a mapping anymore. (assuming that all templates are updated to use flask routes when creating nav links.__make_menu_item
will no longer raise an exception if the helper (in the template) is missing a required argument for the endpoint. I think this is an acceptable tradeoff aiming to clean lot of legacy code that it is still tied to old Pylons logic.