Skip to content

Fix group mode to aggregate "Additional runs" as "Unassigned" group in charts#21155

Merged
WeichenXu123 merged 5 commits intomasterfrom
copilot/fix-group-mode-display-issue
Mar 4, 2026
Merged

Fix group mode to aggregate "Additional runs" as "Unassigned" group in charts#21155
WeichenXu123 merged 5 commits intomasterfrom
copilot/fix-group-mode-display-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

Closes #21129

In group mode, runs lacking the grouping attribute were placed in an "Additional runs" table group but rendered as individual traces in charts — inconsistent with how proper groups display as aggregated traces. This PR aggregates those runs into a single "Unassigned" group trace in all charts.

Changes

  • RunsCompare.tsx: Remove the isRemainingRunsGroup exclusion filter and the individual-run fallback mapping. All group headers (including the remaining runs group) are now passed through createGroupDataTrace, so their metrics are aggregated uniformly.
  • experimentPage.group-row-utils.ts: getRunGroupDisplayName now returns "Unassigned" for remaining-runs groups instead of "", giving the chart legend/tooltip a meaningful label.
  • RunsCompare.test.tsx: Updated the mixed groups/ungrouped test to include the remaining runs group header in comparedRuns, matching the actual production data shape (the group header always accompanies its member runs).
  • experimentPage.group-row-utils.test.ts: Updated display name assertions from """Unassigned".

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.

Does this PR require updating the MLflow Skills repository?

  • No. You can skip the rest of this section.

Release Notes

Is this a user-facing change?

  • Yes. Give a description of this change to be included in the release notes for MLflow users.

When grouping runs by a parameter/tag, runs without that attribute are now shown as a single aggregated "Unassigned" group trace in metric charts instead of individual per-run traces, consistent with how named groups are displayed.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Should this PR be included in the next patch release?

  • Yes (this PR will be cherry-picked and included in the next patch release)
  • No (this PR will be included in the next minor release)
Original prompt

This section details on the original issue you should resolve

<issue_title>[BUG] Group mode should show additional runs as a group</issue_title>
<issue_description>### Issues Policy acknowledgement

  • I have read and agree to submit bug reports in accordance with the issues policy

Where did you encounter this bug?

Local machine

MLflow version

  • Client: 3.9.0
  • Tracking server: 3.9.0

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows
  • Python version: 3.12.12

Describe the problem

Currently, runs which do not have the attribute used to group are gathered in "Additional runs" and display on the plots as individual runs, while groups are displayed as a mean of all the run they contain. It would make more sense to gather all the "Additional runs" in a group called "Others" (or "Undefined") and display it as any other groups (not individual runs). The would make more sense as now it is very confusing to see individual runs and aggregated runs in the same plots.

Tracking information

REPLACE_ME

Code to reproduce issue

REPLACE_ME

Stack trace

REPLACE_ME

Other info / logs

REPLACE_ME

What component(s) does this bug affect?

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow model serving, deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/prompt: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting
  • area/docs: MLflow documentation pages</issue_description>

<agent_instructions>guide: #21129 (comment)</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@WeichenXu123 Yes this proposal makes sense to me and @daniellok-db

We need to aggregate additional runs as "Others" group in the following charts.

Image</comment_new>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…up in charts

Co-authored-by: WeichenXu123 <19235986+WeichenXu123@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix display of additional runs in group mode Fix group mode to aggregate "Additional runs" as "Unassigned" group in charts Feb 26, 2026
@WeichenXu123 WeichenXu123 marked this pull request as ready for review March 2, 2026 13:29
Copilot AI review requested due to automatic review settings March 2, 2026 13:29
@github-actions github-actions bot added area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server rn/bug-fix Mention under Bug Fixes in Changelogs. size/M labels Mar 2, 2026
Copy link
Collaborator

@WeichenXu123 WeichenXu123 left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes grouped-run chart behavior in the experiment “compare runs” view by ensuring runs that lack the grouping attribute are charted as a single aggregated trace (labeled “Unassigned”) instead of multiple per-run traces.

Changes:

  • Update compare-charts trace generation to aggregate all group headers (including the remaining-runs group) uniformly.
  • Update remaining-runs group display name to return "Unassigned" for chart legend/tooltip labeling.
  • Adjust unit/integration tests to include the remaining-runs group header and validate updated display names.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
mlflow/server/js/src/experiment-tracking/components/runs-compare/RunsCompare.tsx Removes special-casing so remaining-runs group is included as an aggregated group trace.
mlflow/server/js/src/experiment-tracking/components/runs-compare/RunsCompare.test.tsx Updates mixed group/ungrouped test data shape to include remaining-runs group header.
mlflow/server/js/src/experiment-tracking/components/experiment-page/utils/experimentPage.group-row-utils.ts Changes remaining-runs group display label to "Unassigned".
mlflow/server/js/src/experiment-tracking/components/experiment-page/utils/experimentPage.group-row-utils.test.ts Updates assertions to expect "Unassigned" for remaining-runs group display name.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Documentation preview for a7945ba is available at:

More info
  • Ignore this comment if this PR does not change the documentation.
  • The preview is updated when a new commit is pushed to this PR.
  • This comment was created by this workflow run.
  • The documentation was built by this workflow run.

…re/RunsCompare.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: WeichenXu <weichen.xu@databricks.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
…ns-compare/RunsCompare.tsx"

This reverts commit f406b3e.

Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
@WeichenXu123 WeichenXu123 enabled auto-merge March 4, 2026 03:16
@WeichenXu123 WeichenXu123 added this pull request to the merge queue Mar 4, 2026
Merged via the queue into master with commit 65d962d Mar 4, 2026
17 checks passed
@WeichenXu123 WeichenXu123 deleted the copilot/fix-group-mode-display-issue branch March 4, 2026 03:32
daniellok-db pushed a commit to daniellok-db/mlflow that referenced this pull request Mar 5, 2026
…n charts (mlflow#21155)

Signed-off-by: WeichenXu <weichen.xu@databricks.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: WeichenXu123 <19235986+WeichenXu123@users.noreply.github.com>
Co-authored-by: WeichenXu <weichen.xu@databricks.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
daniellok-db pushed a commit to daniellok-db/mlflow that referenced this pull request Mar 5, 2026
…n charts (mlflow#21155)

Signed-off-by: WeichenXu <weichen.xu@databricks.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: WeichenXu123 <19235986+WeichenXu123@users.noreply.github.com>
Co-authored-by: WeichenXu <weichen.xu@databricks.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
daniellok-db pushed a commit that referenced this pull request Mar 5, 2026
…n charts (#21155)

Signed-off-by: WeichenXu <weichen.xu@databricks.com>
Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: WeichenXu123 <19235986+WeichenXu123@users.noreply.github.com>
Co-authored-by: WeichenXu <weichen.xu@databricks.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server rn/bug-fix Mention under Bug Fixes in Changelogs. size/M v3.10.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Group mode should show additional runs as a group

3 participants