Skip to content

[CLIENT-4836] Add support for string operations and expressions#1072

Draft
juliannguyen4 wants to merge 95 commits into
devfrom
CLIENT-4836-add-string-ops-and-expressions
Draft

[CLIENT-4836] Add support for string operations and expressions#1072
juliannguyen4 wants to merge 95 commits into
devfrom
CLIENT-4836-add-string-ops-and-expressions

Conversation

@juliannguyen4

@juliannguyen4 juliannguyen4 commented May 20, 2026

Copy link
Copy Markdown
Collaborator

TODO

  • Format string does not throw an error if not replaced.
  • Python docstrings in VS code are not formatted. So the placeholders still show up in type hinting. This problem may also exist with extended metrics / NodeStats in aerospike_helpers.

Docs

https://aerospike-python-client--1072.org.readthedocs.build/en/1072/aerospike_helpers.operations.html#module-aerospike_helpers.operations.string_operations
https://aerospike-python-client--1072.org.readthedocs.build/en/1072/aerospike_helpers.expressions.html#module-aerospike_helpers.expressions.string

@codecov-commenter

codecov-commenter commented May 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 196 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.30%. Comparing base (79c6dfe) to head (8355d2f).

Files with missing lines Patch % Lines
aerospike_helpers/expressions/string.py 0.00% 107 Missing ⚠️
aerospike_helpers/operations/string_operations.py 0.00% 89 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1072      +/-   ##
==========================================
- Coverage   84.46%   83.30%   -1.16%     
==========================================
  Files          99      101       +2     
  Lines       14090    14286     +196     
==========================================
  Hits        11901    11901              
- Misses       2189     2385     +196     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…urs. Just copy type alias TypeCTX to string_operations.py so we don't need to have a import only for type hints
…reasing numeric order) instead of the default alphabetical order
…o define set of _AS_STRING_OP* codes separate from the C client's AS_STRING_OP* codes. The _AS_STRING* codes need to be unique from the other op codes exposed via aerospike_helpers. Then use X macro to expose string op codes from aerospike module
…e type stubs don't show any constants with value 127, so I believe _AS_EXP_CODE_CALL is safe to expose for aerospike_helpers.expressions to use
…s check is added here, then there are redundant checks in places like list_operations.py that omit setting ctx in the dictionary if it is None.
…t parameter, it cannot be omitted before other kwargs.
… seem strange; they use as_operations_string_snip
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.

2 participants