Comments (3)
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.
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.
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)
- Support for attachments? HOT 12
- Repeated failures verifying github issue import HOT 6
- Proposal: Truncate all labels to 50 characters HOT 1
- dry-run crashes in milestone code HOT 1
- shorter/prettier style for gh issues HOT 5
- Doesn't work for private Github repos HOT 3
- Cannot install dependencies because venv tool deprecated. HOT 1
- KeyError assuming "username" key HOT 3
- Failed to POST due to unexpected HTTP status code: 410 HOT 2
- Import crashes due to name clash between default labels and imported labels HOT 1
- Github rejects comments where the body is just a newline
- Creates invalid BitBucket user links for users without username HOT 2
- Read user mapping from file HOT 1
- Properly attribute comments to users HOT 3
- Permission denied if issues are private HOT 3
- Support bitbucket priorities
- Does not support images within issue comments
- No such file or directory: '' HOT 3
- Older issues that reference newer issues don't automatically link
- Does this close the Bitbucket issues? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbucket-issue-migration.