You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "bramhanandlingala (via GitHub)" <gi...@apache.org> on 2026/07/20 18:34:37 UTC
[PR] fix(bitbucket): paginate remote-scopes API to return all repositories… [devlake]
bramhanandlingala opened a new pull request, #9004:
URL: https://github.com/apache/devlake/pull/9004
### Summary
The Bitbucket `remote-scopes` endpoint only returned the first 100 repos/workspaces — `nextPageToken` was always empty, so the UI had no way to load more.
### Root Cause
- `listBitbucketRepos` / `listBitbucketWorkspaces` never set the `nextPage` return value, so `nextPageToken` was always `""`.
- The `/repositories/{workspace}` call's `fields` filter also excluded `next`, so Bitbucket wouldn't have returned it anyway.
### Changes Made
- `models/repo.go` — added a `Next` field to `WorkspaceResponse` and `ReposResponse` to capture Bitbucket's `next` link.
- `api/remote_api.go`:
- Added `next` to the `fields` filter so Bitbucket includes it in the response.
- Set `nextPage` whenever `resBody.Next != ""`, so the UI can request the following page.
- `api/remote_api_test.go` — tests for both the next-page and last-page cases.
### Does this close any open issues?
Closes #8999
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(bitbucket): paginate remote-scopes API to return all repositories… [devlake]
Posted by "bramhanandlingala (via GitHub)" <gi...@apache.org>.
bramhanandlingala commented on PR #9004:
URL: https://github.com/apache/devlake/pull/9004#issuecomment-5026530531
@klesh
could you review and apprve this PR request
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(bitbucket): paginate remote-scopes API to return all repositories… [devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh merged PR #9004:
URL: https://github.com/apache/devlake/pull/9004
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org