Repository navigation
feat(rod): display experiment title in queue jobs table - #1522
Merged
Merged
Conversation
Add ExperimentTitle to storage WorkUnitWithAuthor, Spanner and Postgres active work units queries, ROD proto DashboardJob, and the frontend Resources tab queue jobs table with fallback to 'Experiment #<xid>' when the title is empty. TAG=agy CONV=3618dd8c-9513-4319-8085-208b535d0f56
Drop a mapper test duplicated by TestGetRunningAndPendingJobs and compare Spanner experiment titles with a single cmp.Diff. TAG=agy CONV=3618dd8c-9513-4319-8085-208b535d0f56
There was a problem hiding this comment.
Code Review
This pull request introduces the experiment_title field to the DashboardJob message and propagates it from the database layer (both Postgres and Spanner) up to the UI. The UI now displays the experiment title if available, falling back to the experiment ID, and includes updated accessibility labels. Comprehensive tests have been added and updated across the backend, storage, and frontend components to support this new field. There are no review comments to address.
Give the first mock queue job an experiment title so the ROD screenshot baselines cover both the title and the "Experiment #<xid>" fallback. TAG=agy CONV=3618dd8c-9513-4319-8085-208b535d0f56
The struct now carries the parent experiment title alongside the author, so name it after what it represents: a pending or running work unit returned by FetchActiveWorkUnitsByQueues. TAG=agy CONV=3618dd8c-9513-4319-8085-208b535d0f56
Pass storage.ActiveWorkUnit to mapWorkUnitToDashboardJob instead of adjacent string arguments, read the job link aria-label through the existing getLinks harness method, drop a Spanner emulator test that duplicated EmulatorIntegration, and refresh the activeWorkUnitRow doc. TAG=agy CONV=3618dd8c-9513-4319-8085-208b535d0f56
janzak-dev
marked this pull request as ready for review
November 2, 2026 11:58
AntonTyb
approved these changes
Nov 2, 2026
1 task done
VLukiantsev
added a commit
that referenced
this pull request
Nov 10, 2026
Nightly UI verifiers reference Angular DOM through hand-copied selector strings with no build-graph edge to cmd/ui/app, so template changes (e.g. #1522) pass presubmit and break nightly. check_ui_selector_contract.py collects selectors from the nightly verifier sources via ast and requires every custom tag, class and attribute to exist in the Angular templates/components (Material/CDK prefixes exempt). Literal :has-text / has_text copy matches require a `# ui-contract: <reason>` annotation; existing matches are annotated. Wired into .githooks/pre-commit and lint.yml. TAG=agy CONV=14b9d4de-eba0-4b96-9ca0-760d4a2cc024
VLukiantsev
added a commit
that referenced
this pull request
Nov 12, 2026
Nightly UI verifiers reference Angular DOM through hand-copied selector strings with no build-graph edge to cmd/ui/app, so template changes (e.g. #1522) pass presubmit and break nightly. check_ui_selector_contract.py collects selectors from the nightly verifier sources via ast and requires every custom tag, class and attribute to exist in the Angular templates/components (Material/CDK prefixes exempt). Literal :has-text / has_text copy matches require a `# ui-contract: <reason>` annotation; existing matches are annotated. Wired into .githooks/pre-commit and lint.yml. TAG=agy CONV=14b9d4de-eba0-4b96-9ca0-760d4a2cc024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Displays the actual experiment title (
e.Title) in the "Experiment name" column of the "Resources" tab queue jobs table (<xmc-queue-jobs-table>), falling back to'Experiment #' + job.xidwhenexperimentTitleis empty or undefined.Motivation & Context
Previously, the queue jobs table hardcoded
Experiment #{{ job.xid }}because theDashboardJobprotobuf and storage layer did not expose the experiment title, even though the underlying Spanner and Postgres queries already joined theExperimentstable. Exposinge.Titleimproves user clarity by identifying jobs by their human-readable experiment title instead of numeric IDs alone.Screenshots - taken from the screenshot tests
Key Changes
internal/storage/storage.go): RenamedWorkUnitWithAuthortoActiveWorkUnit(it now carries parent-experiment metadata beyond the author, matchingActiveWorkUnitsResult/FetchActiveWorkUnitsByQueues) and addedExperimentTitle string.internal/storage/spanner/workunit/fetch_active_work_units.go): UpdatedfetchActiveWorkUnitPKsSQLto includeCOALESCE(e.Title, '') AS ExperimentTitle, scanned it intoworkUnitPK, and copied it toActiveWorkUnit. ExtendedTestFetchActiveWorkUnitsByQueues_EmulatorIntegrationto assertExperimentTitle.internal/storage/postgres/workunit/queries.go): UpdatedfetchActiveWorkUnitsSQLto includeCOALESCE(e.Title, '') AS experiment_title, mapped it ontoactiveWorkUnitRow, and copied it intoActiveWorkUnit. Added unit test assertions inqueries_test.go.api/protos/rod/api.proto) & TypeScript Types (cmd/ui/app/protos/rod.d.ts): Added additive, backward-compatible fieldstring experiment_title = 11;toDashboardJob, and updated the corresponding TypeScript interface. Verified//api:protos_breaking_testpasses.cmd/rod_data_provider/jobs.go):mapWorkUnitToDashboardJobnow takes astorage.ActiveWorkUnit(instead of separate work unit / user arguments) and mapsExperimentTitleontoDashboardJob.ExperimentTitle. Extended theTestGetRunningAndPendingJobsexpectation injobs_test.goto assertExperimentTitleis mapped.cmd/ui/app/side_panel/contents/queue_jobs_table/...): Updated<xmc-queue-jobs-table>template to render{{ job.experimentTitle || 'Experiment #' + job.xid }}and updatedaria-labelaccordingly. The harnessgetLinks()/getRowLinks()now also returnjobLinkAriaLabel; unit tests cover a populated title, an empty title, and an undefined title (fallback). Gave the firstMOCK_JOBSentry incmd/ui/screenshot_tests/test_utils.tsanexperimentTitleand regenerated bothresource_dashboardscreenshot baselines so they cover the title and theExperiment #<xid>fallback.Assumptions
None — requirements were fully specified.
Verification & Testing
bazel test //cmd/rod_data_provider/...(PASSED: 6 test targets)bazel test //internal/storage/spanner/workunit:workunit_unit_test(PASSED)bazel test //internal/storage/postgres/workunit:workunit_test(PASSED)bazel test //api:protos_breaking_test(PASSED)bazel test //cmd/ui:ui_unit_tests(PASSED)bazel coverage --combined_report=lcov //cmd/rod_data_provider/...verified 100% test coverage of added/modified lines injobs.go.npx playwright test resource_dashboard --update-snapshots=allregeneratedresource-dashboard-initialandresource-dashboard-queue-selected; fullnpx playwright testsuite passes (10/10)../.githooks/pre-commitpassed cleanly across all linters (Buildifier, gofmt, golangci-lint, ESLint, Prettier, test determinism, license headers) and 72 affected Bazel unit test targets../tools/analyze_diff_size.py --base-ref origin/mainreported 65 prod lines, 21 test lines, 86 total lines (well within thresholds).Related Issues / Bugs
N/A
TAG=agy
CONV=3618dd8c-9513-4319-8085-208b535d0f56