You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(codecs): fix stale storage-path and hash-algorithm docstrings
Three built-in codec class docstrings described pre-2.3.1 storage
layouts (and HashCodec claimed the wrong hash algorithm entirely):
- HashCodec: said 'SHA256'; actually MD5 + Base32
(hash_registry.py:65-67). Layout said
'_hash/{hash[:2]}/{hash[2:4]}/{hash}'; actually
'{hash_prefix}/{schema}/{hash}' with hash_prefix defaulting to
'_hash' and no [:2]/[:4] split anywhere in code.
- NpyCodec: layout said '{schema}/{table}/{pk}/{attribute}.npy';
actually '{schema_prefix}/{schema}/{table}/{pk}/{attribute}_{token}.npy'
after #1479 added the schema_prefix section and the random token
suffix (via storage.build_object_path).
- ObjectCodec: same drift as NpyCodec, as a directory rather than a
file.
All three docstrings had their 'Deletion:' line updated in v2.3.1
(dj.gc.collect() -> dj.gc.GarbageCollector) but the surrounding path
claims were left stale.
Docs-only.
0 commit comments