Skip to content
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

Expose check_ckan_version to templates #6741

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Conversation

Zharktas
Copy link
Member

@Zharktas Zharktas commented Mar 8, 2022

Proposed fixes:

Currently extension templates use h.ckan_version() which returns a string and do various splitting operations to get it to work with 2.10. This exposes toolkit method check_ckan_version which essentially does comparison on lists, for example between [2, 10, 0] and [2, 9, 5].

This could be backported even though we have "no new features policy", for extension to have simpler multiple version support.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants