lablup / lablup/backend.ai

Add SessionV2.idleChecks as a SessionIdleCheck relation type connection

Open
#13,605 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

Add an idleChecks connection to SessionV2 over the SessionIdleCheck relation type from BA-7245, on the connection base from BA-7887. The relation type is not a Node: the checker is a Node field resolved through the idle checker bulk loader, and relation values (sources, excluded, effective, expire_at, last_status) are plain fields. Filter and order are SessionIdleCheck's own and nest checker conditions. The cursor encodes the (session_id, idle_checker_id) primary key. Disabled sources and excluded pairs are returned too. Authorization is session READ; only the safe checker projection is exposed. added_version NEXT_RELEASE_VERSION; regenerate schema dumps.

## Success Criteria
- [ ] session with a checker applied through two scopes: one row with two sources
- [ ] excluded pair shows excluded=true, effective=false
- [ ] session READ suffices; no global checker permission needed
- [ ] cursor pagination works without an id field
- [ ] schema dumps regenerated
- [ ] pants test passes for affected packages

JIRA Issue: BA-7281

Contributor guide

Open the contributing guide

Research direction

Start by locating the SessionV2 and SessionIdleCheck definitions and the existing connection base from BA-7887. Trace how the checker bulk loader, authorization, filtering, ordering, and cursor pagination are represented, then run the pants tests for the affected packages. Done means all listed success criteria pass and the schema dumps are regenerated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.