refactor: trivial removals and deprecation completions#2
Open
devin-ai-integration[bot] wants to merge 7 commits into
Open
refactor: trivial removals and deprecation completions#2devin-ai-integration[bot] wants to merge 7 commits into
devin-ai-integration[bot] wants to merge 7 commits into
Conversation
…sites The opt_false function in optional_defaults.hpp was marked with a TODO to remove. Inlined the expression (opt && *opt) at each of the 8 call sites across version_core.cpp, version_store_api.cpp, local_versioned_engine.cpp, and read_options.hpp. Removed the header file and its includes from all consumers. Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Add DeprecationWarning to is_symbol_fragmented in both NativeVersionStore and Library classes, directing users to use defragment_symbol_data instead which checks fragmentation internally. Addresses the TODO comment at the method definition. Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Remove the iterate_on_failure parameter from list_versions and has_symbol methods in NativeVersionStore. This parameter was deprecated, had no effect on behavior, and was documented for removal. Also remove the stale @param comment in version_map.hpp. Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Remove the force_uri_lib_config field from the ParsedQuery dataclass. The parameter is handled during URI parsing for backward compatibility: force_uri_lib_config=true is silently ignored (was always a no-op), and force_uri_lib_config=false still raises ValueError as before. Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Replace the misleading 'Temporary - remove_me' comment with documentation that the key type is no longer written but must be retained because KeyType enum values are persisted to storage. Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Co-Authored-By: Chris Chappell <chris.chappell@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Author
Test ResultsTested Python changes against pip-installed arcticdb (v6.13.0) with branch Python files overlaid, using local LMDB backend. Task 1 — iterate_on_failure removal (2/2 passed)
Task 2 — is_symbol_fragmented deprecation (2/2 passed)
Task 3 — force_uri_lib_config removal (4/4 passed)
Regression — list_versions / has_symbol integration (4/4 passed)
Not tested (requires full C++ build)
|
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.
Reference Issues/PRs
What does this implement or fix?
Five self-contained cleanup tasks:
Remove
opt_falseutility (cpp/arcticdb/util/optional_defaults.hpp)opt && *optat all 8 call sites acrossversion_core.cpp,version_store_api.cpp,local_versioned_engine.cpp, andread_options.hpp#includefrom all consumers, removed fromCMakeLists.txtDeprecate
is_symbol_fragmented(_store.py+library.py)warnings.warn(..., DeprecationWarning)to bothNativeVersionStore.is_symbol_fragmentedandLibrary.is_symbol_fragmented.. deprecated::directive to docstrings directing users todefragment_symbol_dataRemove
iterate_on_failureparameter (_store.py)list_versionsandhas_symbolsignatures, docstrings, and warning logic@param iterate_on_failurecomment inversion_map.hppRemove
force_uri_lib_configfield (s3_library_adapter.py)ParsedQuerydataclass_parse_query:force_uri_lib_config=trueis silently ignored,force_uri_lib_config=falsestill raisesValueErrorUpdate
BACKUP_SNAPSHOT_REFcomment (key.hpp)KeyTypeenum values are persisted to storageAPI changes
NativeVersionStore.list_versions: Removediterate_on_failureparameter (was deprecated, no-op)NativeVersionStore.has_symbol: Removediterate_on_failureparameter (was deprecated, no-op)NativeVersionStore.is_symbol_fragmented: Now emitsDeprecationWarningLibrary.is_symbol_fragmented: Now emitsDeprecationWarningParsedQuery.force_uri_lib_config: Field removed from dataclass; URI parameter still accepted for backward compatibilityAny other comments?
All changes are low-risk and self-contained. No on-disk format changes.
BACKUP_SNAPSHOT_REFenum value (= 20) is intentionally kept to preserve storage compatibility.Checklist
Checklist for code changes...
Link to Devin session: https://app.devin.ai/sessions/ada4efc2f8bf434fbdc84f6fc291b2a5
Requested by: @chrischappell-cog