Skip to content

[CLIENT-5057] Document which string operations create a new bin or no-op if a bin does not exist#1150

Draft
juliannguyen4 wants to merge 18 commits into
devfrom
CLIENT-5057-document-string-ops-behavior-when-bin-is-missing
Draft

[CLIENT-5057] Document which string operations create a new bin or no-op if a bin does not exist#1150
juliannguyen4 wants to merge 18 commits into
devfrom
CLIENT-5057-document-string-ops-behavior-when-bin-is-missing

Conversation

@juliannguyen4

@juliannguyen4 juliannguyen4 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator
  • Fix to_string() operation and ToString() expression not working
  • Move ToString() expression closer to all the other string read ops.
  • Align string operation docstrings with company best practices by having a one sentence description and a longer description in a separate paragraph.

Docs

https://aerospike-python-client--1150.org.readthedocs.build/en/1150/aerospike_helpers.html#aerospike_helpers.string_helpers.WriteFlags.DEFAULT

TODO

  • String op test refactor

…ditional / changes to tests. Also string ops tests should be refactored to make easier to change across the board.
@codecov-commenter

codecov-commenter commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.69742% with 90 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.38%. Comparing base (ce62d2e) to head (3f97c8d).
⚠️ Report is 27 commits behind head on CLIENT-5057-refactor-string-ops-tests.

Files with missing lines Patch % Lines
src/main/conversions.c 72.61% 23 Missing ⚠️
src/main/query/where.c 51.51% 16 Missing ⚠️
src/main/convert_expressions.c 92.82% 15 Missing ⚠️
src/main/client/operate_helper.c 95.11% 11 Missing ⚠️
src/main/client/cdt_operation_utils.c 72.97% 10 Missing ⚠️
src/main/client/bit_operate.c 94.65% 7 Missing ⚠️
src/main/exception.c 75.00% 3 Missing ⚠️
src/main/policy_config.c 76.92% 3 Missing ⚠️
src/main/client/operate.c 85.71% 2 Missing ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           CLIENT-5057-refactor-string-ops-tests    #1150      +/-   ##
=========================================================================
+ Coverage                                  84.44%   85.38%   +0.94%     
=========================================================================
  Files                                         99      101       +2     
  Lines                                      14062    14610     +548     
=========================================================================
+ Hits                                       11874    12475     +601     
+ Misses                                      2188     2135      -53     

☔ 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.

…the same string bin. This reduces a good amount of tech debt.
… ops. TODO - Some of these are failing locally, so need to triage
…the same string bin. This reduces a good amount of tech debt.
@juliannguyen4 juliannguyen4 changed the base branch from dev to CLIENT-5057-refactor-string-ops-tests July 14, 2026 22:59
…hange the pad string for pad_start and pad_end, but allow the target_length to be as big as NEEDLE
…non-existent bin name with value set to None instead of the bin name being absent in the bin dictionary. Add more e2e test cases that cover the rest of the string write operations that should be a no-op on a non-existent bin.
…document-string-ops-behavior-when-bin-is-missing
… in each operation's docstring instead of in the string write flags section. Also align with API docs standards by having string write ops' docstrings start with one sentence and have details in a following paragraph.
…ODO - to_string expression currently failing so need to debug it.
…g expression tests currently fail locally, so run in CI/CD
…ag' into CLIENT-5057-document-string-ops-behavior-when-bin-is-missing
…RING_TO_STRING like the to_string() operation helper.
…ions assumes that the bin contains a string. This usually would not be true for the ToString expression. This issue may also happen in other expressions like list, map etc.
@juliannguyen4 juliannguyen4 changed the title [CLIENT-5057] Update string_helpers.WriteFlags docstrings to reflect latest changes in string operations PRD [CLIENT-5057] Document which string operations create a new bin or no-op if a bin does not exist Jul 15, 2026
#: Default. Allow create or update.
DEFAULT = 0
"""
Default. Create or replace.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outdated

"""
Do not raise an error if a modify operation cannot be applied because
the target bin does not exist. The record is left unchanged.
Suppress an operation failure with the bin unchanged.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awaiting more info on how to test this

Base automatically changed from CLIENT-5057-refactor-string-ops-tests to dev July 16, 2026 15:08
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