Skip to content

feat(BA-8474): add the v2 API that returns the current user's session counts - #15993

Merged
HyeockJinKim merged 3 commits into
mainfrom
feat/BA-8474
Oct 22, 2026
Merged

HyeockJinKim merged 3 commits into
mainfrom
feat/BA-8474

Conversation

@seedspirit

@seedspirit seedspirit commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add GET /v2/resource-allocation/my/concurrency, GQL myConcurrency, SDK my_concurrency() and CLI ./bai my resource-allocation concurrency
  • They return session_count (interactive, batch, inference) and private_session_count (system sessions such as SFTP) for the current user
  • Sessions are counted with the same conditions as the scheduler's concurrency check (resource_occupied_statuses(), private_types())

Test plan

  • REST as admin: 0 → 1 after starting an interactive session → 0 after terminating it
  • GQL myConcurrency (manager direct, --v2) as admin and as a regular user: each gets only their own counts
  • Session type switched to SYSTEM: private_session_count 1, session_count 0
  • GQL through the Hive Gateway (supergraph regenerated, gateway not recreated locally)

Resolves BA-8474

🤖 Generated with Claude Code


📚 Documentation preview 📚: https://sorna--15993.org.readthedocs.build/en/15993/


📚 Documentation preview 📚: https://sorna-ko--15993.org.readthedocs.build/ko/15993/

… counts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:L 100~500 LoC area:docs Documentations comp:manager Related to Manager component comp:client Related to Client component comp:common Related to Common component comp:cli Related to CLI component labels Oct 22, 2026
@seedspirit
seedspirit marked this pull request as ready for review October 22, 2026 07:13
@seedspirit
seedspirit requested a review from a team as a code owner October 22, 2026 07:13
Copilot AI balanced review requested due to automatic review settings October 22, 2026 07:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@HyeockJinKim
HyeockJinKim merged commit a6530f6 into main Oct 22, 2026
39 of 40 checks passed
@HyeockJinKim
HyeockJinKim deleted the feat/BA-8474 branch October 22, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentations comp:cli Related to CLI component comp:client Related to Client component comp:common Related to Common component comp:manager Related to Manager component size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants