-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for mapping workspace group to account group by prefix/…
…suffix/regex/external id (#650) Closes #83 #144 --------- Co-authored-by: andrascsillag-db <129275651+andrascsillag-db@users.noreply.github.com>
- Loading branch information
1 parent
0a50d63
commit 44fd399
Showing
8 changed files
with
749 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Group Name Conflict Resolution | ||
During the UC upgrade process we migrate all the local workspace group to account level group. | ||
The process is detailed here: [local-group-migration.md](local-group-migration.md) | ||
<br/> | ||
When migrating multiple workspaces we can run into conflicts. | ||
These conflicts occur when groups with the same name in different workspaces have different membership and different use. | ||
|
||
## Suggested Workflow | ||
During the installation process we pose the following question: | ||
<br/> | ||
"Do you need to rename the workspace groups to match the account groups' name?" | ||
|
||
|
||
If the answer is "Yes" a follow up question will be: | ||
<br/> | ||
"Choose How to rename the workspace groups:" | ||
1. Apply a Prefix | ||
2. Apply a Suffix | ||
3. Use Regular Expression Substitution | ||
4. User Regular Expression to extract a value from the account and the workspace | ||
4. Map using External Group ID | ||
|
||
The user then input the Prefix/Suffix/Regular Expression. | ||
The install process will validate the regular expression. | ||
The install process will register the selection as regular expression in the configuration YAML file. | ||
|
||
We introduce 3 more parameters to the configuration yaml and the group manager: | ||
- workspace_group_regex | ||
- workspace_group_replace | ||
- account_group_regex | ||
|
||
When we run the migration process the regular expression substitution will be applied on all groups. | ||
|
||
|
||
Group Translation Scenarios: | ||
|
||
| Scenario | User Input | workspace_group_regex | workspace_group_replace | account_group_regex | Example | | ||
|----------|-----------------------------------------------------------|-----------------------|-------------------------|---------------------|----------------------------------------| | ||
| Prefix | prefix: [Prefix] | ^ | [Prefix] | [EMPTY] | data_engineers --> prod_data_engineers | | ||
| Suffix | suffix: [Prefix] | $ | [Suffix] | [EMPTY] | data_engineers --> data_engineers_prod | | ||
| Substitution | Search Regex: [Regex]<br/>Replace Text:[Replacement_Text] | [WS_Regex] | [ [Replacement_Text] | [Empty] | corp_tech_data_engineers --> prod_data_engineers | | ||
| Partial Lookup | Workspace Regex: [WS_Regex]<br/> Account Regex: [Acct Regex] | [WS_Regex]| [Empty] | [Acct_Regex] | data_engineers(12345) --> data_engs(12345) | |
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
Oops, something went wrong.