Undo change to autoscoping. (#9881)

Can't use auto-scoping for filter yet.
This commit is contained in:
James Dunkerley 2024-05-08 08:52:12 +01:00 committed by GitHub
parent f77cb0c3ba
commit 4e758e5c9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,28 +121,29 @@ make_filter_condition_selector table display=Display.Always =
with_text = make_column_ref_by_name_selector table add_text=True
builder = Vector.new_builder
builder.append (Option "Equals" "..Equal" [["to", with_all_types]])
builder.append (Option "Not Equals" "..Not_Equal" [["to", with_all_types]])
builder.append (Option "Less Than" "..Less" [["than", with_number_text]])
builder.append (Option "Less Than Or Equal" "..Equal_Or_Less" [["than", with_number_text]])
builder.append (Option "Greater Than" "..Greater" [["than", with_number_text]])
builder.append (Option "Greater Than Or Equal" "..Equal_Or_Greater" [["than", with_number_text]])
builder.append (Option "Between" "..Between" [["lower", with_number_text], ["upper", with_number_text]])
builder.append (Option "Equals Ignore Case" "..Equal_Ignore_Case" [["to", with_text]])
builder.append (Option "Starts With" "..Starts_With" [["prefix", with_text]])
builder.append (Option "Ends With" "..Ends_With" [["suffix", with_text]])
builder.append (Option "Contains" "..Contains" [["substring", with_text]])
builder.append (Option "Is Nothing" "..Is_Nothing")
builder.append (Option "Is Not Nothing" "..Not_Nothing")
builder.append (Option "Is Finite" "..Is_Finite")
builder.append (Option "Is Infinite" "..Is_Infinite")
builder.append (Option "Is NaN" "..Is_Nan")
builder.append (Option "Is True" "..Is_True")
builder.append (Option "Is False" "..Is_False")
builder.append (Option "Is Empty" "..Is_Empty")
builder.append (Option "Is Not Empty" "..Not_Empty")
builder.append (Option "Like" "..Like" [["pattern", with_text]])
builder.append (Option "Is In" "..Is_In")
fqn = Meta.get_qualified_type_name Filter_Condition
builder.append (Option "Equals" fqn+".Equal" [["to", with_all_types]])
builder.append (Option "Not Equals" fqn+".Not_Equal" [["to", with_all_types]])
builder.append (Option "Less Than" fqn+".Less" [["than", with_number_text]])
builder.append (Option "Less Than Or Equal" fqn+".Equal_Or_Less" [["than", with_number_text]])
builder.append (Option "Greater Than" fqn+".Greater" [["than", with_number_text]])
builder.append (Option "Greater Than Or Equal" fqn+".Equal_Or_Greater" [["than", with_number_text]])
builder.append (Option "Between" fqn+".Between" [["lower", with_number_text], ["upper", with_number_text]])
builder.append (Option "Equals Ignore Case" fqn+".Equal_Ignore_Case" [["to", with_text]])
builder.append (Option "Starts With" fqn+".Starts_With" [["prefix", with_text]])
builder.append (Option "Ends With" fqn+".Ends_With" [["suffix", with_text]])
builder.append (Option "Contains" fqn+".Contains" [["substring", with_text]])
builder.append (Option "Is Nothing" fqn+".Is_Nothing")
builder.append (Option "Is Not Nothing" fqn+".Not_Nothing")
builder.append (Option "Is Finite" fqn+".Is_Finite")
builder.append (Option "Is Infinite" fqn+".Is_Infinite")
builder.append (Option "Is NaN" fqn+".Is_Nan")
builder.append (Option "Is True" fqn+".Is_True")
builder.append (Option "Is False" fqn+".Is_False")
builder.append (Option "Is Empty" fqn+".Is_Empty")
builder.append (Option "Is Not Empty" fqn+".Not_Empty")
builder.append (Option "Like" fqn+".Like" [["pattern", with_text]])
builder.append (Option "Is In" fqn+".Is_In")
Single_Choice builder.to_vector display=display
## PRIVATE