Skip to content

[BUG]: Handle empty string in Group Migration Regex subsitution #1922

@anjalijain-db

Description

@anjalijain-db

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

For group migration choosing a strategy "Regex substitution". All the ws group names have suffix "_old". Need to remove it to map to account name

ws group name : AZ-BackOfficeTech-QA_old
Acc group Name : AZ-BackOfficeTech-QA
Enter a regular expression for substitution: '_old'
Enter the substitution value: ''
I am trying to remove/subsitute _old with blank

image
image
I think in code if replace_regex is empty or '' it's not a valid input

Uploading image.png…

Expected Behavior

ws group name : AZ-BackOfficeTech-QA_old
Acc group Name : AZ-BackOfficeTech-QA
Using above ws_group_name AZ-BackOfficeTech-QA_old should map to acc group name AZ-BackOfficeTech-QA

Steps To Reproduce

No response

Cloud

Azure

Operating System

macOS

Version

latest via Databricks CLI

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions