refactor
BREAKING
phase1
task/phase1-from-dict-rename
#1 / 1
refactor(phase1): rename from_msgpack → from_dict on all storage record classes
- CommitRecord, SnapshotRecord, TagRecord, ReleaseRecord: merged the two-method pattern (defensive from_msgpack + trusting from_dict) into a single from_dict that uses the defensive body. Deleted from_msgpack. - SymbolHistoryEntry: same merge; from_msgpack deleted, from_dict rewritten with defensive .get() pattern. - muse/core/test_history.py: _record_from_msgpack → _record_from_dict, _record_to_msgpack → _record_to_dict. - Updated all 9 source call sites and all test files that referenced from_msgpack or the private helpers. - Added tests/test_phase1_naming.py: 21 TDD tests that enforce no from_msgpack method exists anywhere and no .from_msgpack( call remains in source or test files.
Closes issue #12 phase 1 (naming fix).
sha256:2d04edd1c8bae30686ae49061151b3f3ddb98d48136d76cde3af696a03e9b33e
sha
+71
~66
−25
symbols
sha256:a017004c83dcd76cd394d32588b9f28988b712b486e4aea43f241ab14928f280
snapshot
+71
symbols added
~66
symbols modified
−25
symbols removed
0
dead code introduced
Semantic Changes
162 symbols
+
test_no_from_msgpack_on_record_classes
class
method test_no_from_msgpack_on_record_classes L220–225
−
test_snapshot_record_note_round_trips_from_msgpack
function
function test_snapshot_record_note_round_trips_from_msgpack L321–330
+
test_snapshot_record_note_round_trips_from_dict
function
function test_snapshot_record_note_round_trips_from_dict L321–330
~
tests/test_commit_from_dict_timestamp_loss.py
.py
4 symbols added, 4 symbols removed, 1 symbol modified
−
test_from_msgpack_raises_on_empty_committed_at
method
method test_from_msgpack_raises_on_empty_committed_at L540–546
−
test_from_msgpack_raises_on_garbage_committed_at
method
method test_from_msgpack_raises_on_garbage_committed_at L548–553
−
test_from_msgpack_raises_on_empty_created_at
method
method test_from_msgpack_raises_on_empty_created_at L594–598
+
test_from_dict_raises_on_empty_committed_at
method
method test_from_dict_raises_on_empty_committed_at L540–546
+
test_from_dict_raises_on_garbage_committed_at
method
method test_from_dict_raises_on_garbage_committed_at L548–553
+
test_from_dict_raises_on_empty_created_at_via_defensive_path
method
method test_from_dict_raises_on_empty_created_at_via_defensive_path L594–598
~
tests/test_commit_record_committed_at_corruption.py
.py
1 symbol added, 1 symbol removed, 14 symbols modified
−
test_from_msgpack_does_not_substitute_now
method
method test_from_msgpack_does_not_substitute_now L225–255
+
test_from_dict_does_not_substitute_now
method
method test_from_dict_does_not_substitute_now L224–254
−
test_falls_back_to_created_on_branch_for_old_records
method
method test_falls_back_to_created_on_branch_for_old_records L124–132
−
test_from_msgpack_ignores_format_version_key
method
method test_from_msgpack_ignores_format_version_key L140–146
+
test_falls_back_to_created_on_branch_for_old_records
method
method test_falls_back_to_created_on_branch_for_old_records L124–132
+
test_from_dict_ignores_format_version_key
method
method test_from_dict_ignores_format_version_key L140–146
~
iso_now
−
test_from_msgpack_filters_non_string_items
method
method test_from_msgpack_filters_non_string_items L479–488
−
test_from_msgpack_missing_field_defaults_empty
method
method test_from_msgpack_missing_field_defaults_empty L469–477
−
test_from_msgpack_non_list_directories_defaults_empty
method
method test_from_msgpack_non_list_directories_defaults_empty L490–499
+
test_from_dict_filters_non_string_items
method
method test_from_dict_filters_non_string_items L479–488
+
test_from_dict_missing_field_defaults_empty
method
method test_from_dict_missing_field_defaults_empty L469–477
+
test_from_dict_non_list_directories_defaults_empty
method
method test_from_dict_non_list_directories_defaults_empty L490–499
~
tests/test_snapshot_schema_version_and_compression.py
.py
1 symbol added, 2 symbols removed, 1 symbol modified
−
test_from_msgpack_defaults_schema_version_for_old_files
method
method test_from_msgpack_defaults_schema_version_for_old_files L175–182
−
test_from_msgpack_reads_schema_version
method
method test_from_msgpack_reads_schema_version L167–173
+
test_from_dict_defaults_schema_version_for_old_files
method
method test_from_dict_defaults_schema_version_for_old_files L175–182
← Older
Oldest on task/phase1-from-dict-rename
All commits
Newer →
Latest on task/phase1-from-dict-rename
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:2d04edd1c8bae30686ae49061151b3f3ddb98d48136d76cde3af696a03e9b33e --body "your comment"
No comments yet. Be the first to start the discussion.