Skip to content

docs(changelog): add entry for OpenMS::String -> std::string removal (#9450) - #9724

Merged
timosachsenberg merged 1 commit into
OpenMS:developfrom
timosachsenberg:changelog/9450-string-removal
Jul 10, 2026
Merged

timosachsenberg merged 1 commit into
OpenMS:developfrom
timosachsenberg:changelog/9450-string-removal

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

PR #9450 ("replace String with std::string") removed the OpenMS::String class (and OpenMS::StringView) in favor of std::string / std::string_view, but no CHANGELOG entry was ever added for it. This adds one.

The new BREAKING entry lives in the OpenMS 3.6.0 General: section, directly after the related Qt string-interop removal (#8940). It records:

  • OpenMS::String removed; std::string used throughout the public API and internals (StringList is now std::vector<std::string>)
  • member conversions/helpers replaced by the OpenMS::StringUtils free functions (toStr, split, trim, substitute, toInt/toDouble/toFloat, number, ...)
  • OpenMS::StringView removed in favor of std::string_view
  • the follow-up removal of the obsolete String/StringConversions/StringUtilsSimple shim headers (Remove obsolete String/StringConversions/StringUtilsSimple shim headers #9468)

Docs-only change (CHANGELOG); no code or tests affected.

Checklist

  • Add relevant changes and new features to the CHANGELOG file

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Breaking Changes
    • Removed the legacy OpenMS::String and OpenMS::StringView types.
    • Public APIs and internal code now use standard C++ strings, with string lists represented as vectors of strings.
    • Replace former string member helpers with OpenMS::StringUtils functions or direct standard string operations.
    • Related compatibility headers have been removed.

…penMS#9450)

PR OpenMS#9450 removed the OpenMS::String class (and StringView) in favor of
std::string / std::string_view but never added a CHANGELOG entry. Record
it as a BREAKING change in the 3.6.0 General section next to the related
Qt string-interop removal (OpenMS#8940), noting the StringUtils free-function
migration path and the follow-up shim-header removal (OpenMS#9468).

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The changelog adds a breaking notice documenting removal of OpenMS::String and OpenMS::StringView, migration to standard string types, replacement helpers, and removed shim headers.

Changes

String API migration

Layer / File(s) Summary
Breaking string API entry
CHANGELOG
Documents replacing OpenMS string types with std::string and std::string_view, using OpenMS::StringUtils free functions or direct string operations, and removing related shim headers.

Poem

A rabbit hops through strings bright,
“Use standard words from now tonight!”
std::string trails softly behind,
While StringUtils helpers unwind.
Old shims rest beneath the moon—
A breaking change, arriving soon!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the documentation change about removing OpenMS::String in favor of std::string.
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.
✨ 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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CHANGELOG`:
- Line 54: Clarify the CHANGELOG entry to state that OpenMS::String remains a
source-compatible alias of std::string. Remove the claim that OpenMS::String
declarations or String& parameters must migrate, and instead specify that code
must migrate only when it relies on removed String member functions or
conversion behavior; retain the note that StringView was replaced by
std::string_view.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cacb41d0-15cb-49bc-b123-980a66cb7a1f

📥 Commits

Reviewing files that changed from the base of the PR and between 12d50c2 and 16edc35.

📒 Files selected for processing (1)
  • CHANGELOG

Comment thread CHANGELOG
- BREAKING: QDir/QFile/QFileInfo replaced with std::filesystem in the core library; copyDirRecursively/removeDir signatures changed from QString& to String&; ToolHandler returns StringList instead of QStringList; new PathUtils.h added with UTF-8-safe to_path() helper (#8938)
- BREAKING: QProcess/QObject replaced with boost::process in ExternalProcess, PythonInfo, JavaInfo, and RWrapper; ExternalProcess no longer inherits from QObject; ExternalProcess::run(), TOPPBase::runExternalProcess_(), RWrapper::findR()/runScript(), and ExternalProcessMBox::run() now use String/vector<String> instead of QString/QStringList (#8939)
- BREAKING: Qt string interop removed from core String and DataValue API; String(const QString&), String::toQString(), DataValue(const QString&), DataValue::toQString(), and StringListUtils::fromQStringList() removed; Qt5Port.h deleted (#8940)
- BREAKING: the OpenMS::String class has been removed; OpenMS now uses std::string throughout its public API and internals (StringList is now std::vector<std::string>). String's member conversions/helpers are no longer available as methods — use the free functions in OpenMS::StringUtils (toStr for value-to-string, split, trim/trimmed, substitute/substituted, toInt/toDouble/toFloat, number, ...) or plain std::string members instead. OpenMS::StringView was likewise removed in favor of std::string_view. Downstream code that declared OpenMS::String, passed String& parameters, or relied on implicit String<->std::string conversion must migrate to std::string. The obsolete String/StringConversions/StringUtilsSimple shim headers were subsequently removed (#9450, #9468)

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Clarify that OpenMS::String remains an alias.

The in-repo migration test documents that OpenMS::String is now a std::string alias and that only its former member functions were removed (src/tests/class_tests/openms/source/String_test.cpp:11-13). Saying that declarations and String& parameters must migrate is misleading; callers relying on removed members or conversions must migrate, while alias-only usage remains source-compatible.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG` at line 54, Clarify the CHANGELOG entry to state that
OpenMS::String remains a source-compatible alias of std::string. Remove the
claim that OpenMS::String declarations or String& parameters must migrate, and
instead specify that code must migrate only when it relies on removed String
member functions or conversion behavior; retain the note that StringView was
replaced by std::string_view.

@timosachsenberg
timosachsenberg merged commit 249d7ee into OpenMS:develop Jul 10, 2026
22 of 23 checks passed
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