Skip to content

Refactor session/goal/persona column auto-selection #21033

Merged
smoorjani merged 1 commit intomlflow:masterfrom
smoorjani:session-level-default-columns
Feb 26, 2026
Merged

Refactor session/goal/persona column auto-selection #21033
smoorjani merged 1 commit intomlflow:masterfrom
smoorjani:session-level-default-columns

Conversation

@smoorjani
Copy link
Collaborator

@smoorjani smoorjani commented Feb 20, 2026

Related Issues/PRs

#xxx

What changes are proposed in this pull request?

Refactor session/goal/persona column auto-selection to use defaultSelectedColumns

Replace useEffect-based column auto-selection with defaultSelectedColumns callback, which derives column visibility from trace data without side effects. This avoids flashes of unintended states and simplifies the logic.

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests
tmp-session-columns.mp4

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?

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

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

Should this PR be included in the next patch release?

Yes should be selected for bug fixes, documentation updates, and other small changes. No should be selected for new features and larger changes. If you're unsure about the release classification of this PR, leave this unchecked to let the maintainers decide.

What is a minor/patch release?
  • Minor release: a release that increments the second part of the version number (e.g., 1.2.0 -> 1.3.0).
    Bug fixes, doc updates and new features usually go into minor releases.
  • Patch release: a release that increments the third part of the version number (e.g., 1.2.0 -> 1.2.1).
    Bug fixes and doc updates usually go into patch releases.
  • Yes (this PR will be cherry-picked and included in the next patch release)

@github-actions github-actions bot added size/M area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server rn/none List under Small Changes in Changelogs. labels Feb 20, 2026
@github-actions
Copy link
Contributor

🛠 DevTools 🛠

Install mlflow from this PR

# mlflow
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/21033/merge
# mlflow-skinny
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/21033/merge#subdirectory=libs/skinny

For Databricks, use the following command:

%sh curl -LsSf https://raw.githubusercontent.com/mlflow/mlflow/HEAD/dev/install-skinny.sh | sh -s pull/21033/merge

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

Documentation preview for d462e74 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.

@smoorjani smoorjani force-pushed the session-level-default-columns branch from 438ee61 to 7d1eab4 Compare February 24, 2026 20:51
Copy link
Collaborator

@daniellok-db daniellok-db left a comment

Choose a reason for hiding this comment

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

awesome, looks much cleaner! thanks for the fix

…ectedColumns

Replace useEffect-based column auto-selection with defaultSelectedColumns
callback, which derives column visibility from trace data without side effects.
This avoids flashes of unintended states and simplifies the logic.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com>
@smoorjani smoorjani force-pushed the session-level-default-columns branch from 7d1eab4 to d462e74 Compare February 26, 2026 19:07
@smoorjani smoorjani enabled auto-merge February 26, 2026 19:18
@smoorjani smoorjani added this pull request to the merge queue Feb 26, 2026
Merged via the queue into mlflow:master with commit ef2d4e1 Feb 26, 2026
17 checks passed
@smoorjani smoorjani deleted the session-level-default-columns branch February 26, 2026 19:24
daniellok-db pushed a commit to daniellok-db/mlflow that referenced this pull request Mar 5, 2026
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com>
Co-authored-by: Claude <noreply@anthropic.com>
daniellok-db pushed a commit to daniellok-db/mlflow that referenced this pull request Mar 5, 2026
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com>
Co-authored-by: Claude <noreply@anthropic.com>
daniellok-db pushed a commit that referenced this pull request Mar 5, 2026
Signed-off-by: Samraj Moorjani <samraj.moorjani@databricks.com>
Co-authored-by: Claude <noreply@anthropic.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/none List under Small Changes in Changelogs. size/M v3.10.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants