-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This simplifies code and moves modules and classes by their respective domains/components, roughly mapped on folders. This is a change from the previous diamond-shaped cross-module dependency layout, which is harder to evolve. Main tenets be: - any component can depend on `mixins` (staging are for SDK) and `framework` (common modules). - tight coupling is allowed within a single component. An example is local group migration, which exposes a single high-level migration toolkit (`from databricks.labs.ucx.workspace_access import GroupMigrationToolkit`) and leaves implementation details private. Another example is a toolkit to migrate from HMS to UC DDL. - all execution is either triggered from `install` (which also handles update) or `runtime` (as the entrypoint for jobs). Multiple toolkits may be combined into a single Databricks Workflows (aka Jobs) - e.g. pulling permissions and tables inventory is necessary for the assessment step, but later the Workflows may branch out. - if two classes are used together in 90% of cases, they have to be defined in the single file (aka Python Module). We don't define `types` and `managers` modules/packages, as this is an example of a diamond-shaped dependencies, which are more difficult to evolve over time. - methods and fields have to be private by default. make them public only by necessity. - classes must have the following order - __init__, overridden methods, public methods, other methods. the most important logic has to be first.
- Loading branch information
1 parent
5fb624d
commit b66ce3e
Showing
82 changed files
with
1,114 additions
and
1,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from databricks.labs.ucx.logger import _install | ||
from databricks.labs.ucx.framework.logger import _install | ||
|
||
_install() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from databricks.labs.ucx.hive_metastore.table_acls import TaclToolkit | ||
|
||
__all__ = ["TaclToolkit"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/databricks/labs/ucx/inventory/permissions_inventory.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.