feat: Dynamic Placeholders UI (#7034)

This commit is contained in:
Michael Genson
2026-02-10 23:43:17 -06:00
committed by GitHub
parent 9b686ecd2b
commit b64f14aaae
11 changed files with 236 additions and 49 deletions

View File

@@ -60,3 +60,17 @@ def test_query_filter_builder_json():
),
]
)
def test_query_filter_builder_json_uses_raw_value():
qf = "last_made <= $NOW-30d"
builder = QueryFilterBuilder(qf)
assert builder.as_json_model() == QueryFilterJSON(
parts=[
QueryFilterJSONPart(
attribute_name="last_made",
relational_operator=RelationalOperator.LTE,
value="$NOW-30d",
),
]
)