Template listeners targeting shared templates are semi broken
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
Read the issue’s description of template listeners, shared templates, and runtime embedding to understand the inconsistent behavior. The issue gives no files or tests to start from, so first locate the listener and template compilation entry points. Done would mean shared templates behave consistently across frontend and backend; the issue leaves the solution unresolved and suggests stricter rules in v7.
Written by the indexing model from the issue text.
Description
Template listeners come with a fixed environment to target either the frontend or backend. This is a necessary step to address templates that may exist in both environments under the same name but must be targeted individually.
The problem are shared templates that exist in both environments simultaneously. As soon as these templates are embedded on runtime instead of being a static include, things start to break apart. Depending on the environment that triggered the template compilation different template listeners are being run, yielding inconsistent results.
A possible solution is the introduction of a third type of environment shared that is only valid for shared templates and at the same time is the only valid type for these kind of templates. However, this is kind of obscure and cannot be enforced in a backwards compatible fashion, making this complicated to fix. Implicitly applying template listeners on shared templates to both environments has surprising effects too.
The most likely solution is to address this in v7 by enforcing stricter rules on shared templates and for the time being accept that this is subtly broken.
- Dominant language
- PHP
- Stars
- 248
- Forks
- 147
- Avg merge
- 17m
- Merged PRs (30d)
- 21
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from WoltLab/WCF
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
WoltLab/WCF#6771 · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HE-Arc/le-panier-du-coin#49 ·
Maintainers usually reply within 1 day
-
15.0
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug: juros do parcelamento travados em 1x no gateway Rede Débito e Crédito 3DS (woo-rede 5.6.0)Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
LinkNacional/woo-rede#367 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Lazyload SVG placeholder runs uncached attachment lookups with JSON-escaped URLs on REST responsesOpencustomer report
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Codeinwp/optimole-wp#1253 ·
Maintainers usually reply within 1 day