-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Support for tabular data entry in Bulk Search #9709
Add Support for tabular data entry in Bulk Search #9709
Conversation
f8affdd
to
1bb951a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9709 +/- ##
==========================================
+ Coverage 16.06% 16.45% +0.39%
==========================================
Files 90 91 +1
Lines 4769 4899 +130
Branches 832 853 +21
==========================================
+ Hits 766 806 +40
- Misses 3480 3559 +79
- Partials 523 534 +11 ☔ View full report in Codecov by Sentry. |
…han as a part of the vue component.
…entify when it's the active extractor of BulkSearchState.
1bb951a
to
000d8a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! A few small code tweaks!
openlibrary/components/BulkSearch/components/BulkSearchControls.vue
Outdated
Show resolved
Hide resolved
openlibrary/components/BulkSearch/components/BulkSearchControls.vue
Outdated
Show resolved
Hide resolved
6f8d11e
to
d1066ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works like a charm!
Closes #9699
This PR adds another new child of the AbstractExtractor class. The TableExtractor allows for data to be copy-pasted from Google Sheets or other spreadsheet services, and extracts the contents of the 'title' column and the 'author' column, if they exist.
Technical
Currently, the implementation allows for titles to be searched if the author column is empty. This has led to an odd interaction, where searching for 'Mark Twain' in the title ends up incorrectly pulling other books that he wrote. I'll be debugging that over the next day or so, but I figured I might as well put it up for review.
Testing
Create a table in Google Spreadsheets, then copy it into the input area of the
/search/bulk
page. Select the bottom extraction option, and click 'extract books'. Please ensure that you have titled your columns appropriately.Screenshot
Stakeholders
@cdrini