@@ -1008,9 +1008,9 @@ def bulk_update_targets(validated_payload):
10081008 "location" : [],
10091009 "custom_fields" : [],
10101010 }
1011-
10121011 for column in column_config :
1013- if column .bulk_editable :
1012+ # Skip target_id column as it shouldn't be bulk editable
1013+ if column .column_name != "target_id" :
10141014 bulk_editable_fields [column .column_type ].append (column .column_name )
10151015
10161016 for key in payload .keys ():
@@ -1174,16 +1174,6 @@ def update_target_column_config(validated_payload):
11741174 db .session .flush ()
11751175
11761176 for column in payload ["column_config" ]:
1177- if not isinstance (column ["bulk_editable" ], bool ):
1178- return (
1179- jsonify (
1180- {
1181- "success" : False ,
1182- "errors" : f"Field 'bulk_editable' must be a boolean" ,
1183- }
1184- ),
1185- 422 ,
1186- )
11871177 if not isinstance (column ["contains_pii" ], bool ):
11881178 return (
11891179 jsonify (
@@ -1200,7 +1190,7 @@ def update_target_column_config(validated_payload):
12001190 form_uid = form_uid ,
12011191 column_name = column ["column_name" ],
12021192 column_type = column ["column_type" ],
1203- bulk_editable = column ["bulk_editable " ],
1193+ allow_null_values = column ["allow_null_values " ],
12041194 contains_pii = column ["contains_pii" ],
12051195 column_source = column ["column_source" ],
12061196 )
@@ -1254,7 +1244,7 @@ def get_target_column_config(validated_query_params):
12541244 {
12551245 "column_name" : column .column_name ,
12561246 "column_type" : column .column_type ,
1257- "bulk_editable " : column .bulk_editable ,
1247+ "allow_null_values " : column .allow_null_values ,
12581248 "contains_pii" : column .contains_pii ,
12591249 "column_source" : column .column_source ,
12601250 }
0 commit comments