Skip to content
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

CDT updates #69

Merged
merged 15 commits into from
Jul 31, 2018
Merged

CDT updates #69

merged 15 commits into from
Jul 31, 2018

Conversation

jhecking
Copy link
Contributor

@jhecking jhecking commented Jul 30, 2018

Support all current CDT server side operations:

  • Operations on Ordered Lists & Bounded Lists via new List Policy. (Requires server version v3.16.0 or later.)
  • Option to invert selection criteria for certain List/Map get/remove operations. (Requires server version v3.16.0 or later.)
  • List/Map index/rank relative get/remove operations. (Requires server version v4.3.0 or later.)
  • Partial list/map updates using PARTIAL / NO_FAIL write flags. (Requires server version v4.3.0 or later.)

jhecking added 9 commits July 23, 2018 11:49
* Implement new get_by_* & remove_by_* list operations
* Implement support for Ordered & Unique Lists:
  * Add sort & set_order ops
  * Add sort order list policy for list creation
  * Add add_unique, no_fail, partial list write flags
The of the map order in the map operations is difficult, if not
impossible, for the client to verify, so there isn't much point in
testing this at all.
Write flags replace the existing write mode; requires server version 4.3
or later.
@jhecking jhecking added this to the v2.8 milestone Jul 30, 2018
@jhecking jhecking self-assigned this Jul 30, 2018
@codecov-io
Copy link

codecov-io commented Jul 30, 2018

Codecov Report

Merging #69 into master will decrease coverage by 0.3%.
The diff coverage is 95.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
- Coverage   95.22%   94.92%   -0.31%     
==========================================
  Files         147      153       +6     
  Lines        8968     9894     +926     
==========================================
+ Hits         8540     9392     +852     
- Misses        428      502      +74
Impacted Files Coverage Δ
lib/aerospike/cdt/map_write_mode.rb 100% <ø> (ø) ⬆️
lib/aerospike.rb 100% <100%> (ø) ⬆️
lib/aerospike/cdt/list_order.rb 100% <100%> (ø)
lib/aerospike/cdt/list_write_flags.rb 100% <100%> (ø)
spec/support/utils.rb 100% <100%> (ø) ⬆️
lib/aerospike/cdt/list_return_type.rb 100% <100%> (ø)
lib/aerospike/cdt/map_write_flags.rb 100% <100%> (ø)
lib/aerospike/cdt/list_sort_flags.rb 100% <100%> (ø)
lib/aerospike/utils/unpacker.rb 100% <100%> (ø) ⬆️
lib/aerospike/cdt/map_policy.rb 76.47% <71.42%> (-17.28%) ⬇️
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b015407...1af8da7. Read the comment docs.

jhecking added 5 commits July 30, 2018 18:19
Server behaviour for failed, insert-bounded list operations has changed
in v4.3.0: Older server fail silently while newer servers return a
parameter error.
@jhecking jhecking merged commit ffb9880 into master Jul 31, 2018
@jhecking jhecking deleted the f-cdt-updates branch July 31, 2018 09:11
jhecking added a commit that referenced this pull request Aug 1, 2018
* master:
  CDT list/map updates (#69)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants