-
Notifications
You must be signed in to change notification settings - Fork 54
FEATURE: validate liquid templates on wizard save #156
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
Conversation
|
@angusmcleod |
|
This pull request introduces 1 alert when merging 12b2935 into c9e243f - view on LGTM.com new alerts:
|
|
@angusmcleod Scenario 1When you call discourse-custom-wizard/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 Line 78 in 1119218
It rejects the promise if the buildJson method returns wizard.error.
and hence we enter the catch block of the calling method discourse-custom-wizard/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 Line 82 in 1119218
without even hitting the server. Scenario 2Let's say the promise didn't get rejected, in that case we enter
Now this condition would never be satisfied because we return the key errors and not error from the server.
The last commit fixes this issue. |
|
This pull request introduces 1 alert when merging 2cfd827 into c9e243f - view on LGTM.com new alerts:
|
|
Note: the issue reported by LGTM.com is fixed in the last commit. |
No description provided.