Repository navigation
[INTERNAL,TEST] Separate filesystem configuration and temporary-file policy - #10089
Closed
timosachsenberg wants to merge 4 commits into
Closed
timosachsenberg wants to merge 4 commits into
timosachsenberg wants to merge 4 commits into
Conversation
Keep the established filename rules in FileNameUtils and preserve the FileHandler API as forwarding methods. Share basename handling via PathUtils and remove format-dispatch dependencies from File and ProteinIdentification. Part of OpenMS#10083, step 4.
…policy Move settings methods into FileConfig.cpp and temporary-directory/registry implementation into FileTemp.cpp. Keep public definitions and method bodies unchanged, with core File.cpp free of settings and temp-policy references. Part of OpenMS#10083, step 5; follows step 4.
This was referenced Sep 8, 2026
The baseline is recorded in OpenMS#10083; no scanner or CI check is added. Co-Authored-By: Claude Fable 5.1 <[email protected]>
5 tasks done
Contributor
Author
|
Superseded by #10098, which carries the same step-5 change rebased onto Generated by Claude Code |
timosachsenberg
added a commit
that referenced
this pull request
Sep 9, 2026
…policy (#10098) Move settings methods into FileConfig.cpp and temporary-directory/registry implementation into FileTemp.cpp. Keep public definitions and method bodies unchanged, with core File.cpp free of settings and temp-policy references, and point File.cpp readers to the sibling sources. Part of #10083, step 5; follows step 4 (#10088). Supersedes #10089.
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.
Implements step 5 of #10083. Stacked on #10088 (filename extraction); merge that PR first. The focused step-5 diff is timosachsenberg/OpenMS@architecture/batch-04-filename-utils...architecture/batch-05-file-config.
File.cpp currently combines basic filesystem/shared-data operations with INI settings and temporary-file policy. FileConfig.cpp now contains the settings and user/temp/database path policy. FileTemp.cpp contains both TempDir constructors, the unique-directory implementation, temporary filename allocation, and its registry definition. The definitions retain their existing method bodies and remain in the same OpenMS library.
Basic File.cpp no longer includes Param/ParamXMLFile or references the settings/temp-policy methods. This resolves the two settings-related File.cpp edges recorded in #10083. The File facade still exposes settings-dependent APIs; this does not claim the entire class is independently linkable.
The File class test now covers the explicit-parent TempDir constructor and unique/explicit temporary filename allocation, in addition to the existing default constructor, cleanup, and settings tests.
Validation: all extracted blocks compared verbatim; no configuration/temp-policy references remain in File.cpp; the #10083 include check reports seven remaining edges; git diff --check passes. File_test and platform compilation are submitted to CI. No local OpenMS build was run. Kept draft pending CI and its prerequisite.