feat: intégration TikTak #197-200 + scoped tokens, webhooks filtrés, listes mtime/size ; fix e2e-server BUG-112
CI / lint (push) Successful in 3m17s
CI / security (push) Failing after 1m51s
CI / test (push) Successful in 5m14s
CI / build (push) Successful in 1m50s
CI / e2e (push) Successful in 18m18s

This commit is contained in:
2026-10-14 11:42:53 -04:00
parent 2be0b15bcf
commit f783394f09
59 changed files with 3233 additions and 77 deletions
+11
View File
@@ -1229,6 +1229,13 @@ async def update_single_file(vault_name: str, abs_file_path: str) -> dict[str, A
if not vault_path:
return None
# #197 : les routes passent historiquement un chemin relatif au vault
# (``result["path"]``) alors que la docstring exigeait un absolu — le
# rafraîchissement était un no-op silencieux (couvert en prod par le
# watcher, mais pas dans les tests ni en polling lent). On accepte les deux.
if not Path(abs_file_path).is_absolute():
abs_file_path = str(Path(vault_path) / abs_file_path)
# Get vault configuration for hidden files handling
vault_cfg = vault_data.get("config") or vault_config.get(vault_name, {})
@@ -1272,6 +1279,10 @@ async def remove_single_file(vault_name: str, abs_file_path: str) -> dict[str, A
if not vault_path:
return None
# #197 : même tolérance relatif/absolu que ``update_single_file``.
if not Path(abs_file_path).is_absolute():
abs_file_path = str(Path(vault_path) / abs_file_path)
try:
rel_path = str(Path(abs_file_path).relative_to(vault_path)).replace("\\", "/")
except ValueError: