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

Fix Images Version Sorting #341

Merged
merged 6 commits into from
May 5, 2024
Merged

Fix Images Version Sorting #341

merged 6 commits into from
May 5, 2024

Conversation

tonysm
Copy link
Contributor

@tonysm tonysm commented May 4, 2024

Changed

  • Fixes the version sorting so we consider semver image tags higher than the other distro-specific or flavored image tag names

closes #337

Screenshots

typesense
sqs
solr
singlestore
redis
postgres
postgis
opensearch
neo4j
mysql
mssql
mongo
minio
memcached
meilisearch
mariadb
mailpit
maildev
influxdb
expose
eventstoredb
elasticsearch

Copy link
Contributor

@gcavanunez gcavanunez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! ran it locally, lists were sorting nicely, I feel like this really opens things up to turning this field into a combox/search select terminal prompt

/**
* @test
*
* @testWith [["latest", "8.0"], ["latest", "8.0"]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link

@jakebathman jakebathman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good, nice work getting it more simplified and using that new comparator class. I haven't run this locally but if Guillermo has then that's great.

@tonysm
Copy link
Contributor Author

tonysm commented May 5, 2024

I've also tested this on an M1 and it works. One thing I want to eventually handle is that it should consider 8.0 as higher than 8.0.45, but that can be enhanced later.

@tonysm tonysm merged commit c9ca14d into main May 5, 2024
11 checks passed
@tonysm tonysm deleted the tm/version-sorting branch May 5, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to install mongo
3 participants