change query to check all repos, not only the first page.#112334
Merged
rodolfoBee merged 11 commits intomasterfrom Apr 8, 2026
Merged
change query to check all repos, not only the first page.#112334rodolfoBee merged 11 commits intomasterfrom
rodolfoBee merged 11 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Loading state gap between infinite query page fetches
- This was a real flicker gap and I fixed it by keeping the repos loading state true while
hasNextPageremains true (unless the query is errored), so the UI waits until all pages are fetched.
- This was a real flicker gap and I fixed it by keeping the repos loading state true while
Or push these changes by commenting:
@cursor push ba8c47e560
Preview (ba8c47e560)
diff --git a/static/app/views/settings/organizationIntegrations/integrationCodeMappings.tsx b/static/app/views/settings/organizationIntegrations/integrationCodeMappings.tsx
--- a/static/app/views/settings/organizationIntegrations/integrationCodeMappings.tsx
+++ b/static/app/views/settings/organizationIntegrations/integrationCodeMappings.tsx
@@ -180,10 +180,14 @@
data: fetchedRepos = [],
isPending: isPendingReposQuery,
isError: isErrorRepos,
+ hasNextPage: hasNextReposPage,
isFetchingNextPage: isFetchingNextReposPage,
} = repositoriesQuery;
- const isPendingRepos = isPendingReposQuery || isFetchingNextReposPage;
+ const isPendingRepos =
+ isPendingReposQuery ||
+ isFetchingNextReposPage ||
+ (!!hasNextReposPage && !isErrorRepos);
const pathConfigs = useMemo(() => {
return sortBy(fetchedPathConfigs, [This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2699072. Configure here.
Member
Author
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com> Applied via @cursor push command
TkDodo
approved these changes
Apr 7, 2026
…CodeMappings.tsx Co-authored-by: Dominik Dorfmeister 🔮 <dominik.dorfmeister@sentry.io>
george-sentry
pushed a commit
that referenced
this pull request
Apr 9, 2026
fixes #112332 This changes how repos are fetched so all repos are listed for code mappings. --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Dominik Dorfmeister 🔮 <dominik.dorfmeister@sentry.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


fixes #112332
This changes how repos are fetched so all repos are listed for code mappings.