-
Notifications
You must be signed in to change notification settings - Fork 6
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
KB - Adds a check which makes sure that the template is rendering before... #1891
Conversation
...processing it further to prevent an exception Fixes: OX-10557
Fixes: OX-10557
template.render(context); | ||
|
||
if (!tryRender(template, context)) { | ||
return; |
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.
Sollte man das net irgendwie loggen/sich merken?
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.
ne, nur abbrechen wenn es false zurück gibt und dementsprechend nicht gerendert werden kann
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.
Ich sehe, dass der Code das macht. 😇 Ich möchte wissen, ob das reicht. Bekommen wir ein fehlerhaftes Template anderweitig mit? Haben wir eine Chance, das zu entdecken? Oder sind wir darauf angewiesen, dass irgendwer irgendwann merkt, dass ein Artikel fehlt?
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.
Guter Punkt finde ich. Vielleicht sollten wir KBA Komponenten doch in n anderes Verzeichnis legen oder anderweitig markieren, statt den Mechanismus zu verbiegen
We decided that the approach might swallow kb articles which have a problem. Therefore we are going to introduce a new "rule". In the future we are going to ignore templates inside the "kb" directory if the templates parent-folder name is "part". |
...processing it further to prevent an exception
Additional Notes
Checklist