Repository navigation
fix: do not report a DataLad home as wiped out - #165
Merged
Merged
Conversation
In DataLad mode, `templateflow wipe` asked for both confirmations, printed that wipe() has no effect, and then ended with "<home> was wiped out." although nothing was deleted. The command now only prints the library's message in DataLad mode, without prompts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#164 merged before its entry was pushed, so it comes here with this pull request's own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oesteban
force-pushed
the
fix/cli-wipe-datalad
branch
from
December 3, 2026 18:55
99a1e8f to
c9ca21c
Compare
oesteban
marked this pull request as ready for review
December 3, 2026 18:57
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #165 +/- ##
==========================================
+ Coverage 84.02% 85.48% +1.46%
==========================================
Files 10 10
Lines 920 923 +3
Branches 192 193 +1
==========================================
+ Hits 773 789 +16
+ Misses 83 70 -13
Partials 64 64
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
In DataLad mode,
templateflow wipeasked for both confirmations and then claimed the home was gone, althoughDataladManager.wipe()deletes nothing:Direct-download (S3) homes behave as before. CHANGES gets this fix's entry and #164's, which merged before its own was pushed. Found while correcting the CLI page on #153, which already describes the fixed behaviour ("In DataLad mode nothing is deleted").
Evidence
test_cli.py::test_wipe, four cases with a scratch home: S3 confirmed (deleted), S3 with a wrong path, S3 declined, and DataLad mode (no prompts, nothing deleted, only the library's message).templateflow/tests/test_cli.py: 10 passed, on master after fix: update DataLad homes from origin only #164.Merge Danger
Door: two-way
Blast Radius: CLI
Only the
wipecommand's output in DataLad mode changes; scripts that piped answers to its prompts in DataLad mode now get no prompts, and nothing was deleted either way.