lablup / lablup/backend.ai

Scope dashboard REST endpoint: return linked dashboard + panels (each panel executes with scope_id)

Open
#12,610 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

GET /resource/scopes/{scope_type}/{scope_id}/dashboard. Return the dashboard linked to the scope plus its panels; each panel's preset executes with scope_id as id. Web UI renders natively (descriptors + values). Gate on the scoped read-permission check.

Success Criteria:
- [ ] Returns the linked dashboard + ordered panels with executed values for a scope with a link.
- [ ] Scope with no linked dashboard -> empty/404 per contract.
- [ ] Each panel value reflects scope_id-bound preset execution.
- [ ] Unauthorized requester -> 403.
- [ ] pants test passes for affected packages

JIRA Issue: BA-6756

Contributor guide

Open the contributing guide

Research direction

Start by locating the GET /resource/scopes/{scope_type}/{scope_id}/dashboard route and the code that loads linked dashboards, panels, and presets. Trace the scoped read-permission check, then run the affected packages with pants test; done means the success criteria pass, including the no-dashboard response contract and 403 handling.

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
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.