-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Ask with format=template breaks HTML output #1255
Comments
In general I think that for such things a configuration parameter is the better choice. However I see that it would make sense to have control of this on a query level instead of the wiki level. @JeroenDeDauw What's your opinion on this? |
#1257 makes it an query specific behaviour instead of a format specific one. [0] https://semantic-mediawiki.org/wiki/Examples/Parser/Ask_with_template_to_annotate_invert_property (need to be changed to add the parameter) |
@mwjames I had a go at coming up with an example that does not need SF or any other extension that generates this problem, which has the same result but with no luck. It is not possible to insert any html on a wiki page that is not allowed [0], you "need" extensions for that. If I understand this correctly then a wikipage does not get parsed completely, so all extensions can do there trick, when For this test to work you need a test that runs against MW + SMW, no other extensions enabled? |
OK, I used recur-anno and the fix works fine. I noticed that the default value for I am all for control on query level here but I am having a hard time even understanding what |
Thanks for trying.
When you have templates to create invert annotation or you want to import annotations depending on the #ask outcome (== variable with the query).. Mainly for annotations to be conditional when #ask queries are involved.
I'm wondering whether I should change the name to |
|
Thanks @mwjames. 👍 To be clear on the test, if we would be able to generate a test for this, would it run against MW + SMW only? No other extensions can be used? |
The simple answer is yes because In general, tests should be agnostic (== depend on as less as possible) to govern its execution in a wide range of environments without making it depend on extensions that would require interdependency monitoring. What if you require an additional extension for those tests? You would have to track possible changes that can influence a test result. #1208 (comment) is a prime example where changes in MW (as we depend on it) causes effort (research the issue, fixing it, testing it === time that could be spent differently) to make the existing test outcome stable again to what it was designed before the changes appeared. Simplify a test environment by trying to exercise the ceteris paribus clause where possible. |
@jongfeli The example somehow looks broken. Could you have a look ...? |
The move from SMW 2.2.3 to SMW 2.3 seems to break HTML in a
{{#ask:...
query withformat=template
. We have some buttons on which users can press which automatically update properties or values on a page but they are not working anymore. Example of the issue on:http://sandbox.semantic-mediawiki.org/wiki/User:Jongfelihttp://sandbox.semantic-mediawiki.org/wiki/Issue/1255
I tested this on MW 1.24.1 and SMW 2.1, 2.2, 2.2.3 & 2.3.0 but it is only happening in SMW 2.3.0
Below how it looks in SMW 2.2.3 (I noticed it shows 2.2.2 (D540302) on the MW version page).
The text was updated successfully, but these errors were encountered: