fix(workspace): transport server partition rank for workspace sorts (#6066)
The frontend re-derived partition rank from the serialized type, so FIFO, socket, and device entries moved into the regular-file partition on non-default sorts. Emit workspace_sort_rank from list_dir, consume it in the rank helper, and keep it out of dir_signature.
This commit is contained in:
1 parent
573ac33182
commit
88c4b9a6b8
5 files changed
+64
-14
No files matched your search
@@ -24,3 +24,11 @@ def test_directory_signature_can_be_computed_from_supplied_entries(tmp_path):
|
||||
entries = list_dir(tmp_path, ".")
|
||||
|
||||
assert dir_signature(tmp_path, ".", entries) == dir_signature(tmp_path, ".", entries)
|
||||
|
||||
|
||||
def test_directory_signature_ignores_workspace_sort_rank(tmp_path):
|
||||
(tmp_path / "alpha.txt").write_text("one", encoding="utf-8")
|
||||
entries = list_dir(tmp_path, ".")
|
||||
changed = [dict(entry, workspace_sort_rank=1) for entry in entries]
|
||||
|
||||
assert dir_signature(tmp_path, ".", entries) == dir_signature(tmp_path, ".", changed)
|
||||
Reference in new issue
Block a user