Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Expose check_ckan_version to templates#6741

Merged
amercader merged 1 commit into
masterfrom
expose_check_ckan_version
Mar 14, 2022
Merged

Expose check_ckan_version to templates#6741
amercader merged 1 commit into
masterfrom
expose_check_ckan_version

Conversation

@Zharktas
Copy link
Copy Markdown
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