Page MenuHomePhabricator

Fix deletion detection when updating based on ZIP
ClosedPublic

Authored by hach-que on Dec 7 2013, 6:32 AM.
Tags
None
Referenced Files
F14059284: D7736.diff
Sun, Nov 17, 6:47 PM
F14048924: D7736.diff
Thu, Nov 14, 10:18 AM
F14033924: D7736.diff
Sat, Nov 9, 8:49 PM
F14022250: D7736.diff
Wed, Nov 6, 3:47 PM
F14006833: D7736.diff
Mon, Oct 28, 6:48 PM
F14001198: D7736.id17482.diff
Fri, Oct 25, 5:05 AM
F13969319: D7736.diff
Oct 17 2024, 1:54 AM
Unknown Object (File)
Oct 13 2024, 3:42 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T4205: Implement Phragment
Commits
Restricted Diffusion Commit
rP67b37a5c1dc0: Fix deletion detection when updating based on ZIP
Summary

When the code to update based on ZIP went to look up the child fragments, it explicitly used the paths provided in the ZIP. This meant that we could never detect omissions because there'd never be a scenario where a child fragment would return but not exist in the ZIP. To fix this, the query should be using withLeadingPath instead of withPaths.

Test Plan

Uploaded a ZIP that omitted a file and saw the deleteFile get called (by placing debugging output in the code).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped