Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Open Studio metrics and logs to users#2882

Merged
ZaynJarvis merged 1 commit into
mainfrom
codex/fix-studio-user-home-scope
Jun 29, 2026
Merged

Open Studio metrics and logs to users#2882
ZaynJarvis merged 1 commit into
mainfrom
codex/fix-studio-user-home-scope

Conversation

@yufeng201

@yufeng201 yufeng201 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Open Studio dashboard metrics and request logs to regular users while keeping returned data scoped to the authenticated identity. Admin and root identities keep the account-wide view; regular users only see their own usage and audit rows.

Related Issue

N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • Allow USER role access to Studio console dashboard metrics and request logs.
  • Scope usage/audit queries by RequestContext internally, without adding public user_id API parameters.
  • Update Studio navigation, Home, Request Logs, and Settings copy for regular-user Studio access.
  • Prefer the user API key for console data requests while keeping admin endpoints on the admin key.
  • Add backend and frontend tests for scoped console data and API key selection.

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Checks run:

  • git diff --check
  • uv run pytest tests/observability/test_console_router.py tests/observability/test_usage_audit_api_service.py tests/observability/test_usage_audit_store.py
  • npm run test -- src/lib/ov-client/client.test.ts

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

N/A

Additional Notes

Split out from the earlier mixed Studio PR. Performance chunk splitting and session/cache isolation now live in separate branches/PRs.

docs/design/web-studio-global-review.md remains intentionally uncommitted and is not part of this PR.

@yufeng201 yufeng201 changed the title Improve Web Studio bundle splitting Scope Studio data and split heavy UI chunks Jun 29, 2026
@yufeng201 yufeng201 marked this pull request as ready for review June 29, 2026 06:40
@yufeng201 yufeng201 force-pushed the codex/fix-studio-user-home-scope branch from 4934b12 to 724a182 Compare June 29, 2026 06:59
@yufeng201 yufeng201 changed the title Scope Studio data and split heavy UI chunks Open Studio metrics and logs to users Jun 29, 2026
@ZaynJarvis ZaynJarvis merged commit 65f80c4 into main Jun 29, 2026
3 checks passed
@ZaynJarvis ZaynJarvis deleted the codex/fix-studio-user-home-scope branch June 29, 2026 07:08
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants