Skip to content

Calculate Field preview: show when the layer's checks would refuse the edit #2837

Backlog

Description

@jgregoriorincon

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions