#16 CSV issue and javascript error
Closed 3 years ago by arrfab. Opened 3 years ago by arrfab.

Actually https://www.stg.centos.org doesn't display the mirror lists under /download/mirrors/ nor download/mirrors-altarch/
The first one is just empty and second one is throwing a javascript error.
To test this locally, one can use the up2date .csv files available in my branch (not merged) : https://git.stg.centos.org/fork/arrfab/centos/centos.org/blob/csv_issue/f/download

I thought we had similar issue in the past, but that it was resolved.
@areguera ?


Metadata Update from @arrfab:
- Issue assigned to areguera

3 years ago

My finding (fixed/tested locally but good to discuss this here):
for /download/mirrors-altarch, it was due to loading one last row which isn't csv separated, so easy to modify this at the source/where we generate and push those .csv

For /download/mirrors, issue is that it seems the generated .csv has "too many rows" and so isn't even rendered.
I had to reduce the list to 199 items and then it was loading. That seems to be tied to https://github.com/derekeder/csv-to-html-table/issues/64 but no obvious solution for now

Tried jekyll to parse the csv file directly on server, present a HTML table, then small js script to make it searchable. See pull request #18.

Metadata Update from @arrfab:
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata