-
Notifications
You must be signed in to change notification settings - Fork 2
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
Excel file from link not being processed by Data Review Tool #101
Comments
Have tried setting online workbook to 'anyone with the link can view' and 'anyone with the link can edit' still having this issue. Also throws up an error when trying to paste the link in on the review tool. |
It's nothing about the sharing permissions or the URL. To fix this, here is a list of things that need to be done: OpenDataServices/lib-cove-web-2#5 this PR is needed, the library needs to be released and used in Cove. It needs to check content type to work out that it's a spreadsheet. It was assuming all URL uploads were JSON - remove that. Apply:
It was assuming JSON always has content type set correctly and if you paste in a URL from GitHub raw like https://raw.githubusercontent.com/openownership/lib-cove-bods/master/tests/fixtures/0.3/basic_1.json it wasn't. We need to check more carefully. So apply:
And (hopefully) finally, flattentool still fails when you paste that URL in with at error "openpyxl.utils.exceptions.InvalidFileException: openpyxl does not support file format, please check you can open it with Excel first. Supported formats are: .xlsx,.xlsm,.xltx,.xltm". The filename on disk is "export". We want to rewrite all file operations in Cove to use Django file interface anyway. (the reason is so we can switch to cloud hosting of files later). Unfortunately flattentool can't work with that - so here, the process must be copy the files to temp folder, run flattentool locally then copy them back. See Open-Telecoms-Data/cove-ofds@5b4fbdb So it would be good to rewrite ConvertSpreadsheetIntoJSON to do that anyway, and in the process, we can drop a proper file extension on the temporary file that flatten tool will see and thus fix this issue. |
It used to be possible to paste the url in B9 in this workbook into the Data Review Tool and have it validate the Excel version of the workbook.
It no longer works.
Note that downloading the Excel version of the workbook and uploading it to the tool does work.
(This direct link for validation from the workbook also does not work:
...but I assume that that is a related issue.)
The issue was found by @kathryn-ods.
The text was updated successfully, but these errors were encountered: