feat(bulk-import): repository list includes only "Left Overs" - #2465
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
f5ff401 to
988f016
Compare
Review Summary by QodoFilter bulk-import repository list to show only not-yet-imported repositories
WalkthroughsDescription• Filter bulk-import repository list to show only not-yet-imported repositories • Refactor GitHub/GitLab API pagination to fetch all repositories across pages • Remove pagination parameters from service layer, handle client-side filtering • Add comprehensive test coverage for repository filtering scenarios Diagramflowchart LR
A["Repository APIs<br/>GitHub/GitLab"] -->|"Fetch all pages"| B["listAllRepositories<br/>Functions"]
B -->|"All repositories"| C["findAllRepositories<br/>Handler"]
D["Catalog API<br/>Locations"] -->|"Already imported"| C
C -->|"Filter & slice"| E["Not-yet-imported<br/>repositories"]
E -->|"Return paginated"| F["Frontend UI"]
File Changes1. workspaces/bulk-import/plugins/bulk-import-backend/src/github/utils/utils.ts
|
Code Review by Qodo
1.
|
…epositories for authenticated user Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…me them Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…stAllRepositoriesForAuthenticatedUser Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…toriesForAuthenticatedUser Signed-off-by: Dominik Augustín <daugusti@redhat.com>
… repository listing Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…function to the bottom of the file Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…tedUser endpoint usage Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…oriesForAuthenticatedUser Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…ries call to fetch all repositories Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…lRepositories Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…imported repositories Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…tead of parseInt Signed-off-by: Dominik Augustín <daugusti@redhat.com>
c34c19c to
bb290fe
Compare
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…b and gitlab Signed-off-by: Dominik Augustín <daugusti@redhat.com>
|
GitLab auth was not working for me unless I updated Gitlab from: to This file change is not part of this PR and was tested for #2647, so I might have misconfigured something. |
|
Thank you for the PR @dom-aug, looks great, I have found only minor issues. I would like to point out that repositories are filtered out even when their entities are not yet imported in Catalog, just waiting to be imported (PR with Performance is slow even when paginating. I understand it is expected when user has access to a lot of repositories, however, I think we should investigate if it could be improved, at least for paging. Gitlab: Screen.Recording.2026-04-13.at.11.36.45.movGithub: bulk-import-repos_compressed.mov |
… array Signed-off-by: Dominik Augustín <daugusti@redhat.com>
…to the repositories table Signed-off-by: Dominik Augustín <daugusti@redhat.com>
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
|
Thank you @dom-aug for the changes, confirmed that pagination works better: Screen.Recording.2026-04-20.at.9.47.38.mov |
Signed-off-by: Dominik Augustín <daugusti@redhat.com>
|



Hey, I just made a Pull Request!
This Pull Request fixes RHIDP-11693
The bulk import backend plugin returns repositories that have not been imported yet.
✔️ Checklist