Skip to content

Refactor and cleanup treatment of keyspace IDs and KeyRange#140

Closed
shanth96 wants to merge 1 commit intov15.0.3-shopify-1from
v15.0.3-keyrange-cleanup
Closed

Refactor and cleanup treatment of keyspace IDs and KeyRange#140
shanth96 wants to merge 1 commit intov15.0.3-shopify-1from
v15.0.3-keyrange-cleanup

Conversation

@shanth96
Copy link
Copy Markdown

Address internal review comments

Fix apparent bug in KeyRangeContiguous when a or b are full-range

Add test for bug in comparing "0003" vs "000300"

Remove trailing zeroes in key.Normalize instead of adding padding

Address review feedback; test formatting, comments, function naming

Refactor tests for TestKeyRangesIntersect

Rename KeyRangesIntersect to KeyRangeIntersect for consistency

Remove unused KeyRangesOverlap function

Rename KeyRangeIncludes to KeyRangeContainsKeyRange, clean up and add tests

Description

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Address internal review comments

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Fix apparent bug in KeyRangeContiguous when a or b are full-range

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Add test for bug in comparing "0003" vs "000300"

Signed-off-by: Hormoz Kheradmand <hormoz.kheradmand@shopify.com>

Remove trailing zeroes in key.Normalize instead of adding padding

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Address review feedback; test formatting, comments, function naming

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Refactor tests for TestKeyRangesIntersect

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Rename KeyRangesIntersect to KeyRangeIntersect for consistency

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Remove unused KeyRangesOverlap function

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>

Rename KeyRangeIncludes to KeyRangeContainsKeyRange, clean up and add tests

Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>
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