-
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
Undocumented changes breaking error_document_template #4303
Comments
You are right @torfsen, we should have kept the @tino097 can you set |
I like @torfsen 's suggestion of adding the change to the changelog. For this issue we could support old copied and modified templates as @amercader says, and try to remember to remove the dead code later. For general template changes I don't want to be held to the same deprecation process that we have for things like plugin interfaces. When we get around to reducing the template |
@wardi Just to be clear, are you happy to keep support for all So in general, leaving this particular var on the error template aside when dropping support for
I think 1 at least will give a bit more time to people to update their extensions, and tackle the unsolved issue of how to support different CKAN versions with the same templates. But maybe I'm being too conservative and given our release schedule we can go for 2. (Some previous discussion on #3203 and more recently in #4062) |
Should have kept my mouth shut, I'm thinking about not tying our hands for larger unrelated template changes. @amercader's suggested fix is good for this issue, and I'm happy with either approach 1 or 2 above. |
For what it's worth, as a user of and developer of custom templates I'm perfectly fine with having to update my templates when upgrading to a new CKAN minor version (as long as the changes are small, as in this case -- the switch to Bootstrap 3 is a bigger task, so the provision of the legacy BS2-templates is much appreciated). Hence, mentioning the change in the change log would have been enough for me. |
Please don't! Yours and @torfsen is really valuable feedback! We'll stick to 1 for now but we can revisit and go for 2 when we finish the migration of the controllers. |
It seems that #4225 changed how the HTTP error code is passed to
error_document_template.html
.In CKAN 2.7.3,
error_document_template.html
says:In CKAN 2.8.0, however, the (BS2-) template says:
Note
c.code[0]
vs.code[0]
.Hence, custom variants of
error_document_template.html
need to be updated to work under CKAN 2.8.0. However, that change is not mentioned in the change log.The text was updated successfully, but these errors were encountered: