Repository navigation
Import a Tandoor export - #435
Merged
Merged
Conversation
… them Tandoor's default export is a zip of zips, one per recipe, and it keeps no written line: each line is rebuilt from amount, unit, food and note. Every step's ingredients come together in one list, a named step and a header row each a Section. A step's own time is the last paragraph of its text, and nutrition beyond calories a line of the Note. A recipe is known by its number and its name, since every Tandoor numbers its recipes from 1 and the number alone took one Tandoor's recipe for another's. The test files are Mealie's Tandoor 1 sample, vanilla-cookbook's Tandoor 2.0 export, and an export made with Tandoor 2.6.15 in a throwaway container, in its default format and as schema.org for #416. Closes #415 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01126KLKw9pGwH2vG3r1i2VL
Closed
8 tasks done
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
A fourth reader for "Import from another app": Tandoor's default export, a zip of one zip per recipe.
READERS Mealie Paprika + Tandoor src/tandoor.rs CroutonTandoor keeps ingredients inside each step and no written line, so the reader gathers them into one list and writes each line out:
A recipe is known by its number and its name,
1 Orange cake. Every Tandoor numbers from 1, so the number alone took a second Tandoor's recipe 1 for the first's and filed its Tags there (chosen 23 October 2026, on the ticket).Test files in
tests/fixtures/tandoor/: Mealie's Tandoor 1 sample, vanilla-cookbook's Tandoor 2.0 export, and an export made with Tandoor 2.6.15 in a throwaway container, also as schema.org for #416.Evidence
After: live on the dev instance, the three files land 1, 10 and 2 recipes with 8 photos, nothing unreadable; each again lands all unchanged; the chili (recipe 1 of one Tandoor) arrives as its own recipe after the Orange cake (recipe 1 of another). The page lists Tandoor and where its export is.
two_tandoors_recipes_of_the_same_number_stay_apart: failed with the number alone (Orange cake offered onto the chili), passes now.just checkandjust testpass: 391 unit, 654 behaviour, 1,396 screen tests.Merge Danger
Door: two-way
Nothing is released yet; the ledger's foreign ids for Tandoor are only written once someone imports with this code.
Blast Radius: imports
A zip of zips is now asked of Tandoor before Crouton. Mealie, Paprika and Crouton files hold no inner
.zip, and a test checks each is turned away by the Tandoor reader.Closes #415
🤖 Generated with Claude Code
https://claude.ai/code/session_01126KLKw9pGwH2vG3r1i2VL