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

[PR #1078/159f38f4 backport][stable-1] postgresql_ext: sort list of available versions #1084

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Oct 13, 2020

This is a backport of PR #1078 as merged into main (159f38f).

SUMMARY

If version == 'latest' then the version is set to available_versions[-1] however available_versions was not previously sorted so the ordering was the natural order of the pg_available_extension_versions view.

This PR sorts the version using LooseVersion so that the version taken is in fact the latest available version.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

postgresql_ext

* sort list of available versions

If `version == 'latest'` then the version is set to `available_versions[-1]` however `available_versions` was not previously sorted so the ordering was the natural order of the `pg_available_extension_versions` view.

* remove unnecessary lambda

* create changelog fragment for #1078

* add PR link to changelog fragment

Co-authored-by: Andrew Klychkov <[email protected]>

Co-authored-by: Andrew Klychkov <[email protected]>
(cherry picked from commit 159f38f)
@ansibullbot ansibullbot added affects_2.10 bug This issue/PR relates to a bug community_review database module module needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) postgresql small_patch Hopefully easy to review labels Oct 13, 2020
@Andersson007 Andersson007 merged commit ee8f874 into stable-1 Oct 13, 2020
@Andersson007 Andersson007 deleted the patchback/backports/stable-1/159f38f4f240030b4016db3697cf577f5e98a275/pr-1078 branch October 13, 2020 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug community_review database module module needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) postgresql small_patch Hopefully easy to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants