Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #6060: Speed up loading of GitHub repositories in the front-end hero page #6062

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion frontend/src/hooks/query/use-app-repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useAppRepositories = () => {
installationIndex || 0,
installations,
repoPage || 1,
30,
1000,
);
},
initialPageParam: { installationIndex: 0, repoPage: 1 },
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/query/use-user-repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const useUserRepositories = () => {
const repos = useInfiniteQuery({
queryKey: ["repositories", gitHubToken],
queryFn: async ({ pageParam }) =>
retrieveGitHubUserRepositories(pageParam, 100),
retrieveGitHubUserRepositories(pageParam, 1000),
initialPageParam: 1,
getNextPageParam: (lastPage) => lastPage.nextPage,
enabled: !!gitHubToken && config?.APP_MODE === "oss",
Expand Down
20 changes: 1 addition & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ pytest-forked = "*"
pytest-xdist = "*"
flake8 = "*"
openai = "*"
opencv-python = "*"
pandas = "*"
reportlab = "*"

Expand All @@ -108,7 +107,6 @@ jupyterlab = "*"
notebook = "*"
jupyter_kernel_gateway = "*"
flake8 = "*"
opencv-python = "*"

[build-system]
build-backend = "poetry.core.masonry.api"
Expand Down
Loading