Skip to content

fix(upload): propagate folder renames to already initialized child uploads - #1744

Merged
skjnldsv merged 1 commit into
mainfrom
fix/resolve
Sep 16, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/resolve

Conversation

@susnux

@susnux susnux commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The whole upload tree is initialized upfront, so children are created with the original folder names, while conflicts are resolved later per level. Renaming a directory therefore only updated that node's source and its descendants kept uploading into the conflicting folder.

Replace the source patching with a rebase() method on Upload, which UploadFileTree overrides to also move all of its children.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…loads

The whole upload tree is initialized upfront, so children are created with
the original folder names, while conflicts are resolved later per level.
Renaming a directory therefore only updated that node's source and its
descendants kept uploading into the conflicting folder.

Replace the `source` patching with a `rebase()` method on `Upload`, which
`UploadFileTree` overrides to also move all of its children.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added type: bug 🐛 Something isn't working 3. to review 3️⃣ Waiting for reviews labels Sep 15, 2026
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.42%. Comparing base (bbbce2e) to head (aa315f7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1744      +/-   ##
==========================================
+ Coverage   87.37%   87.42%   +0.04%     
==========================================
  Files          44       44              
  Lines        1117     1121       +4     
  Branches      281      281              
==========================================
+ Hits          976      980       +4     
  Misses        105      105              
  Partials       36       36              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@skjnldsv skjnldsv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting !

@skjnldsv
skjnldsv merged commit 850dce6 into main Sep 16, 2026
13 checks passed
@skjnldsv
skjnldsv deleted the fix/resolve branch September 16, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: bug 🐛 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants