Skip to content

refactor: remove Unity Catalog conditionals — UC is the only model registry#221

Open
veenaramesh wants to merge 5 commits into
databricks:testfrom
veenaramesh:refactor/remove-uc-conditionals
Open

refactor: remove Unity Catalog conditionals — UC is the only model registry#221
veenaramesh wants to merge 5 commits into
databricks:testfrom
veenaramesh:refactor/remove-uc-conditionals

Conversation

@veenaramesh

Copy link
Copy Markdown
Collaborator

Summary

  • Remove input_include_models_in_unity_catalog parameter from schema, tests, and configs
  • Remove all workspace vs UC conditional branches — Unity Catalog is now the only path
  • Delete utils.py (workspace model stage helper, no longer needed)
  • Simplify all notebook and resource templates

Depends on #219 (simplify-project-structure).

Test plan

  • databricks bundle init no longer prompts for Unity Catalog model registry choice
  • Generated project uses UC-only patterns (three-level model names, aliases instead of stages)
  • All test combinations pass

Move all Databricks notebooks out of nested notebooks/ subdirectories
to sit alongside their sibling helper modules. This eliminates the
%cd .. hacks that were needed to import from parent directories and
simplifies the project layout for a data science workflow.

Moves:
- training/notebooks/*.py → training/*.py
- validation/notebooks/ModelValidation.py → validation/ModelValidation.py
- deployment/*/notebooks/*.py → deployment/*/*.py
- feature_engineering/notebooks/*.py → feature_engineering/*.py
- monitoring/notebooks/*.py → monitoring/*.py

Updates all resource YAMLs, update_layout.tmpl, and README references.

Co-authored-by: Isaac
Databricks bundle deployments set the notebook CWD correctly, so
the notebook_path/%cd $notebook_path pattern is unnecessary. Sibling
imports work naturally after the flatten-notebooks change.

Also inlines the trivial get_deployed_model_stage_for_env helper
(a dict lookup) to eliminate cross-directory sys.path.append in
deploy.py and BatchInference.py.

Co-authored-by: Isaac
No longer needed with databricks bundle init.

Co-authored-by: Isaac
Unity Catalog is now the only supported model registry. This removes all
conditional branching on input_include_models_in_unity_catalog, hardcoding
the UC=yes path throughout:

- Force UC=yes in databricks_template_schema.json and skip the prompt
- Simplify skip_prompt_if for catalog/schema/user group fields
- Remove workspace model registry code paths from all notebooks
- Remove get_deployed_model_stage_for_env from utils.py
- Always include catalog_name variable in databricks.yml targets
- Use registered_models (not models) in ml-artifacts-resource.yml
- Use UC table names in all workflow resource configs
- Remove non-UC deploy path (stage transitions) from deploy.py
- Remove workspace registry links/references from docs
- Always skip utils.py in update_layout.tmpl

Co-authored-by: Isaac
The mlflow.recipes module no longer exists in MLflow 3.x, causing
test collection to fail with ModuleNotFoundError.

Co-authored-by: Isaac
@veenaramesh veenaramesh force-pushed the refactor/remove-uc-conditionals branch from 1f2fbdb to 5eede46 Compare June 12, 2026 17:08
@veenaramesh veenaramesh requested a review from mingyu89 June 15, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant