refactor
BREAKING
auth
task/auth-challenge-nonce-pk
#1 / 1
refactor(auth): drop challenge_id surrogate; promote nonce_hex to PK
MusehubAuthChallenge.challenge_id was a UUID surrogate that earned nothing — nonce_hex was already UNIQUE, already the lookup key in all service code, and is the cryptographic identity of a challenge by definition.
Changes: - Drop challenge_id column from model and DB - Make nonce_hex the primary_key=True column - Remove redundant UniqueConstraint on nonce_hex (PK implies uniqueness) - Remove import uuid and _new_uuid() from musehub_auth_models.py - Alembic 0022: migrate the live table (drop PK, drop column, drop UQ, add new PK) - TDD: test_nonce_is_primary_key asserts challenge_id is gone and nonce_hex is PK
sha256:25fcc3cf9f4d4c8df0981a16b8a4e25251fd6c07630ecfe4281274a1d3f064e4
sha
+86
~76
−10
symbols
sha256:f70ff831ba052b4ff9a6bc9fd6f470233f427a7d7a9f4709934dc15d12624030
snapshot
+86
symbols added
~76
symbols modified
−10
symbols removed
0
dead code introduced
Semantic Changes
172 symbols
+
test_musehub_auth_key_defaults_at_construction
function
function test_musehub_auth_key_defaults_at_construction L140–150
+
test_musehub_branch_defaults_at_construction
function
function test_musehub_branch_defaults_at_construction L165–171
+
test_musehub_collaborator_defaults_at_construction
function
function test_musehub_collaborator_defaults_at_construction L153–162
+
test_musehub_commit_defaults_at_construction
function
function test_musehub_commit_defaults_at_construction L187–211
+
test_musehub_identity_defaults_at_construction
function
function test_musehub_identity_defaults_at_construction L82–92
+
test_musehub_issue_defaults_at_construction
function
function test_musehub_issue_defaults_at_construction L95–112
+
test_musehub_label_defaults_at_construction
function
function test_musehub_label_defaults_at_construction L174–184
+
test_musehub_proposal_defaults_at_construction
function
function test_musehub_proposal_defaults_at_construction L115–137
+
test_musehub_repo_mutable_defaults_are_isolated
function
function test_musehub_repo_mutable_defaults_are_isolated L49–56
+
test_musehub_repo_scalar_defaults_at_construction
function
function test_musehub_repo_scalar_defaults_at_construction L32–46
+
test_musehub_repo_timestamps_set_at_construction
function
function test_musehub_repo_timestamps_set_at_construction L59–68
+
test_musehub_snapshot_defaults_at_construction
function
function test_musehub_snapshot_defaults_at_construction L71–79
+
test_SR1_default_branch_after_flush_refresh
function
async_function test_SR1_default_branch_after_flush_refresh L35–43
+
test_SR2_updated_at_after_flush_refresh
function
async_function test_SR2_updated_at_after_flush_refresh L46–55
+
test_SR3_created_at_after_flush_refresh
function
async_function test_SR3_created_at_after_flush_refresh L75–84
+
test_SR4_server_default_after_prior_commit
function
async_function test_SR4_server_default_after_prior_commit L58–72
~
Mapped
~
Mapped
~
Mapped
~
Mapped
~
healthz
~
musehub/services/musehub_webhook_dispatcher.py
.py
1 symbol added, 2 symbols removed, 3 symbols modified
← Older
Oldest on task/auth-challenge-nonce-pk
All commits
Newer →
Latest on task/auth-challenge-nonce-pk
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:25fcc3cf9f4d4c8df0981a16b8a4e25251fd6c07630ecfe4281274a1d3f064e4 --body "your comment"
No comments yet. Be the first to start the discussion.