misc: upgrade-related migrations and small fixes - #453
Merged
Conversation
- replaces the vendored pytz.common_timezones list (a TODO from the 2.0 upgrade) with a callable over zoneinfo.available_timezones() - callable choices are serialized by reference, so tzdata updates never generate new migrations - first schema migration since 1.3; the legacy-upgrade CI job now exercises applying it to a real v1.3 database
- run them on mysql/postgres (there is no sqlite dump implementation) - read db connection params lazily: they were captured at import, before the test runner swaps in the test database, so dump/erase targeted the real database - fix infinite recursion in erase() media cleanup when a media directory has subdirectories
- skipped since the flake8 era; ruff runs as its own CI step - drop the stale REUSE_DB pytest option (django-nose relic) that warned on every test run
- Controller, FlowMeter, FlowToggle, and ThermoSensor lists (api and kegadmin) had no ordering, so postgres returned them in arbitrary heap order - no-op at the database level (AlterModelOptions only)
- schemeless producer urls now assume https; silences the last deprecation warning in the test run
- example now pulls ghcr.io/kegbot/server:latest (the published image; 'stable' predates the current release tagging) - pin mysql:8; mysql:latest is now 9.x - wait for mysql to be healthy before starting the app services - drop the deprecated compose 'version' key and the stale KEGBOT_DEBUG variable
- developers guide now describes the uv/ruff/pre-commit workflow - add the 2.0.0 section to the published changelog - document the backup/restore commands and the direct v1.1.x legacy-restore path - modernize 'docker compose' invocations and the sample output
- CHANGELOG.md is now just a pointer; the changelog was already maintained in docs/source/releases/changelog.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #452