Eg. https://quarry.wmflabs.org/query/21263:
Download: https://quarry.wmflabs.org/run/202171/output/0/xlsx?download=true
LibreOffice Calc, Version 5.1.6.2 shows:
Many cells are wrongly empty.
zhuyifei1999 | |
Sep 7 2017, 4:09 PM |
F9377078: Screenshot from 2017-09-07 11-07-58.png | |
Sep 7 2017, 4:09 PM |
F9377072: quarry-21263-hewiki-google-links-run202171.xlsx | |
Sep 7 2017, 4:09 PM |
F9377068: Firefox_Screenshot_2017-09-07T16-06-45.212Z.png | |
Sep 7 2017, 4:09 PM |
Eg. https://quarry.wmflabs.org/query/21263:
Many cells are wrongly empty.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
output: Fallback to write_string when some error occur in write for xlsx | analytics/quarry/web | master | +10 -2 |
(Originally reported by @IKhitron on https://www.mediawiki.org/wiki/Topic:Txnc2f9ndpwke6w4)
https://quarry.wmflabs.org/query/21425, 2048 characters plain text can be downloaded.
Sep 7 16:42:41 jessie python[26945]: /srv/venv/local/lib/python2.7/site-packages/xlsxwriter/worksheet.py:831: UserWarning: Ignoring URL 'http://www.example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' with link or location/anchor > 255 characters since it exceeds Excel's limit for URLS
This is raised in https://github.com/jmcnamara/XlsxWriter/blob/b4c4b499ffb3db8e0fa1b306880bcbcb3675fd4d/xlsxwriter/worksheet.py#L828
What do you think of forcing string instead of url when it is longer then 255 chars? This will affect formulas as well.
Change 376561 had a related patch set uploaded (by Zhuyifei1999; owner: Zhuyifei1999):
[analytics/quarry/web@master] output: Fallback to write_string when some error occur in write for xlsx
Change 376561 merged by jenkins-bot:
[analytics/quarry/web@master] output: Fallback to write_string when some error occur in write for xlsx
Mentioned in SAL (#wikimedia-cloud) [2017-09-08T18:06:42Z] <zhuyifei1999_> Deployed d9e8a4a to quarry-main-01 T175285
Should be resolved. Such text are no longer written as a link but as basic string. Please reopen if there are issues.