Repository navigation
Protect originals and preserve existing files when exporting presets - #1637
Merged
Merged
Conversation
Member
|
Thank you @SarimSyed! This landed on main in integration batch 36 (#1843). If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there. |
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.
Preset and point-curve exports previously wrote directly to the requested path. A path naming a catalogued original or its XMP sidecar could replace that file with preset JSON; a failed write could also truncate an existing preset export.
Reuse the engine's existing original/sidecar guard and atomic durable writer for both commands. The change is limited to the two export handlers and their behavior tests; no documentation, branding, dependencies or unrelated fork changes are included.
Validation:
cargo test -p lightcraft-engine --lib tests_export: 31 passed, including lexical/symlink aliases, both sidecar spellings, injected write failure, successful replacement and temporary-file cleanup.cargo xtask ci: fmt, Clippy and HEIF passed; workspace tests stop at the pre-existingvisualize::tests::all_masks_overlay_shows_every_visible_mask_at_oncefailure on upstreamb3d392b4(tracked by Test failure on main: all_masks_overlay_shows_every_visible_mask_at_once paints the left mask black #1457; fixes already proposed in Visualize: the all-masks overlay shows the union of the masks, not the last one #1456/Add coverage tests for the AllMasks union fix (#1457) #1494/Fix all-masks overlay CI regression and cover every view #1599). This PR intentionally does not duplicate that fix.