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

Define Backend.GetRange to be inclusive #50996

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

espadolini
Copy link
Contributor

@espadolini espadolini commented Jan 13, 2025

This PR changes the implementation of memorybk and etcdbk's GetRange operation to match the behavior of the other backend drivers' GetRange, returning the item at the end of the range (if any is present, which in practice there won't be - which is also the reason why this change is effectively a no-op with the current Teleport code, as all current uses of GetRange involve reading up to the end of a prefix).

@espadolini espadolini added the no-changelog Indicates that a PR does not require a changelog entry label Jan 13, 2025
@espadolini espadolini marked this pull request as ready for review January 13, 2025 20:40
@espadolini espadolini changed the title Test for Backend.GetRange being inclusive Define Backend.GetRange to be inclusive Jan 13, 2025
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from fspmarshall January 14, 2025 16:22
@espadolini espadolini added this pull request to the merge queue Jan 14, 2025
Merged via the queue into master with commit b09b49a Jan 14, 2025
41 checks passed
@espadolini espadolini deleted the espadolini/getrange-inclusive branch January 14, 2025 16:48
@public-teleport-github-review-bot

@espadolini See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed
branch/v17 Create PR

mvbrock pushed a commit that referenced this pull request Jan 18, 2025
* Test for Backend.GetRange being inclusive

* Get rid of the unused prefixItem

* Fix memorybk GetRange not being inclusive

* Fix etcdbk GetRange not being inclusive

* Document the desired behavior of GetRange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants