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

Adds bounds to offset Fixes #978 #980

Merged
merged 1 commit into from
Sep 12, 2017
Merged

Adds bounds to offset Fixes #978 #980

merged 1 commit into from
Sep 12, 2017

Conversation

wizarrc
Copy link
Contributor

@wizarrc wizarrc commented Sep 12, 2017

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

offset is unbounded

What is the new behavior?

offset is bounded between 0 and the max page offset.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

This is important when changing other properties such as limit to readjust the offset. This does not address having the offset match where it used to be in the collection, just to make sure it does not display empty because it's out of bounds.

@amcdnl amcdnl self-requested a review September 12, 2017 15:14
Copy link
Contributor

@amcdnl amcdnl left a comment

Choose a reason for hiding this comment

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

LGTM

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