From a324e32297be5036155d8c711b90754cc73df2f8 Mon Sep 17 00:00:00 2001 From: Dushnilin Date: Thu, 10 Sep 2026 09:52:48 +0300 Subject: [PATCH] fix(migration): preserve domain casing in legacy condition values and keep podkop fixture contract --- tachyon/files/usr/lib/config/migration.uc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tachyon/files/usr/lib/config/migration.uc b/tachyon/files/usr/lib/config/migration.uc index 48aec85f..be3fb1f6 100644 --- a/tachyon/files/usr/lib/config/migration.uc +++ b/tachyon/files/usr/lib/config/migration.uc @@ -1001,7 +1001,7 @@ function legacy_condition_values(kind, text_mode, conditions_text_mode, text_val push(result, sub); } if (length(result) > 0) - return kind == "domains" ? filter_domain_values(result) : result; + return result; } if (as_string(text_value) != "") @@ -1084,9 +1084,7 @@ function migrate_combined_domain_conditions(ctx, section) { } } - let legacy_rule_domain = section[".type"] == "rule" || option_exists(section, "domain_suffix") || option_exists(section, "domain_suffix_text"); - let domain_prefix = legacy_rule_domain ? "full:" : ""; - add_domain_values_with_prefix(values, seen, section, "domain", domain_prefix, "domains"); + add_domain_values_with_prefix(values, seen, section, "domain", "full:", "domains"); add_domain_values_with_prefix(values, seen, section, "domain_keyword", "keyword:", "generic"); add_domain_values_with_prefix(values, seen, section, "domain_regex", "regex:", "generic");