Skip to content

fix(studio): stop evaluation fileset links 404ing by default - #1199

Merged
htolentino-nvidia merged 1 commit into
mainfrom
fix-eval-config-fileset-link-404/htolentino
Aug 10, 2026
Merged

fix(studio): stop evaluation fileset links 404ing by default#1199
htolentino-nvidia merged 1 commit into
mainfrom
fix-eval-config-fileset-link-404/htolentino

Conversation

@htolentino-nvidia

@htolentino-nvidia htolentino-nvidia commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

https://nvbugspro.nvidia.com/bug/6581177

Summary by CodeRabbit

  • Bug Fixes

    • Improved navigation to fileset details from evaluation configuration, artifact, and dataset links.
    • Preserved namespaced fileset references correctly when opening details.
  • Tests

    • Added coverage for fileset routes using both simple and namespaced references, including encoded workspace and namespace values.

The Eval Config, Artifacts, and Dataset links on the evaluation pages all
pointed at the unified fileset detail page via getFilesetDetailRoute. That
route is registered only when FILESET_DETAILS_ENABLED is on, and the flag
defaults to false, so on a default deployment every one of those links
landed on a 404.

Add getFilesetRoute, which picks the route that is actually registered and
normalizes the reference for it: the detail page takes a bare name and
derives the namespace itself, while the panel route needs a full
namespace/name entity reference. Point the evaluation links at it.

FilesetListRoute and useCreateFileset already guarded on the flag and are
unchanged. FilesetCreateModal calls getFilesetDetailRoute directly, but
both of its entry points are themselves flag-gated.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Henrique Tolentino <htolentino@nvidia.com>
@htolentino-nvidia
htolentino-nvidia requested review from a team as code owners August 10, 2026 14:35
@github-actions github-actions Bot added the fix label Aug 10, 2026
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds getFilesetRoute, tests its route behavior, and updates dataset, evaluation configuration, and artifact links to use the shared helper.

Changes

Fileset routing

Layer / File(s) Summary
Fileset route helper and coverage
web/packages/studio/src/routes/utils.ts, web/packages/studio/src/routes/utils.test.ts
Adds conditional routing for fileset detail and legacy URLs. Tests cover bare names, namespaces, workspace prefixes, and encoding.
Dataset fileset navigation
web/packages/studio/src/components/evaluation/Jobs/DetailsPanel.tsx
Preserves the full dataset path before # and uses getFilesetRoute for dataset links.
Agent evaluation navigation
web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx, web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationDetailRoute.tsx
Uses getFilesetRoute for evaluation configuration and artifact links.

Possibly related PRs

Suggested reviewers: steramae-nvidia, marcusds

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: fixing evaluation fileset links that returned 404 errors by default.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-eval-config-fileset-link-404/htolentino

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (2)
web/packages/studio/src/routes/utils.test.ts (1)

70-84: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Cover the enabled route branch.

These tests assert only the legacy panel URL. Add controlled tests with FILESET_DETAILS_ENABLED enabled for bare and namespaced references, including options.tab. This protects the detail route and its reference normalization.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/packages/studio/src/routes/utils.test.ts` around lines 70 - 84, Extend
the getFilesetRoute tests to cover the FILESET_DETAILS_ENABLED-enabled branch
for both bare and already-namespaced references, including an options.tab value.
Assert the detail-route URL and normalized entity references while preserving
the existing legacy-route coverage.
web/packages/studio/src/routes/utils.ts (1)

491-495: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Make the exported route contract explicit.

getFilesetRoute repeats the inline { tab?: FilesetDetailTab } shape and infers its public return type. Define one FilesetRouteOptions interface, reuse it in both route helpers, mark tab as readonly, and declare the return type as string.

Proposed refactor
+interface FilesetRouteOptions {
+  readonly tab?: FilesetDetailTab;
+}
...
-  options?: { tab?: FilesetDetailTab }
+  options?: FilesetRouteOptions
-) => {
+): string => {

As per coding guidelines, prefer interface for object shapes and contracts, use readonly for immutable properties, and use explicit return types for public APIs.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/packages/studio/src/routes/utils.ts` around lines 491 - 495, Update
getFilesetRoute and the other fileset route helper to use a shared exported
FilesetRouteOptions interface instead of inline option shapes; define its tab
property as readonly and optional, and explicitly declare getFilesetRoute’s
public return type as string.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@web/packages/studio/src/routes/utils.test.ts`:
- Around line 70-84: Extend the getFilesetRoute tests to cover the
FILESET_DETAILS_ENABLED-enabled branch for both bare and already-namespaced
references, including an options.tab value. Assert the detail-route URL and
normalized entity references while preserving the existing legacy-route
coverage.

In `@web/packages/studio/src/routes/utils.ts`:
- Around line 491-495: Update getFilesetRoute and the other fileset route helper
to use a shared exported FilesetRouteOptions interface instead of inline option
shapes; define its tab property as readonly and optional, and explicitly declare
getFilesetRoute’s public return type as string.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c09b679f-93af-4abb-8e4d-9be459f17872

📥 Commits

Reviewing files that changed from the base of the PR and between 1c2e9d6 and cc8371e.

📒 Files selected for processing (5)
  • web/packages/studio/src/components/dataViews/AgentEvaluationsDataView/index.tsx
  • web/packages/studio/src/components/evaluation/Jobs/DetailsPanel.tsx
  • web/packages/studio/src/routes/agents/AgentEvaluationsRoute/AgentEvaluationDetailRoute.tsx
  • web/packages/studio/src/routes/utils.test.ts
  • web/packages/studio/src/routes/utils.ts

@github-actions

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 31771/40384 78.7% 63.4%
Integration Tests 18456/38314 48.2% 20.8%

@htolentino-nvidia
htolentino-nvidia added this pull request to the merge queue Aug 10, 2026
Merged via the queue into main with commit 1d6a094 Aug 10, 2026
56 checks passed
@htolentino-nvidia
htolentino-nvidia deleted the fix-eval-config-fileset-link-404/htolentino branch August 10, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants