Skip to content

🌱 Remove defunct --ignored-patches-dir flag from transform command - #683

Merged
Tamar-Dinavetsky merged 1 commit into
migtools:mainfrom
Tamar-Dinavetsky:refactor/remove-ignored-patches-dir-flag
Jul 23, 2026
Merged

🌱 Remove defunct --ignored-patches-dir flag from transform command#683
Tamar-Dinavetsky merged 1 commit into
migtools:mainfrom
Tamar-Dinavetsky:refactor/remove-ignored-patches-dir-flag

Conversation

@Tamar-Dinavetsky

@Tamar-Dinavetsky Tamar-Dinavetsky commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the --ignored-patches-dir flag from the transform command - the flag is no longer functional or
needed.

  • Remove IgnoredPatchesDir field from Flags struct and flag registration in cmd/transform/transform.go
  • Remove IgnoredPatchesDir field, GetIgnoredPatchesPath, and updateIgnoredPatchesDirPath from
    internal/file/file_helper.go
  • Remove IgnoredPatchesDir field and args injection from e2e-tests/framework/crane.go

No existing tests referenced this flag.
#666

Summary by CodeRabbit

  • Breaking Changes

    • Removed support for the --ignored-patches-dir option from the transform command.
    • Previously ignored or discarded patch outputs can no longer be written to a configured directory.
  • New Features

    • Added support for configuring a plugin directory with the --plugin-dir option.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The transform command removes ignored-patch directory configuration. End-to-end transform options now support plugin directories, and file path helpers remove ignored-patch path generation while retaining transform-directory path rewriting.

Changes

Ignored-patch configuration cleanup

Layer / File(s) Summary
Remove obsolete option surfaces
cmd/transform/transform.go, e2e-tests/framework/crane.go, internal/file/file_helper.go
The command flags, transform options, and path options no longer expose IgnoredPatchesDir.
Update transform wiring and path helpers
e2e-tests/framework/crane.go, internal/file/file_helper.go
The end-to-end runner emits --plugin-dir when configured, while file helpers remove ignored-patch path generation and retain transform-directory rewriting.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Possibly related PRs

  • migtools/crane#211 — Removes the same ignored-patch directory and path-helper plumbing as part of stage-scoped output handling.
  • migtools/crane#555 — Also removes ignored-patch path/report helper support in internal/file/file_helper.go.

Suggested reviewers: stillalearner, msajidmansoori12

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: removing the defunct --ignored-patches-dir flag from the transform command.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Tamar-Dinavetsky Tamar-Dinavetsky changed the title 🧹 Remove defunct --ignored-patches-dir flag from transform command 🌱 Remove defunct --ignored-patches-dir flag from transform command Jul 22, 2026
@Tamar-Dinavetsky

Copy link
Copy Markdown
Contributor Author

/rfr

@midays midays 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.

LGTM

@Tamar-Dinavetsky
Tamar-Dinavetsky merged commit 5c411a5 into migtools:main Jul 23, 2026
6 of 8 checks passed
@Tamar-Dinavetsky Tamar-Dinavetsky self-assigned this Jul 23, 2026
@Tamar-Dinavetsky

Copy link
Copy Markdown
Contributor Author

[review-docs]

@Tamar-Dinavetsky

Copy link
Copy Markdown
Contributor Author

📚 Documentation Review

Analyzed PR: #683
Latest commit: a292fc9

No documentation updates needed - all docs are up to date!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants