Repository navigation
organize sftp pdfs by date - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Incoming PDF reports consumed with
on_consumed: movewere placed flat insideprocessed_directory,filtered_directory, orinvalid_directory, causing outcome directories on local folders and SFTP servers to grow into a single flat list over time.pdf_reportsources now automatically file moved PDFs under aYYYY/MM/DDdate hierarchy inside the chosen outcome directory (<outcome_directory>/YYYY/MM/DD/<name>.pdf), using the engine host's local calendar date at the message'sreceived_at:processed_directory,filtered_directory,invalid_directory) remain unchanged; unsetfiltered_directory/invalid_directorycontinue to fall back toprocessed_directory.YYYY/MM/DDdirectories are created automatically on bothfolderandsftpendpoints, preserving existing-1,-2collision suffixes and skipping outcome directories duringrecursivesource scans.delimited_filesources anddelete/leaveconsumption modes are unchanged.Affected requirements & specifications
PRO-07,EPT-03,EPT-04docs/spec/pdf-reports.md(§2),docs/spec/message-channels.md(§2.2),docs/spec/configuration.md(§5.4),docs/spec/acceptance.md(E-14)Documentation & changelog
docs/spec/pdf-reports.md,docs/spec/message-channels.md,docs/spec/configuration.md,docs/spec/acceptance.md, anddocs/operations/configuration-reference.md.console/src/features/config/EndpointFields.tsx) and built-in help (console/help/pdf-reports.json).changelog.d/2026-11-24-pdf-report-date-folders.mdand regeneratedCHANGELOG.md.Verification
cargo fmt --all --check— passcargo clippy -p packie-routing -p packie-transport --all-targets -- -D warnings— passcargo test -p packie-routing --lib— 57 passed (including local timezone date path and fallback unit tests)cargo test -p packie-routing --test message_pdf— 4 passed (outcome folders, duplicates, old-mtime receipt date, defaultprocessed_directory)cargo test -p packie-transport --test folder— 10 passed (including recursive listing skip with nestedYYYY/MM/DDfolders)cargo test -p packie-transport --test sftp— 21 passednpm run typecheck,npm run lint,npm run changelog:check,npx vitest run src/app/help/articles.test.ts src/features/config/EndpointSettings.test.tsx(77 passed),npm run build— passDependencies & remaining limits
jiffwas already in[workspace.dependencies]).STATUS.md(simulator scenarios E-08 to E-14).