-
Notifications
You must be signed in to change notification settings - Fork 109
[CLIENT-5057] Document which string operations create a new bin or no-op if a bin does not exist #1150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
juliannguyen4
wants to merge
18
commits into
dev
Choose a base branch
from
CLIENT-5057-document-string-ops-behavior-when-bin-is-missing
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[CLIENT-5057] Document which string operations create a new bin or no-op if a bin does not exist #1150
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
bca05b9
Compile with -Werror for linux and macos.
juliannguyen4 c80b412
Update documentation to reflect latest changes in PRD. TODO - need ad…
juliannguyen4 4b0e04a
Refactor string op tests by combining all test cases that operate on …
juliannguyen4 352cef8
Add test_string_ops_on_nonexistent_bin_creates_it for additive string…
juliannguyen4 1f91d0d
Refactor string op tests by combining all test cases that operate on …
juliannguyen4 221e0a4
Address incorrect tests for pad_start and pad_end on nonexistent bin.
juliannguyen4 061a174
Since all tests in this function expect NEEDLE as the output, don't c…
juliannguyen4 4416fb5
Add negative tests that check the other string write ops don't create…
juliannguyen4 96c0595
Address failing negative tests where operations.read() will return a …
juliannguyen4 d1a66a1
Merge branch 'CLIENT-5057-refactor-string-ops-tests' into CLIENT-5057…
juliannguyen4 0dfc023
Document how each string op behaves with regards to a nonexistent bin…
juliannguyen4 028688a
Address to_string expression and operation not being implemented... T…
juliannguyen4 b08d986
Fully implement to_string() expression and operation. TODO - to_strin…
juliannguyen4 69c45b1
Merge remote-tracking branch 'origin/dev' into CLIENT-4869-fix-macos-…
juliannguyen4 dac0e4f
Merge branch 'CLIENT-4869-fix-macos-failing-to-compile-with-Werror-fl…
juliannguyen4 1a14d52
To make simpler, just have ToString expression reuse aerospike._OP_ST…
juliannguyen4 3f97c8d
The problem was passing in the bin name as a string to string express…
juliannguyen4 e507e82
Merge remote-tracking branch 'origin/dev' into CLIENT-5057-document-s…
juliannguyen4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,13 +48,16 @@ class WriteFlags(IntEnum): | |
| String operation policy write bit flags. Use bitwise OR to combine flags. | ||
| """ | ||
|
|
||
| #: Default. Allow create or update. | ||
| DEFAULT = 0 | ||
| """ | ||
| Default. Create or replace. | ||
| """ | ||
|
|
||
| NO_FAIL = 4 | ||
| """ | ||
| 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. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. awaiting more info on how to test this |
||
| Does not suppress wrong-type errors. | ||
| """ | ||
|
|
||
|
|
||
|
|
||
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outdated