Tell users which GoodReads imports fail
Describe the problem that you'd like solved
I just signed up for this and imported my GoodReads csv export. the csv has 90ish rows and I was only able to import 60ish rows. Open Library did not tell me it wasn't able to fully import my data. I get that Open Library doesn't have as much data as GoodReads, but I wish it would show me the data it couldn't import so I could add it manually to Open Library's data store.
Proposal & Constraints
I propose that Open Library tells users when some of their data fails to import. Maybe a red banner or something- 30 books failed to import. I feel like this would be relatively easy to do and it would warn users that something failed.
Even better than that would be a list of what failed to import (probably not too much harder to implement). This would let people manually import books with the list.
Even better than that would be a displayed table of that list (the rows in the CSV that didn't make it) with an export option and auto-generated links to fill in the "import book" form (probably a lot harder to do) so users could easily import these books
Additional context
I originally brought this up at https://news.ycombinator.com/item?id=25408988 .
Stakeholders
@tabshaikh @mekarpeles (asked to tag these good folks from the HN comment)
I think this proposed improvement, tagging @tabshaikh (as I don't think he has bandwidth to lead, but he's a valuable resource as one of the primary original implementers).
I'm also tagging this issue as help wanted to motivate the community to jump in and marking as P3
@jamesachamp switching you to lead; not expecting you to work on this one -- just thought it may be a good addition to Front-end menu, in case folks are looking for a good first issue. For PR review, feel free to punt over to me, I'm happy to invest the time!
/api/endpoint/ -- missing fields --> 500 error (@jimchamp)
@jimchamp Hi. Wondering if anyone is working on this Issue. Would like to assist with identifying and fxing the following sections of the issue as phase 1
- /api/endpoint/ -- missing fields --> 500 error mentioned by @cclauss
- Identify why the imports are randomly failing and how best to mitigate these
As Phase 2, we can look at how best to notify the end user when a import faiure or partial failure as mentioned in the issue happens.
@jimchamp I'd like to work on this. I see @20086080 asked in April. If they're still on it, I'll leave it to them.
Part of this already exists. After an import, goodreads_import.js marks each failed row with a reason ("Book not in collection", "Custom shelves are not supported", and so on), and rows without an ISBN show "No ISBN". What's still missing is what the issue asks for: when the import finishes, the progress bar only turns into a "Go to your Reading Log" link. With a 90-row CSV, the user has to scroll through the table to find the failures, and has no way to take them away to add manually.
Plan:
- When the last row is processed, show a summary above the table: "N imported, M could not be imported". The No-ISBN rows count as failed.
- Add a "Download the books that failed" button that builds a CSV on the client (title, author, ISBN, shelf, reason), so users can add those books by hand.
- Fix a small bug I found on the way: the failure cells are appended with a stray
'after</td>(goodreads_import.js, infail()), so every failed row gets a stray'text node.
Does that match what you'd want here?
Am not working on this. Thank you for checking.
@jimchamp @RayBB @20086080 confirmed on Sep 28 that they are not working on this. I have a working version locally: after an import, a summary of how many rows were imported and how many failed, a downloadable CSV of the failed rows with the reason, and three small fixes in goodreads_import.js that I found on the way (an unawaited reading-log request, a dead fail: ajax option, a stray quote), with 11 vitest tests. Could one of you assign this to me so I can open the PR?
You're assigned now