@@ -18,15 +18,15 @@ def verify_metastore_attached(self, ctx: RuntimeContext):
18
18
Account level groups are only available when a metastore is attached to the workspace.
19
19
"""
20
20
if not ctx .config .use_legacy_permission_migration :
21
- logger .info ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
21
+ logger .error ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
22
22
return
23
23
ctx .verify_has_metastore .verify_metastore ()
24
24
25
25
@job_task (depends_on = [Assessment .crawl_groups , verify_metastore_attached ])
26
26
def rename_workspace_local_groups (self , ctx : RuntimeContext ):
27
27
"""Renames workspace local groups by adding `db-temp-` prefix."""
28
28
if not ctx .config .use_legacy_permission_migration :
29
- logger .info ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
29
+ logger .error ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
30
30
return
31
31
ctx .group_manager .rename_groups ()
32
32
@@ -35,7 +35,7 @@ def reflect_account_groups_on_workspace(self, ctx: RuntimeContext):
35
35
"""Adds matching account groups to this workspace. The matching account level group(s) must preexist(s) for this
36
36
step to be successful. This process does not create the account level group(s)."""
37
37
if not ctx .config .use_legacy_permission_migration :
38
- logger .info ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
38
+ logger .error ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
39
39
return
40
40
ctx .group_manager .reflect_account_groups_on_workspace ()
41
41
@@ -56,7 +56,7 @@ def apply_permissions_to_account_groups(self, ctx: RuntimeContext):
56
56
57
57
See [interactive tutorial here](https://app.getreprise.com/launch/myM3VNn/)."""
58
58
if not ctx .config .use_legacy_permission_migration :
59
- logger .info ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
59
+ logger .error ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
60
60
return
61
61
migration_state = ctx .group_manager .get_migration_state ()
62
62
if len (migration_state .groups ) == 0 :
@@ -68,7 +68,7 @@ def apply_permissions_to_account_groups(self, ctx: RuntimeContext):
68
68
def validate_groups_permissions (self , ctx : RuntimeContext ):
69
69
"""Validate that all the crawled permissions are applied correctly to the destination groups."""
70
70
if not ctx .config .use_legacy_permission_migration :
71
- logger .info ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
71
+ logger .error ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
72
72
return
73
73
if not ctx .permission_manager .verify_group_permissions ():
74
74
raise ValueError (
@@ -89,15 +89,15 @@ def verify_metastore_attached(self, ctx: RuntimeContext):
89
89
Account level groups are only available when a metastore is attached to the workspace.
90
90
"""
91
91
if ctx .config .use_legacy_permission_migration :
92
- logger .info ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
92
+ logger .error ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
93
93
return
94
94
ctx .verify_has_metastore .verify_metastore ()
95
95
96
96
@job_task (depends_on = [Assessment .crawl_groups , verify_metastore_attached ])
97
97
def rename_workspace_local_groups (self , ctx : RuntimeContext ):
98
98
"""Renames workspace local groups by adding `db-temp-` prefix."""
99
99
if ctx .config .use_legacy_permission_migration :
100
- logger .info ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
100
+ logger .error ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
101
101
return
102
102
ctx .group_manager .rename_groups ()
103
103
@@ -106,7 +106,7 @@ def reflect_account_groups_on_workspace(self, ctx: RuntimeContext):
106
106
"""Adds matching account groups to this workspace. The matching account level group(s) must preexist(s) for this
107
107
step to be successful. This process does not create the account level group(s)."""
108
108
if ctx .config .use_legacy_permission_migration :
109
- logger .info ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
109
+ logger .error ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
110
110
return
111
111
ctx .group_manager .reflect_account_groups_on_workspace ()
112
112
@@ -130,7 +130,7 @@ def apply_permissions(self, ctx: RuntimeContext):
130
130
131
131
It covers local workspace-local permissions for all entities."""
132
132
if ctx .config .use_legacy_permission_migration :
133
- logger .info ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
133
+ logger .error ("Remove `use_legacy_permission_migration: true` from config.yml to run this workflow." )
134
134
return
135
135
migration_state = ctx .group_manager .get_migration_state ()
136
136
if len (migration_state .groups ) == 0 :
@@ -150,7 +150,7 @@ def __init__(self):
150
150
def validate_groups_permissions (self , ctx : RuntimeContext ):
151
151
"""Validate that all the crawled permissions are applied correctly to the destination groups."""
152
152
if not ctx .config .use_legacy_permission_migration :
153
- logger .info ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
153
+ logger .error ("Use `migrate-groups` job, or set `use_legacy_permission_migration: true` in config.yml." )
154
154
return
155
155
if not ctx .permission_manager .verify_group_permissions ():
156
156
raise ValueError (
0 commit comments