Skip to content

Commit d2efa7e

Browse files
joanagmaiaclaude
andcommitted
perf: use subproject/query-lite for selected project group hydration
Full /segment/subproject/query returns integrations, mapped-repo flags, and all segment fields per subproject — 222 MB for large project groups. query-lite returns only id, name, url, slug, description which is all the frontend needs for segment filtering and display. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent 8296ee5 commit d2efa7e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/modules/lf/segments/lf-segments-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ export class LfService {
8989
return response.data;
9090
}
9191

92-
static async querySubprojects(body) {
92+
static async querySubprojectsLite(body) {
9393
const response = await authAxios.post(
94-
'/segment/subproject/query',
94+
'/segment/subproject/query-lite',
9595
{
9696
...body,
9797
excludeSegments: true,

frontend/src/modules/lf/segments/store/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export default {
277277
return;
278278
}
279279
try {
280-
const response = await LfService.querySubprojects({
280+
const response = await LfService.querySubprojectsLite({
281281
limit: null,
282282
offset: 0,
283283
filter: { grandparentSlug },

0 commit comments

Comments
 (0)