Closed quadrismegistus closed 1 month ago
We have given a "genre" for each item/book in the lending library: drama, fiction, nonfiction, poetry, periodical, N/A. We should discuss/confirm that these are the best labels. We may also consider whether we should create a structure that would allow future work: e.g. dividing nonfiction into philosophy, history, etc. We don't have time to do that kind of dividing now.
Small thing: there's a typo in "genre category" -- it's reads "Genre Cateogry."
I received an error message when trying to do the larger import. Maybe I should do the import from campus? If so, I can try again on Tuesday.
Two additional notes:
I opened the test site this evening to finishing testing. The import went through despite the error message (see above) -- but the import added 23 "empty" works. See this screenshot.
For this test:
Try re-importing the 10 book csv above but first editing it in excel to replace slug in the header with slugxx or another word; then make sure an error is shown
I did as instructed, but didn't see an error message.
When I try to do this:
If more than 1,000 records updated, check that a warning message shows at top of page indicating that a server-side index will be necessary
I get this error message:
Still receiving an error message.
This is the CSV I used.
@jkotin I figured out what caused the error: your CSV had the heading 'category' but you and Ryan decided to set the database to allow multiple, so the import was expecting it to be called 'categories'. I've revised the input so it should work with either category or categories. Please confirm.
I'm getting an error again, but I suspect that's because the VPN sometimes gets weird. I can try again from campus on Monday evening.
I tried from campus and got the same error warning.
@jkotin I see log messages indicates data is being imported and then it stops; no error, but I think it may be getting cut off by a timeout on the load balancer. I'll talk to PUL about increasing the timeout and let you know.
@jkotin I've coordinated with PUL to increase the timeout on the load balancer, when you get the chance please test this again and report back on whether it works or if you're still getting the error.
Yay! It worked.
Notes:
Update 2/1/24: We have this working now in the admin interface on QA using django-import-export. If you go to /admin/books/work you should see an import and export button. Export should export all Works, with all fields. Import should, for now, import only the fields relevant to the currently annotated data (genre
category
).Testing instructions
slug
in the header withslugxx
or another word; then make sure an error is shown