Skip to content

Fix logic actions saving that have a form step reference - #6638

Open
sergei-maertens wants to merge 5 commits into
mainfrom
issue/saving-logic-actions-with-formstep-ref-broken
Open

Fix logic actions saving that have a form step reference#6638
sergei-maertens wants to merge 5 commits into
mainfrom
issue/saving-logic-actions-with-formstep-ref-broken

Conversation

@sergei-maertens

Copy link
Copy Markdown
Member

Was reported in person by Laurens.

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

The v3 serializer expects a slug as reference to the form step
rather than the UUID (which is not yet available for newly
created steps).
It's not really dummy data, but logic actions data that targets steps.
Because we use the form step slug as reference in the v3 endpoint and
frontend code (to account for the missing step UUID for newly created
steps), the logic rule processing code crashed as for the disable next,
mark applicable and mark not applicable actions a step reference is
required, which must be step UUID rather than a slug.

This patch performs the mapping from slug to UUID and updates the
action configuration at save-time (update/create) to make sure the
internal data matches what the runtime logic execution expects.
@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (48e673c) to head (bdb843d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6638   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files         859      859           
  Lines       33312    33316    +4     
  Branches     3004     3004           
=======================================
+ Hits        32400    32404    +4     
  Misses        603      603           
  Partials      309      309           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant