Giter Site home page Giter Site logo

Comments (3)

linuxbandit avatar linuxbandit commented on June 3, 2024

I think I had tried with the "up-to-date" API (v2), and I was very surprised that the docs were really wrong. Surprised that it came from their side, Instead of me mistaking the docs with the API version. But again, that's all I remember: my big surprise, maybe things are different now and I didn't have time to try

from bitbucket-issue-migration.

jeffwidman avatar jeffwidman commented on June 3, 2024

Thanks--that is helpful since I was thinking that switching to v2 was the right move because that's where BB would be investing their time to fix stuff... I'll keep an eye on it from time to time and see if they fix it.

A quick google search turns up this issue, but it references v1, not v2: https://answers.atlassian.com/questions/202917/bitbucket-rest-api-request-with-parameters-limit-start-not-worked-properly

from bitbucket-issue-migration.

jeffwidman avatar jeffwidman commented on June 3, 2024

I looked into this a bit, v1 supports the following url structure:
https://bitbucket.org/api/1.0/repositories/zzzeek/sqlalchemy/issues/?sort=local_id&start=1000
as documented here: https://confluence.atlassian.com/bitbucket/issues-resource-296095191.html#issuesResource-DELETEanissue
and the offset works.

So all we need to do is add the sort=local_id

I also checked v2 of the BB API and couldn't find an equivalent start param that starts from an ID. We could just iterate through the BB issues and silently drop any with an ID before the start ID before submitting to Github.

See also comments on #30 about page-by-page vs issue-by-issue queries.

from bitbucket-issue-migration.

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.