Skip to content

Merge workspace feature branch into master#20657

Merged
B-Step62 merged 26 commits intomasterfrom
orgnization-support
Feb 10, 2026
Merged

Merge workspace feature branch into master#20657
B-Step62 merged 26 commits intomasterfrom
orgnization-support

Conversation

@B-Step62
Copy link
Collaborator

@B-Step62 B-Step62 commented Feb 9, 2026

Related Issues/PRs

TL;DR

Adds Workspaces — a way to isolate resources (experiments, models, traces, etc.) on a single self-hosted MLflow server. Think of it like "folders" or "projects" that keep teams' data separate.

How It Works

┌─────────────────────────────────────────────────────┐
│                   MLflow Server                     │
│                                                     │
│  ┌──────────────┐  ┌──────────────┐  ┌────────────┐ │
│  │ Workspace A  │  │ Workspace B  │  │Workspace C │ │
│  │              │  │              │  │            │ │
│  │ Experiments  │  │ Experiments  │  │ Experiments│ │
│  │ Models       │  │ Models       │  │ Models     │ │
│  │ Traces       │  │ Traces       │  │ Traces     │ │
│  │ Endpoints    │  │ Endpoints    │  │ Endpoints  │ │
│  └──────────────┘  └──────────────┘  └────────────┘ │
│                                                     │
│  Shared: Auth, DB, Artifact Storage                 │
└─────────────────────────────────────────────────────┘

What's Included

Area Changes
New Entity Workspace with full CRUD (create/get/list/update/delete)
DB Schema Migration adds workspace_id FK to all major tables
Client APIs mlflow.set_workspace(), mlflow.get_workspace(), MlflowClient workspace methods
Auth Workspace-scoped permissions (who can access what workspace)
REST API New endpoints + workspace context passed via HTTP headers
Server/CLI mlflow server gains workspace options + migration utility
Docs New section under self-hosting/workspaces/
Tests 1,200+ lines of migration tests, updated schema fixtures

Request Flow

mlflow.set_workspace("team-a")
        │
        ▼
  Client adds workspace header
        │
        ▼
  Server extracts workspace context
        │
        ▼
  Store filters all queries by workspace_id
        │
        ▼
  DB returns only Workspace A's data

Key Env Vars

  • MLFLOW_DEFAULT_WORKSPACE — set the default workspace name
  • MLFLOW_WORKSPACE_ID — set workspace by ID

How is this PR tested?

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

Does this PR require documentation update?

  • No. You can skip the rest of this section.
  • Yes. I've updated:
    • Examples
    • API references
    • Instructions

Does this PR require updating the MLflow Skills repository?

  • No. You can skip the rest of this section.
  • Yes. Please link the corresponding PR or explain how you plan to update it.

We should update it to be workspace aware, will follow-up.

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

Adding Workspace concept so that teams can organizing their experiments, models, prompts, within a shared tracking server. (@mprahl, @Gkrumbach07)

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

Components

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/prompts: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages

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 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)
  • No (this PR will be included in the next minor release)

mprahl and others added 19 commits February 3, 2026 15:59
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com>
Co-authored-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
…es (#19319)

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
)

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
This adds support to the SqlAlchemy workspace store to resolve artifact
roots that are workspace specific. This also adds this as an option for
the workspace CRUD endpoints.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
… workspace (#20477)

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
…aces (#20544)

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

🛠 DevTools 🛠

Install mlflow from this PR

# mlflow
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/20657/merge
# mlflow-skinny
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/20657/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/20657/merge

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

@B-Step62 Thank you for the contribution! Could you fix the following issue(s)?

⚠ DCO check

The DCO check failed. Please sign off your commit(s) by following the instructions here. See https://github.com/mlflow/mlflow/blob/master/CONTRIBUTING.md#sign-your-work for more details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

Documentation preview for 18cfd75 is available at:

Changed Pages (8)
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.

@B-Step62 B-Step62 added the team-review Trigger a team review request label Feb 9, 2026
@github-actions github-actions bot added area/tracking Tracking service, tracking client APIs, autologging rn/feature Mention under Features in Changelogs. labels Feb 9, 2026
@B-Step62 B-Step62 requested a review from serena-ruan February 9, 2026 04:57
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
@B-Step62 B-Step62 requested a review from harupy February 9, 2026 13:28
@B-Step62 B-Step62 changed the title [DON'T MERGE YET] Merge workspace feature branch into master Merge workspace feature branch into master Feb 10, 2026
@B-Step62
Copy link
Collaborator Author

@harupy Can you take another look at this PR?

Copy link
Member

@harupy harupy left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
@B-Step62 B-Step62 added this pull request to the merge queue Feb 10, 2026
Merged via the queue into master with commit 2e0adcf Feb 10, 2026
63 of 66 checks passed
@B-Step62 B-Step62 deleted the orgnization-support branch February 10, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tracking Tracking service, tracking client APIs, autologging rn/feature Mention under Features in Changelogs. team-review Trigger a team review request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants