Skip to content

Remove remaining GenericWrapper leftovers (#8981 review) - #8986

Merged
timosachsenberg merged 1 commit into
developfrom
fix/address-genericwrapper-review-8981
Mar 24, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
fix/address-genericwrapper-review-8981

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Addresses review feedback from cbielow on Remove GenericWrapper #8981
  • Removes early -type extraction in TOPPBase::parseCommandLine_ (only needed for GenericWrapper subsection defaults)
  • Removes ToolDescription::addExternalType() and append() methods, stray bla variable, and unused LogStream include
  • Removes stale GenericWrapper assertion in ToolHandler_test and dead test stubs in ToolDescription_test

Test plan

  • OpenMS library builds successfully
  • ToolHandler_test passes

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Refactor
    • Simplified internal tool description handling by removing unused methods.
    • Streamlined command-line argument processing flow.
    • Removed obsolete test cases corresponding to deleted functionality.

…eftovers

- Remove early '-type' extraction in TOPPBase::parseCommandLine_ (only needed for GenericWrapper subsection defaults)
- Remove ToolDescription::addExternalType() and append() methods (unused after GenericWrapper removal)
- Remove stray 'Internal::ToolDescription bla' variable and unused LogStream include
- Remove stale GenericWrapper assertion in ToolHandler_test
- Remove addExternalType/append test stubs in ToolDescription_test

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c4521036-5e9c-4916-bed8-472962a2fc05

📥 Commits

Reviewing files that changed from the base of the PR and between 9e3b9f2 and c94b093.

📒 Files selected for processing (5)
  • src/openms/include/OpenMS/DATASTRUCTURES/ToolDescription.h
  • src/openms/source/APPLICATIONS/TOPPBase.cpp
  • src/openms/source/DATASTRUCTURES/ToolDescription.cpp
  • src/tests/class_tests/openms/source/ToolDescription_test.cpp
  • src/tests/class_tests/openms/source/ToolHandler_test.cpp
💤 Files with no reviewable changes (5)
  • src/tests/class_tests/openms/source/ToolDescription_test.cpp
  • src/tests/class_tests/openms/source/ToolHandler_test.cpp
  • src/openms/include/OpenMS/DATASTRUCTURES/ToolDescription.h
  • src/openms/source/APPLICATIONS/TOPPBase.cpp
  • src/openms/source/DATASTRUCTURES/ToolDescription.cpp

📝 Walkthrough

Walkthrough

This pull request removes the addExternalType() and append() methods from the ToolDescription class, eliminates upfront -type command-line argument extraction in TOPPBase, and updates corresponding tests to reflect these removals.

Changes

Cohort / File(s) Summary
ToolDescription API Removal
src/openms/include/OpenMS/DATASTRUCTURES/ToolDescription.h, src/openms/source/DATASTRUCTURES/ToolDescription.cpp
Removed addExternalType() and append() method declarations and implementations from the ToolDescription class. Also removed LogStream include that supported error logging in the deleted methods.
Command-line Processing Simplification
src/openms/source/APPLICATIONS/TOPPBase.cpp
Removed upfront extraction of -type command-line argument, eliminating manual parameter pre-scan and deferring type handling to the normal command-line parsing flow.
Test Suite Updates
src/tests/class_tests/openms/source/ToolDescription_test.cpp, src/tests/class_tests/openms/source/ToolHandler_test.cpp
Removed placeholder test sections (with TODO bodies) for deleted ToolDescription methods and removed GenericWrapper tool assertion from ToolHandler tests.

Poem

🐰 With hop and cheer, we prune away,

Methods that had their say,

Simpler code now takes the stage,

Less to maintain, a cleaner page!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately and concisely summarizes the primary change: removing GenericWrapper-related leftovers as follow-up work from PR #8981 review.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/address-genericwrapper-review-8981

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 and usage tips.

@timosachsenberg
timosachsenberg merged commit 4f472a6 into develop Mar 24, 2026
35 of 36 checks passed
@timosachsenberg
timosachsenberg deleted the fix/address-genericwrapper-review-8981 branch March 24, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant