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] Allow updating templates with invalid configurations #948

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

pandafy
Copy link
Member

@pandafy pandafy commented Dec 2, 2024

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • N/A I have updated the documentation.

Description of Changes

A new regression prevented fixing an invalid template configuration via the UI: the cache invalidation mechanism triggered the evaluation of the configuration which can fail if the configuration is invalid (eg: due to schema updates), hence there was an uncaught ValidationError bubbling up and preventing updates.

This patch fixes this issue.

Previously, fixing an invalid template configuration via the UI was
blocked due to the cache invalidation mechanism. This mechanism
attempted to evaluate the existing configuration, triggering a
ValidationError and preventing updates.
@nemesifier nemesifier merged commit 4551444 into master Dec 3, 2024
15 checks passed
@nemesifier nemesifier deleted the allow-fixing-faulty-config branch December 3, 2024 21:24
pandafy pushed a commit that referenced this pull request Dec 4, 2024
Related to #948

(cherry picked from commit 4551444)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants