-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
DataTables format: Image links a being replaced in the wrong column #188
Comments
Thanks for reporting! That indeed does not appear to be an expected behaviour. |
Reported again as #372 Still present with:
Example at |
It is still present in SRF 3.0 MediaWiki | 1.31.1 (141cb48)22:39, 5 December 2018 Semantic MediaWiki | 3.0.0 (abdec88) 22:29, 11 October 2018 |
@krabina Are you sure? The example page you provided only shows one row of images which would mean that this issue is fixed starting with 3.0.0 |
If you switch the has caption printout with the next one, still the picture is shown in the second row, overlapping whatever printout there should be. So it has nothing to do with the "has caption" property. |
Ok, we have tracked it down. On Linux which I am using Fx is ok and Ch still shows the erroneous behaviour. However in both cases I see the update button on the top right as you can see in the screenshot. This is a second issue obviously only for Windows users. |
any updates on this? |
No. PS: I don't want to sound like a broken record but as long as people don't make a contribution to an issue it is fairly unlikely a core member will come to its rescue. Open source means open to those willing to participate, add new feature, or fix bugs. Open doesn't mean only open to core members! Core members will help and support participants to maintain and retain a quality standard so that the software endures a maintainable state. |
I don't mean this as a jab, but this is a bug reported in 2016 and 5 years later it's not fixed. That seems to scream that nobody on the core team (or elsewhere) cares enough to do maintenance work and keep the code quality up? We can argue that there's 2 or 3 other output formats that might work well enough instead. (That's my work-around). But the take away for many is that this doesn't have the critical mass or support value to be relied upon. Unless you have the resources/expertise to fix it yourself. So maybe Cargo, WikiDB, Confluence (ick) or some other solution is more reliable? |
Well I don't think the conclusion that Crago & Co. is more reliable is a correct one. As this is not a critical bug (workarounds exist) members of the core team will use ressources for more critical work. So in my opinion it is fully understandable that this hasn't seen any momentum in the last few years, although I fully agree with you that a fix for this would be more than welcome. |
This thread should stay regarding datatables format. I am happy to discuss SMW vs. Cargo or other general issues in separate tickets. Regading SMW I always thought that datatables is a very interesting result format, however, for me it never fully worked. Therefore I am using filtered format for most things. Datatables is on of more then 70 formats and I agree that most people have found a way to live without it. However, I think it is a good idea to leave this open, because who knows someone might have the resources to fix this one day. BTM fixing broken result formats is probably a good entry point for newcomer developers who are very welcome to join in! |
Thanks. And my whine is just that. It’s just frustrating to go, “hey this is perfect for what I want”… then pound ones head, blame yourself, and only later find out it’s a flaw in the tool. (Cursing/grousing involved).
The view (output format) is still valuable for non-image data - I just wanted it with that feature, and spent a little too much time trying to debug my code before finding that it was broken, and had been for a long time.
There’s a learning cliff to get over for doing the first fixes myself. And I want to get much more comfortable with implementation and design patterns before I go spelunking and hacking other people’s code. But I agree that part of the advantage of OpenSource is in the first 1/2 of the name… and being part of the solution is always more constructive than just whining about the problem. The catch 22, is before I invest enough to be able to fix things, I want to make sure it’ll be worth it (solve my problems).
My poorly worded point was just that 5+ years seemed a bit excessive on pretty primal functionality (for that view). As a noob to SMW, it’s not very turn-key. There’s been a lot of sharp edges (bugs/quirks, config magic, unsupported extensions, etc.), that raise the bar for entry. But I can see the value, once I get done banging my knees and stubbing toes.
Thanks,
Dave
… On Jul 12, 2021, at 2:01 AM, Bernhard Krabina ***@***.***> wrote:
This thread should stay regarding datatables format. I am happy to discuss SMW vs. Cargo or other general issues in separate tickets.
Is datatables working (or even provided) in Cargo?
Regading SMW I always thought that datatables is a very interesting result format, however, for me it never fully worked. Therefore I am using filtered format for most things. Datatables is on of more then 70 formats and I agree that most people have found a way to live without it.
However, I think it is a good idea to leave this open, because who knows someone might have the resources to fix this one day. BTM fixing broken result formats is probably a good entry point for newcomer developers who are very welcome to join in!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I am currently developing a custom results printer and dug a bit into that code and I think I found the issue, it's an index off by one error. SemanticResultFormats/formats/datatables/resources/ext.srf.formats.datatables.js Lines 171 to 172 in bc1ea0e
It must be placed here: SemanticResultFormats/formats/datatables/resources/ext.srf.formats.datatables.js Lines 210 to 211 in bc1ea0e
Must be moved to the end of the block; otherwise the image info methods will receive the column with index 1, but in fact a zero-based index needed. |
Looking forward to your commits. Can you create a PR for this, please? |
I will try to come up with a PR later. |
our PR fixes this in my tests |
Setup
Issue
The column next to the image links is replaced by DataTables and not the image links itself.
Example: https://star-citizen.wiki/Benutzer:FoXFTW/Spielwiese
Images should appear in the "Kopfbild" column, but the "Hersteller" column is replaced instead.
The text was updated successfully, but these errors were encountered: