Migrate imports to SYS package (pipeline/result_table) and update related imports
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
2025-12-29 23:28:15 -08:00
parent 30d3bf480b
commit ef01ca03a0
60 changed files with 162 additions and 149 deletions

View File

@@ -419,7 +419,7 @@ class Folder(Store):
# Move or copy file (with progress bar on actual byte transfer).
# Note: a same-volume move may be a fast rename and won't show progress.
def _copy_with_progress(src: Path, dst: Path, *, label: str) -> None:
from models import ProgressFileReader
from SYS.models import ProgressFileReader
total_bytes = None
try:
@@ -1421,7 +1421,7 @@ class Folder(Store):
if isinstance(t, str) and t.strip()
]
from metadata import compute_namespaced_tag_overwrite
from SYS.metadata import compute_namespaced_tag_overwrite
_to_remove, _to_add, merged = compute_namespaced_tag_overwrite(
existing_tags, tag or []
@@ -1488,7 +1488,7 @@ class Folder(Store):
file_hash = file_identifier
if self._location:
try:
from metadata import normalize_urls
from SYS.metadata import normalize_urls
with API_folder_store(Path(self._location)) as db:
meta = db.get_metadata(file_hash) or {}
@@ -1509,7 +1509,7 @@ class Folder(Store):
file_hash = file_identifier
if self._location:
try:
from metadata import normalize_urls
from SYS.metadata import normalize_urls
with API_folder_store(Path(self._location)) as db:
meta = db.get_metadata(file_hash) or {}
@@ -1550,7 +1550,7 @@ class Folder(Store):
# Normalize + coalesce duplicates per hash.
try:
from metadata import normalize_urls
from SYS.metadata import normalize_urls
except Exception:
normalize_urls = None # type: ignore
@@ -1689,7 +1689,7 @@ class Folder(Store):
file_hash = file_identifier
if self._location:
try:
from metadata import normalize_urls
from SYS.metadata import normalize_urls
with API_folder_store(Path(self._location)) as db:
meta = db.get_metadata(file_hash) or {}
@@ -1726,7 +1726,7 @@ class Folder(Store):
return False
try:
from metadata import normalize_urls
from SYS.metadata import normalize_urls
except Exception:
normalize_urls = None # type: ignore