Comments (3)
Do you have a repository on which I can reproduce this?
from bitbucket.cloud.net.
I don't at the moment. This piece of code seems to be iterating over "numPages" without ever using the value of it. I'm assuming this is the problem.
Hacking it by adding "queryParamValues["page"] = numPages;" in the while loop would perhaps fix it.
`
private async Task<IEnumerable> GetPagedResultsAsync(int? maxPages, IDictionary<string, object> queryParamValues, Func<IDictionary<string, object>, Task<PagedResults>> selector)
{
var results = new List();
bool isLastPage = false;
int numPages = 0;
while (!isLastPage && (maxPages == null || numPages < maxPages))
{
var selectorResults = await selector(queryParamValues).ConfigureAwait(false);
results.AddRange(selectorResults.Values);
isLastPage = selectorResults.Next == null;
numPages++;
}
return results;
}
`
from bitbucket.cloud.net.
Found it! :-) It was actually a little bit more involved than that, have a look at GetPagedResultsAsync(). The devil is in the Math.Max details. Thanks for reporting this issue!
from bitbucket.cloud.net.
Related Issues (19)
- Wrong pagination
- PullRequests' Diff And DiffStat calls always return 403 HOT 1
- /2.0/repositories/{workspace}/{repo_slug}/src/{commit}/{path} is not implemented HOT 1
- using GetRepositoryPullRequestCommitsAsync, I only ever get 10 results back e HOT 2
- [QUESTION] Is there a way to get the branch (name/id/anything) from a commit? HOT 1
- Add pagelen and sort as parameters to GetRepositoryPipelinesAsync HOT 2
- Get Git Hash
- Please add very simple basic usage to readme.md
- DiffStat 403 (Forbidden) HOT 1
- DeleteRepositoryWebhookAsync deserialization error
- Error at GetRepositoryCommitsAsync()
- Add generic parameter array to endpoints HOT 2
- View pull request by commit hash HOT 1
- Query parameter in GetRepositoryPullRequestsAsync misnamed
- Any plan for adding documentation? HOT 2
- Better documentation HOT 1
- Failed to parse Json HOT 1
- CreateRepositoryPullRequestAsync failed because of status code 400 HOT 1
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.cloud.net.