lablup / lablup/backend.ai

Load GraphQL data loaders through bulk actions

Closed
#14,619 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

GraphQL data loaders that read id lists through SUPERADMIN-gated global searches refuse the whole batch for a regular user following nodes they can read. Move every such loader to a bulk action that answers per id (partial_bulk_get_ops, public_partial_bulk_get_ops, batch_load_fields), per the N+1 prevention rules in src/ai/backend/manager/api/gql/AGENTS.md.

Out of scope: role_assignment_loader serves only the deprecated RoleAssignment node and stays on the global search until that node is removed.

JIRA Issue: BA-7886

Contributor guide

Open the contributing guide

Research direction

Read src/ai/backend/manager/api/gql/AGENTS.md first, then inspect the GraphQL loaders named in the issue: partial_bulk_get_ops, public_partial_bulk_get_ops, and batch_load_fields. Confirm each relevant loader answers per id through a bulk action and preserves partial results for readable nodes; leave role_assignment_loader on global search as stated.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, python
Domain
backend-api-design
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.