From 270c7a9fdaa5bf8a2f567bee34b29ef29f170e0a Mon Sep 17 00:00:00 2001 From: "Leslie H." Date: Fri, 14 Jun 2024 18:06:57 -0500 Subject: [PATCH] Use ModifyColumn instead of UpdateRecord --- sandbox/grist/test_dropdown_condition_renames.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sandbox/grist/test_dropdown_condition_renames.py b/sandbox/grist/test_dropdown_condition_renames.py index 3581b57fa6..34d5f02e69 100644 --- a/sandbox/grist/test_dropdown_condition_renames.py +++ b/sandbox/grist/test_dropdown_condition_renames.py @@ -14,8 +14,8 @@ def setUp(self): self.load_sample(testsamples.sample_students) self.engine.apply_user_actions([useractions.from_repr(ua) for ua in ( - # Column #12 is "address" in table "Schools". We add a dropdown condition formula to it. - ["UpdateRecord", "_grist_Tables_column", 12, { + # Add a dropdown condition formula to Schools.address (column #12). + ["ModifyColumn", "Schools", "address", { "widgetOptions": json.dumps({ "dropdownCondition": { "text": "'New' in choice.city and $name == rec.name", @@ -30,7 +30,7 @@ def setUp(self): [12, "Ref:Address", json.dumps({ "dropdownCondition": { "text": "'New' in choice.city and $name == rec.name", - # The UpdateRecord user action should trigger an auto parse. + # The ModifyColumn user action should trigger an auto parse. # "parsed" is stored as dumped JSON, so we need to explicitly dump it here as well. "parsed": json.dumps(["And", ["In", ["Const", "New"], ["Attr", ["Name", "choice"], "city"]], ["Eq", ["Attr", ["Name", "rec"], "name"], ["Attr", ["Name", "rec"], "name"]]])