Skip to content
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

Closed
octfx opened this issue Dec 17, 2016 · 20 comments · Fixed by #730
Closed

DataTables format: Image links a being replaced in the wrong column #188

octfx opened this issue Dec 17, 2016 · 20 comments · Fixed by #730
Labels

Comments

@octfx
Copy link

octfx commented Dec 17, 2016

Setup

  • MW version: 1.28.0
  • DB (MySQL etc.): MariaDB 10
  • PHP version: 7
  • SMW version: 2.4.3
  • SRF version: master (17.10.2016)

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.

@kghbln kghbln added the bug label Dec 20, 2016
@kghbln
Copy link
Member

kghbln commented Dec 20, 2016

Thanks for reporting! That indeed does not appear to be an expected behaviour.

@kghbln kghbln changed the title Image links replacing the wrong column in DataTables DataTables format / Image links a being replaced in the wrong column Dec 20, 2016
@kghbln
Copy link
Member

kghbln commented Feb 20, 2018

Reported again as #372

Still present with:

  • MediaWiki | 1.27.4 (317104c)23:34, 7 February 2018
  • PHP | 7.0.25-0ubuntu0.16.04.1 (apache2handler)
  • MySQL | 5.7.21-0ubuntu0.16.04.1
  • Semantic MediaWiki | 2.5.7-alpha (e0c6791) 15:00, 14 February 2018
  • Semantic Result Formats | 2.5.5-alpha (aad259d) 15:31, 11 December 2017

Example at www.semantic-mediawiki.org

@kghbln kghbln changed the title DataTables format / Image links a being replaced in the wrong column DataTables format: Image links a being replaced in the wrong column Feb 20, 2018
@krabina
Copy link
Contributor

krabina commented Dec 16, 2018

It is still present in SRF 3.0
https://www.semantic-mediawiki.org/wiki/Demo:Datatables_compared_to_broadtable

MediaWiki | 1.31.1 (141cb48)22:39, 5 December 2018
PHP | 7.0.32-0ubuntu0.16.04.1 (apache2handler)
MySQL | 5.7.24-0ubuntu0.16.04.1
Lua | 5.1.5

Semantic MediaWiki | 3.0.0 (abdec88) 22:29, 11 October 2018
Semantic Result Formats | 3.0.0 (36ced8d) 09:15, 12 October 2018

@kghbln
Copy link
Member

kghbln commented Dec 16, 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

@krabina
Copy link
Contributor

krabina commented Dec 16, 2018

This is what I see in Firefox and Chrome
grafik

@krabina
Copy link
Contributor

krabina commented Dec 16, 2018

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.

@kghbln
Copy link
Member

kghbln commented Dec 16, 2018

I see this:

image

Did you refresh the view by clicking the update button on the top right of the table?

@krabina
Copy link
Contributor

krabina commented Dec 16, 2018

refresh button does not change it in chrome, in FF i don't see those buttons:
grafik
I am working in Windows 10,, btw

@kghbln
Copy link
Member

kghbln commented Dec 16, 2018

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.

@krabina
Copy link
Contributor

krabina commented Mar 27, 2019

any updates on this?
I gave datatables another try and encountered the next problem. A property of type boolean displays "t" "f" (true/false) even if you set #ja,nein
You can see it here: https://sandbox.semantic-mediawiki.org/wiki/Issue/1580

@krabina
Copy link
Contributor

krabina commented Mar 27, 2019

#482

@mwjames
Copy link
Contributor

mwjames commented Mar 30, 2019

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.

@DaveEvery
Copy link

No.
PS: ...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...

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?

@octfx
Copy link
Author

octfx commented Jul 11, 2021

Well I don't think the conclusion that Crago & Co. is more reliable is a correct one.
While MediaWiki is relatively wide used, Wikis with SMW enabled are only a smallish subset, further the subset of SMW installations using this specific type of Result Format + images is even smaller.
This plus finding a user that is versed enough to submit a patch makes the odds of someone submiting a patch in the realms of not "realistic in the next years".

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.

@krabina
Copy link
Contributor

krabina commented Jul 12, 2021

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!

@DaveEvery
Copy link

DaveEvery commented Jul 12, 2021 via email

@Siedlerchr
Copy link

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.

$.each( printreqs, function( index, propertyObj ) {
columnIndex++;

It must be placed here:

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.

@krabina
Copy link
Contributor

krabina commented May 16, 2022

Looking forward to your commits. Can you create a PR for this, please?

@Siedlerchr
Copy link

I will try to come up with a PR later.

@krabina
Copy link
Contributor

krabina commented Sep 30, 2022

our PR fixes this in my tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants