Closed amontanez24 closed 4 months ago
This PR alters the logic of _reverse_transform so that it can work naturally with the random regex transformer.
_reverse_transform
The previous logic was:
enforce_uniqueness
This doesn't work for the random regex generator for two reasons:
The new logic that should work for both cases is
CU-86b04th7c
Task linked: CU-86b04th7c SDV-Enterprise - In RegexGenerator, provide an option to generate keys in a random manner #529
RegexGenerator
I'm actually going to have to change this because I found another bug in the enterprise version that would require more refactoring here
This PR alters the logic of
_reverse_transform
so that it can work naturally with the random regex transformer.The previous logic was:
enforce_uniqueness
is enabled, then add suffixes to old values to make more.enforce_uniqueness
is disabled, copy previous valuesThis doesn't work for the random regex generator for two reasons:
The new logic that should work for both cases is
enforce_uniqueness
is enabled, then add suffixes to old values to make more.enforce_uniqueness
is disabled, copy previous valuesCU-86b04th7c