You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calculate Field preview: show when the layer's checks would refuse the edit #2837
The Calculate Field preview (#2817) shows what the expression gives for the first rows as the field holds them, but not whether the layer's checks would accept it. apply_with runs domains, allowed combinations of values and constraint rules after evaluation (crates/engine/src/cmd/design.rs:297-345), and calculation rules may rewrite the field afterwards, so a previewed 3 · 4 · 5 can end in "3 isn't allowed in n (its domain)" with nothing written (calculate_field_bulk_edit_keeps_validation_archive_and_undo, crates/engine/src/tests.rs:50906). The preview could say, for its rows, which check would refuse them. Raised by the review of #2822.
I'll take this one. The preview will run the layer's calculation rules and checks on a one-row copy of each previewed row, through the same functions apply_with uses, so it refuses exactly what Calculate would.
Activity
jgregoriorincon commentedon Nov 24, 2026
I'll take this one. The preview will run the layer's calculation rules and checks on a one-row copy of each previewed row, through the same functions
apply_withuses, so it refuses exactly what Calculate would.docs(expressions): the preview doesn't say an ambiguous-area refusal,…
test(engine): a calculation rule reading @row_number gives the previe…
refactor(ui): name the preview's shown value instead of shadowing it (o…
docs(engine): a previewed refusal is the run's error for the checks t…
fix(ui): a long refusal in the preview is cut in its middle, keeping …
docs(ui): cite the issue, not the pull request, in the refusal-cut co…
feat(ui): Calculate Field's preview says which rows the layer's check…