refactor
BREAKING
task/remove-legacy-flat-store
#1 / 1
refactor: remove all legacy flat-store code from musehub
- Delete LocalBackend._safe_id(), _root, objects_dir init param - LocalBackend._path/put/get/exists/delete now require repo_root — no silent fallback - Delete _object_disk_path() from musehub_sync; _write_object uses LocalBackend.put with repo_root - ingest_push looks up repo owner/slug from DB to resolve repo_root before writing objects - objects.py security check uses musehub_repos_dir instead of musehub_objects_dir - Remove musehub_objects_dir setting from config.py (superseded by musehub_repos_dir) - Update conftest, test_storage_backends, test_storage_tiers, test_push_object_integrity to use per-repo API - Add test_no_legacy_flat_store.py: 20 regression guards (all GREEN) preventing re-introduction of flat-store code
sha256:a5077c32e9287f75475bf4cb1354772d524f5774358b74a4e2a2b7ff483a6d08
sha
+42
~65
−19
symbols
sha256:3d4023105cf226047f126964d3235d61b71fdbfc04c4ad70c6a7af613e323fde
snapshot
+42
symbols added
~65
symbols modified
−19
symbols removed
0
dead code introduced
Semantic Changes
126 symbols
+
test_no_musehub_objects_dir_in_settings
method
method test_no_musehub_objects_dir_in_settings L177–183
+
test_exists_without_repo_root_raises
method
async_method test_exists_without_repo_root_raises L117–122
+
test_path_with_repo_root_uses_algo_shard_layout
method
method test_path_with_repo_root_uses_algo_shard_layout L89–101
+
test_per_repo_object_on_disk_at_correct_path
method
async_method test_per_repo_object_on_disk_at_correct_path L141–154
+
test_no_musehub_objects_dir_in_sync_source
method
method test_no_musehub_objects_dir_in_sync_source L215–221
+
test_no_musehub_objects_dir_in_objects_route
method
method test_no_musehub_objects_dir_in_objects_route L239–245
+
test_objects_route_validates_against_repos_dir
method
method test_objects_route_validates_against_repos_dir L247–254
+
test_no_flat_store_description_in_init
method
method test_no_flat_store_description_in_init L263–268
~
Settings
−
test_path_traversal_variations_sanitised
method
method test_path_traversal_variations_sanitised L507–517
−
test_global_storage_same_id_shares_object
method
async_method test_global_storage_same_id_shares_object L236–242
−
test_delete_with_dotdot_object_id_is_noop
method
async_method test_delete_with_dotdot_object_id_is_noop L571–574
−
test_dotdot_deep_in_object_id_sanitised
method
method test_dotdot_deep_in_object_id_sanitised L538–542
−
test_exists_with_dotdot_object_id_sanitised
method
async_method test_exists_with_dotdot_object_id_sanitised L565–569
−
test_get_with_dotdot_object_id_sanitised
method
async_method test_get_with_dotdot_object_id_sanitised L559–563
−
test_object_id_colon_sanitised_prevents_ambiguity
method
method test_object_id_colon_sanitised_prevents_ambiguity L544–549
−
test_put_with_dotdot_object_id_sanitised
method
async_method test_put_with_dotdot_object_id_sanitised L551–557
−
test_write_many_objects_different_ids
method
async_method test_write_many_objects_different_ids L430–437
−
test_path_sanitises_colon_in_object_id
method
method test_path_sanitises_colon_in_object_id L72–76
−
test_path_sanitises_dotdot_in_object_id
method
method test_path_sanitises_dotdot_in_object_id L83–87
−
test_path_sanitises_slash_in_object_id
method
method test_path_sanitises_slash_in_object_id L78–81
+
test_exists_without_repo_root_raises
method
async_method test_exists_without_repo_root_raises L541–545
+
test_path_with_repo_root_uses_algo_shard_layout
method
method test_path_with_repo_root_uses_algo_shard_layout L75–82
~
_backend
← Older
Oldest on task/remove-legacy-flat-store
All commits
Newer →
Latest on task/remove-legacy-flat-store
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:a5077c32e9287f75475bf4cb1354772d524f5774358b74a4e2a2b7ff483a6d08 --body "your comment"
No comments yet. Be the first to start the discussion.