-
Notifications
You must be signed in to change notification settings - Fork 8
Comparing changes
Open a pull request
base repository: frequenz-floss/frequenz-repo-config-python
base: v0.7.3
head repository: frequenz-floss/frequenz-repo-config-python
compare: v0.7.4
- 8 commits
- 4 files changed
- 2 contributors
Commits on Nov 3, 2023
-
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for a9f7788 - Browse repository at this point
Copy the full SHA a9f7788View commit details -
mike: Sort pre-releases as older than stable releases
For the same major and minor, pre-releases were sorted as newer than stable releases, but this is not correct. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for 94dd0ed - Browse repository at this point
Copy the full SHA 94dd0edView commit details -
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for 02de9fe - Browse repository at this point
Copy the full SHA 02de9feView commit details -
Don't parse mike versions while sorting
There are 2 main reasons for this: 1. Parsing the mike versions is less future proof, as if more fields are added to the JSON in the future, we'll remove them from the output, making the sorting more bug prone and more costly to maintain. 2. Avoiding the extra wrapping in `sort_mike_versions()` makes it easier to test, as otherwise we need to do the extra wrapping in tests, wrapping that is really not related to sorting so it adds noise to the tests. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for 60e05f6 - Browse repository at this point
Copy the full SHA 60e05f6View commit details -
Use a more explicit name for the
_TestCaseclassWe are going to add more wrapped test cases, so it is better to use a more explicit name. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for 6d8b449 - Browse repository at this point
Copy the full SHA 6d8b449View commit details -
Add tests for
compare_mike_version()andsort_mike_versions()Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for be6df37 - Browse repository at this point
Copy the full SHA be6df37View commit details -
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Configuration menu - View commit details
-
Copy full SHA for 0ee52d5 - Browse repository at this point
Copy the full SHA 0ee52d5View commit details -
Fix
mikeversion sorting (#171)For the same major and minor, pre-releases were sorted as newer than stable releases, but this is not correct. This PR fixes that. It also makes the sorting of the `versions.json` file more robust, as it doesn't parse and re-serialize the version object, but instead only uses the `version` field for sorting, and the rest of the fields are dumping verbatim without any rewriting. This means that if new versions of `mike` add more fields to the JSON, we won't need to update the sorting code, as it will just work.
Configuration menu - View commit details
-
Copy full SHA for 8bf6c38 - Browse repository at this point
Copy the full SHA 8bf6c38View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.7.3...v0.7.4