File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
src/databricks/labs/ucx/assessment Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 3
3
import heapq
4
4
from collections import defaultdict
5
5
from collections .abc import Iterable
6
- from dataclasses import dataclass
6
+ from dataclasses import dataclass , field
7
7
from typing import TypeVar
8
8
9
9
from databricks .sdk import WorkspaceClient
@@ -31,11 +31,20 @@ class MigrationStep:
31
31
32
32
@dataclass
33
33
class MigrationNode :
34
- node_id : int
34
+ node_id : int = field (compare = False )
35
+ """Globally unique id."""
36
+
35
37
object_type : str
38
+ """Object type. Together with `attr:object_id` a unique identifier."""
39
+
36
40
object_id : str
37
- object_name : str
38
- object_owner : str
41
+ """Object id. Together with `attr:object_id` a unique identifier."""
42
+
43
+ object_name : str = field (compare = False )
44
+ """Object name, more human friendly than `attr:object_id`."""
45
+
46
+ object_owner : str = field (compare = False )
47
+ """Object owner."""
39
48
40
49
@property
41
50
def key (self ) -> MigrationNodeKey :
You can’t perform that action at this time.
0 commit comments