api#347: сохранить part в именованных наборах и процентных контрактах

This commit is contained in:
Panfilov Konstantin committed 2026-10-28 05:06:11 +03:00
1 parent 1993f7b4b1
commit f7d1792e23
10 files changed
+17 -13

No files matched your search

+3
View File
@@ -29,3 +29,6 @@ foreach([
'{"utm":null}',
] as $i=>$source)migrationReject($source,'unsafe/ambiguous input rejected '.$i);
echo "Raw percent migration complete\n";
$partRaw='{"metadata":"keep","utm":{"part":{"default":"2","weights":{"1":1,"2":3}}}}';
migrationCheck(PercentMigration::patch($partRaw)===str_replace('{"1":1,"2":3}','{"1":25,"2":75}',$partRaw),'part relative weights normalize only explicit numeric spans');