-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot Fix for Dashboard Names #1476
base: main
Are you sure you want to change the base?
Conversation
✅ 13/13 passed, 1 skipped, 15s total Running from acceptance #341 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR delivers a hot fix for Dashboard names and refines installation logic for the transpiler. Key changes include:
- Updating dashboard name formatting from bracketed names to underscore‐separated names.
- Revising test functions for installation and dashboard deployment, including new patch decorators.
- Adjusting dependency version constraints and restructuring installation method calls.
Reviewed Changes
File | Description |
---|---|
tests/unit/test_install.py | Added a new test function for installation override with patch decorators for install_rct and install_morpheus. |
src/databricks/labs/remorph/deployment/job.py | Changed dashboard name formatting to use underscore-separated names. |
pyproject.toml | Updated dependency versions, notably for databricks-sdk and databricks-labs-lsql. |
src/databricks/labs/remorph/deployment/dashboard.py | Updated dashboard name formatting similarly to job.py for consistency. |
tests/unit/deployment/test_dashboard.py | Modified dashboard query extraction and test signature to match new dashboard data structure. |
src/databricks/labs/remorph/install.py | Reorganized calls to install_rct and install_morpheus, moving them into the “transpile” configuration path. |
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (4)
src/databricks/labs/remorph/deployment/job.py:147
- [nitpick] The new dashboard name formatting uses an inline replace to convert spaces to underscores. Consider extracting a dedicated sanitization function to improve code clarity and consistency across the codebase.
return f"{prefix.upper()}_{name}".replace(" ", "_")
src/databricks/labs/remorph/deployment/dashboard.py:120
- [nitpick] The updated dashboard name formatting mirrors changes in job.py. A refactored helper function for name sanitization might reduce repetition and improve maintainability.
return f"{prefix.upper()}_{name}".replace(" ", "_")
tests/unit/deployment/test_dashboard.py:17
- The function assumes that dashboard is not None. Consider adding an explicit check for a None value before accessing its 'serialized_dashboard' attribute.
def _get_dashboard_query(dashboard: Dashboard | None):
src/databricks/labs/remorph/install.py:283
- The removal of install_rct and install_morpheus calls from the run method and their addition into the 'transpile' configuration case changes the installation order. Ensure that this restructuring does not cause duplicate installations or affect modules other than 'transpile'.
self.install_rct() and self.install_morpheus()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This fixes the Installation issue for Dashboard Deployment
and also #1474