-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Dev UI: Add strictRendering=false to Qute engine #18416
Conversation
Signed-off-by:Phillip Kruger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phillip-kruger Thanks for a quick fix :-), LGTM, though indeed lets wait for more approvals before merging
I think that's okay for the DevConsole, but I'll let @mkouba have the final say here 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's the right fix. Why is the property not defined? I would rather fix the issue with this property rather than changing this globally (and thus miss potential errors).
The default has changed (see #18227) but I can investigate some more. |
@gsmet This fix only affects the dev console templates, it is not doing it globally - the user templates are not affected |
@mkouba was the intention of this to completely ban null values? We do:
where extName may be null, but there is now no way to check for a null value in the template. |
Some more info: I am not sure if what case that var is null. In my basic tests there is always a value.
So if it would be null, the title will be a default value. |
If |
I think we should merge this for now, as it is better than the current state of affairs, however I do have reservations about making strict rendering the default, as it makes working with null values almost impossible. I have pushed a smoke test to this PR so we don't accidentally break the main page again, when it passes we should merge it. |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 7376972
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 extensions/vertx-http/deployment✖ ⚙️ JVM Tests - JDK 11 Windows #📦 extensions/vertx-http/deployment✖ ⚙️ JVM Tests - JDK 16 #📦 extensions/vertx-http/deployment✖ |
@stuartwdouglas Not at all. I need to check the original error though. It might be that we have some bug in there. In general, if a map has a |
@gsmet I'm going to create a separate issue to verify all DEV UI templates and switch to strict rendering eventually. For now it's probably safer to disable it globally. |
OK yeah, let's fix the issues first and reconsider later. But what I would like is to enable it at some point and ALSO to have simple tests for Dev UI just checking that the pages of every extension don't return a 500. That should be relatively easy and allow to catch at least some errors with a small investment. |
@gsmet, So can your change request be dismissed at this stage ? |
Fix #18413
Signed-off-by:Phillip Kruger [email protected]