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
fix: add archive skip count tracking and no-auditable-files error
BUG-003: When an archive (.zip/.rar/.7z) contains no auditable files
(all files are unsupported formats), return a clear error message
"no auditable files in the archive" instead of silently creating an
empty audit record. This satisfies AC-4.6.
OBS-004: Track the count of skipped unsupported-format files during
archive processing and include "skipped N unsupported format file(s)"
in the API response message field. This satisfies AC-4.5.
Changes:
- Add skippedCount return value to processRarContent, process7zContent,
getSqlsFromZip, getSqlsFromRar, getSqlsFrom7z, getSqlsFromArchive
- Add Message field to GetSQLFromFileResp for user feedback
- Add newBaseResWithMessage helper for response message composition
- Update CreateSQLAuditRecord and CreateAuditTask handlers to surface
the skip message in the API response
- Update tests for new function signatures
0 commit comments