GithubHelp home page GithubHelp logo

Comments (6)

mattalbr avatar mattalbr commented on August 27, 2024 1

Confirmed on my end that our unit tests pass now! I'll let you know if we hit any more snags, but it seems as long as we avoid #54 everything is working smoothly. Thanks for the fast responses and the handy library!

from sqlakeyset.

acarapetis avatar acarapetis commented on August 27, 2024

Thanks for the report! I didn't look too closely at the tests for the new .items() method, turns out we're testing for incorrect behaviour! I've got a fix in the pipeline now, will hopefully have a new release out soon.

from sqlakeyset.

acarapetis avatar acarapetis commented on August 27, 2024

New release should hit PyPI within an hour, please let us know if you have any further issues :)

from sqlakeyset.

mattalbr avatar mattalbr commented on August 27, 2024

Thanks for the super prompt fix!

from sqlakeyset.

mattalbr avatar mattalbr commented on August 27, 2024

Sorry to reopen, now I believe there's an off-by-one error with the keyset relative to the value when paging backwards with entries before the end of the current page.

e.g

["a", "b", "c", "d", "e"]
last 3 before "e" gets you:
{cursor: "a"
value: "b"}
{cursor: "b"
value: "c"}
{cursor: "c"
value: "d"}

Is it possible that we fetch an extra bookmark in order to check page before/after and when you just reversed markers in that PR, it's messing up the sentinel value?

from sqlakeyset.

acarapetis avatar acarapetis commented on August 27, 2024

@mattalbr Oh dear!

Is it possible that we fetch an extra bookmark in order to check page before/after and when you just reversed markers in that PR, it's messing up the sentinel value?

Yup, dead on - tests only covered the case where there was no excess, i.e. the page went all the way to the end of the resultset. Fix incoming.

from sqlakeyset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.