Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken objects api variable mappings #5021

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

sergei-maertens
Copy link
Member

(no issue created, was reported by Joeri yesterday)

Changes

  • Fixed being able to configure variable mappings for in-memory added registration backends
  • Fixed a prop type warning

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
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • 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

@sergei-maertens sergei-maertens added the needs-backport Fix must be backported to stable release branch label Jan 17, 2025
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.63%. Comparing base (ffe60f7) to head (0a48c48).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5021   +/-   ##
=======================================
  Coverage   96.63%   96.63%           
=======================================
  Files         761      761           
  Lines       26004    26004           
  Branches     3395     3395           
=======================================
  Hits        25129    25129           
  Misses        610      610           
  Partials      265      265           

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

@sergei-maertens sergei-maertens changed the title Hotfix/broken objects api variable mappings Fix broken objects api variable mappings Jan 17, 2025
Because the `version` configuration option was absent for freshly
added registration backends, you can't immediately configure them in
the variables table unless you save the form first and then edit it.

Another crash has been observed where doing the above resulted in the
variables table not rendering (crashing), but I wasn't able to
reproduce this. I suspect it's because the variablesMapping config
option was undefined or null which may happen because of toggling
between v1/v2.

A fix worth backporting, but no need for urgent hotfix releases since
you can work around it by saving the form after adding the registration
backend, and then finishing the registration configuration in the
variables table.
@sergei-maertens sergei-maertens force-pushed the hotfix/broken-objects-api-variable-mappings branch from 226f1b3 to 0a48c48 Compare January 21, 2025 14:34
@sergei-maertens sergei-maertens merged commit 1717537 into master Jan 21, 2025
32 of 33 checks passed
@sergei-maertens sergei-maertens deleted the hotfix/broken-objects-api-variable-mappings branch January 21, 2025 15:38
sergei-maertens added a commit that referenced this pull request Jan 23, 2025
Because the `version` configuration option was absent for freshly
added registration backends, you can't immediately configure them in
the variables table unless you save the form first and then edit it.

Another crash has been observed where doing the above resulted in the
variables table not rendering (crashing), but I wasn't able to
reproduce this. I suspect it's because the variablesMapping config
option was undefined or null which may happen because of toggling
between v1/v2.

A fix worth backporting, but no need for urgent hotfix releases since
you can work around it by saving the form after adding the registration
backend, and then finishing the registration configuration in the
variables table.

Backport-of: #5021
@sergei-maertens
Copy link
Member Author

Backported to 3.0.x in c7e5d89

@sergei-maertens sergei-maertens linked an issue Jan 23, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport Fix must be backported to stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variables tab crash after setting Objects API registration.
2 participants