Federation module skeleton and its own migration branch (phase 0, steps 3-4)
- scrobbler.federation with init_app() as its only entry point, called from create_app(); does nothing unless FEDERATION_ENABLED - FederationConfig validates FEDERATION_DOMAIN (bare host) and FEDERATION_BASE_URL (https) when enabled, with clear errors - federation/protocol/ package for pure, framework-free protocol code - Package README with the boundary rules, configuration and migration workflow; .env.example lists the settings (off) - Alembic: existing history labelled `core`; new empty `federation` branch root (depends on the core users table). Everything upgrades `heads` (entrypoint, CI, tests); tests check both branches apply and that federation can be removed without touching core Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
1 parent
098eab025f
commit
c79c42ee00
13 files changed
+212
-6
No files matched your search
@@ -12,7 +12,7 @@ import sqlalchemy as sa
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'd6113d27cce6'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
branch_labels = ('core',)
|
||||
depends_on = None
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
"""federation branch root
|
||||
|
||||
Root of the federation branch: federation_* tables are added in revisions on this
|
||||
branch (flask db migrate --head federation@head) so they stay independent of core
|
||||
migrations. Intentionally empty.
|
||||
|
||||
Revision ID: federation_0001
|
||||
Revises:
|
||||
Create Date: 2026-09-25 19:58:27.552417
|
||||
|
||||
"""
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'federation_0001'
|
||||
down_revision = None
|
||||
branch_labels = ('federation',)
|
||||
# Federation tables reference users, created by the core's first revision.
|
||||
depends_on = 'd6113d27cce6'
|
||||
|
||||
|
||||
def upgrade():
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
||||
Reference in new issue
Block a user