Skip to content

Add partial evaluation of variable action value#6103

Merged
sergei-maertens merged 2 commits intomainfrom
chore/6083-add-partial-evaluation-of-variable-action-value
Mar 23, 2026
Merged

Add partial evaluation of variable action value#6103
sergei-maertens merged 2 commits intomainfrom
chore/6083-add-partial-evaluation-of-variable-action-value

Conversation

@viktorvanwijk
Copy link
Copy Markdown
Contributor

@viktorvanwijk viktorvanwijk commented Mar 20, 2026

Closes #6083

Depends on #6096

[skip: e2e]

Changes

See title

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Checked new model fields are usable in the admin
    • Problem detection in the admin email digest is handled
  • Dockerfile/scripts

    • Updated the Dockerfile with the necessary scripts from the ./bin folder
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how
  • Documentation

    • Added documentation which describes the changes

…SON logic expression

It is possible to use a JSON logic expression as the value of a variable action. This means we also have to add data-type
information and partially evaluate it before serializing it.

Instead of adding another serializer method field, I combined them into the `to_representation` method, which allows
sharing the `data`. It also means we can use the `DjangoJSONEnoder` on the JSON fields, and remove the custom `to_json`
helper, which cleans up a bit.
@viktorvanwijk viktorvanwijk changed the title Chore/6083 add partial evaluation of variable action value Add partial evaluation of variable action value Mar 20, 2026
Base automatically changed from feature/5962-send-rules-to-frontend to main March 20, 2026 16:30
@viktorvanwijk viktorvanwijk marked this pull request as ready for review March 20, 2026 16:31
@sergei-maertens sergei-maertens merged commit 101ffb2 into main Mar 23, 2026
63 of 69 checks passed
@sergei-maertens sergei-maertens deleted the chore/6083-add-partial-evaluation-of-variable-action-value branch March 23, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partially evaluate value of variable action

2 participants