Commit graph

499 commits

Author SHA1 Message Date
Mouse Reeve
2e8afb90e6 Fixes bug in activitypub serialization of statuses 2020-05-09 18:55:45 -07:00
Mouse Reeve
db898e362b Tests and fixes whitespace bugs in sanitizer 2020-05-09 18:30:24 -07:00
Mouse Reeve
ab7acc6db6 user model tests 2020-05-09 17:30:14 -07:00
Mouse Reeve
768ce1e5e7 split tests into separate files 2020-05-09 17:10:02 -07:00
Mouse Reeve
4468933edd Adds status tests 2020-05-09 16:52:16 -07:00
Mouse Reeve
49cdd5388f shelf model unit test
also fixes my bad logic in the import job tests
2020-05-09 16:38:05 -07:00
Mouse Reeve
93e53d3cca Adds some model unit tests 2020-05-09 16:16:28 -07:00
Mouse Reeve
ee7c04cc7e code style cleanup 2020-05-09 16:16:23 -07:00
Mouse Reeve
2a98093ebe Tidy up self connector 2020-05-09 13:36:10 -07:00
Mouse Reeve
7220a17840 Fixes bug that uses edition remote_id for work 2020-05-09 13:17:50 -07:00
Mouse Reeve
277c1a80fd Fixes loading covers 2020-05-09 12:59:06 -07:00
Mouse Reeve
8c3e208282 Load covers in fedireads connector 2020-05-09 12:53:55 -07:00
Mouse Reeve
5924e8ed63 Generalizes http request for json data in connectors 2020-05-09 12:39:58 -07:00
Mouse Reeve
3a8d84e9b1 A couple bugs in loading authors 2020-05-09 12:33:02 -07:00
Mouse Reeve
e9393ede28 Adds remote ID to authors 2020-05-09 12:29:23 -07:00
Mouse Reeve
4741ada418 Cleans up search results page 2020-05-09 12:16:59 -07:00
Mouse Reeve
093945e7fb Load author data with fedireads connector 2020-05-09 12:09:40 -07:00
Mouse Reeve
bb01834a31 Parser for search results in connectors 2020-05-08 17:56:24 -07:00
Mouse Reeve
c8bb717634 Fixes small logic errors 2020-05-08 17:41:23 -07:00
Mouse Reeve
9beae9cfcd Include all relevent book data without infinite recusion 2020-05-08 17:36:02 -07:00
Mouse Reeve
0edb9688cb Adds create_book functionality for fedireads conn 2020-05-08 17:29:48 -07:00
Mouse Reeve
1b91fb375f Fixes recipient logic 2020-05-04 14:18:35 -07:00
Mouse Reeve
3681e79559 Fixes recipient list for following 2020-05-04 14:18:35 -07:00
Mouse Reeve
1f2de18d42 Cleans up status creation book lookup flow 2020-05-04 12:37:34 -07:00
Mouse Reeve
2c1e7b8ecc fixes mapping for openlibrary isbn10 field 2020-05-04 10:42:48 -07:00
Mouse Reeve
d990a5effd Json serialize search results 2020-05-04 10:15:41 -07:00
Mouse Reeve
7454fb7454 Search is a view not an action 2020-05-03 21:13:43 -07:00
Mouse Reeve
07aab3806b Expand matching books on keys like isbn 2020-05-03 21:00:25 -07:00
Mouse Reeve
3c3afed6b3 Adds remote id to self connector search 2020-05-03 19:59:05 -07:00
Mouse Reeve
7594bed5d3 Use status source as connector 2020-05-03 19:54:30 -07:00
Mouse Reeve
b8568a76c8 Remove references to source_url 2020-05-03 18:58:12 -07:00
Mouse Reeve
3a4a194160 Path to update books 2020-05-03 18:56:29 -07:00
Mouse Reeve
de4f783891 Fixes rebase merge error 2020-05-03 18:15:03 -07:00
Mouse Reeve
1dffe425e0 Don't use book absolute ids for nav 2020-05-03 18:12:40 -07:00
Mouse Reeve
2fd7792f34 Remove fedireads_key field
we have ID
2020-05-03 18:12:29 -07:00
Mouse Reeve
fba1397444
Merge pull request #160 from mouse-reeve/search-controls
Separate out local and remote search results
2020-05-03 18:10:01 -07:00
Mouse Reeve
984cafb28e Cleans up alt tag generation for covers 2020-05-03 16:22:33 -07:00
Mouse Reeve
e9be06538f Use ordered list for editions page 2020-05-03 15:46:33 -07:00
Mouse Reeve
855b4a4eb0 Search cleanup 2020-05-03 15:26:47 -07:00
Mouse Reeve
bcd54f52f3 Only accept Create Status activities related to existing statuses 2020-05-03 14:55:13 -07:00
Mouse Reeve
aaa44d1db0 Extends cover alt with format and publication info
Works on #153
2020-05-03 14:27:42 -07:00
Mouse Reeve
f9198d2d4c Re-use work data for editions 2020-05-03 14:09:55 -07:00
Mouse Reeve
3094e2b539 Merge branch 'master' into search-controls 2020-05-03 13:54:58 -07:00
Mouse Reeve
93e12ac445 Fixes exception for openlibrary editions without works 2020-05-03 13:53:56 -07:00
Mouse Reeve
6e22035c27 Return None if no results found in first mode 2020-05-03 13:41:36 -07:00
Mouse Reeve
aeea1c3fee Adds dedplication back in 2020-05-03 13:32:23 -07:00
Mouse Reeve
ace1daa1f9 target _blank should be on source not book 2020-05-03 13:16:00 -07:00
Mouse Reeve
20264bc3f5 can't use self as a name 2020-05-03 13:12:42 -07:00
Mouse Reeve
60201ee5bf Fixes url fields in openlibrary connector 2020-05-03 13:03:15 -07:00
Mouse Reeve
7fb0a87077 Separate out local and remote search results 2020-05-03 12:59:06 -07:00
Mouse Reeve
d8934879e9 Merge branch 'cthulahoops-large_imports' 2020-05-02 17:08:52 -07:00
Mouse Reeve
a321ef2a82 Merge branch 'large_imports' of https://github.com/cthulahoops/fedireads into cthulahoops-large_imports 2020-05-02 17:07:46 -07:00
Mouse Reeve
ee832b82e9
Merge pull request #158 from mouse-reeve/book-search
Local search endpoint
2020-05-02 17:04:38 -07:00
Mouse Reeve
6b86bf32cd
Merge pull request #156 from cthulahoops/duplicate_reviews
Only import reviews if we're importing the book. (Avoid generating du…
2020-04-29 11:38:18 -07:00
Mouse Reeve
3f437069bd Prefer to only show default editions of works 2020-04-29 11:22:29 -07:00
Mouse Reeve
99adb2ef38 Mark default editions 2020-04-29 11:21:36 -07:00
Mouse Reeve
f7b8453594 Set author text when data is inherited from works 2020-04-29 11:08:51 -07:00
Mouse Reeve
e3525b13f5 Adds fulltext search of postgres 2020-04-29 10:57:20 -07:00
Mouse Reeve
6e218a85de Adds more fields to book data 2020-04-29 10:12:48 -07:00
Adam Kelly
62a3891ecf Only import reviews if we're importing the book. (Avoid generating duplicate reviews.) 2020-04-29 16:13:09 +01:00
Adam Kelly
aec8e5c536 Do some checks to make sure we've got a csv file on import.
Fixes #104.
2020-04-29 15:33:06 +01:00
Adam Kelly
64f9e12b1d Isbns aren't necessarily always unique. 2020-04-28 15:27:06 +01:00
Adam Kelly
9ffab814af Don't crash if we don't recognise the exclusive shelf. 2020-04-28 15:16:41 +01:00
Adam Kelly
543cc29ee1 Increase limit to 500 entries and warn about limit. 2020-04-28 14:59:48 +01:00
Mouse Reeve
4f9edae05a
Merge pull request #150 from cthulahoops/async_import
Async import
2020-04-27 10:15:43 -07:00
Adam Kelly
0b49d56707 Don't allow data source to change the primary key of an object. 2020-04-26 15:59:02 +01:00
Mouse Reeve
686d6328ae Adds alt text to book covers
Fixes #153
2020-04-25 12:21:44 -07:00
Adam Kelly
8c9b499cda Display fail reasons and reorder columns. 2020-04-25 11:44:59 +01:00
Adam Kelly
2006b2fbce Only use added_date as start_date for books being read right now. 2020-04-25 11:44:59 +01:00
Mouse Reeve
d51006b908 Hide pulldowns on covers shelf snippet
stopgap working on #139
2020-04-24 09:26:28 -07:00
Adam Kelly
fba78d7a0e Style fixes suggested by pylint. 2020-04-22 14:53:22 +01:00
Adam Kelly
60dabe442e Link import job to import status and display status on status page. 2020-04-22 14:16:46 +01:00
Adam Kelly
22b2a95fd3 Fixing up notifications. 2020-04-22 13:52:07 +01:00
Adam Kelly
0bf73fef24 Store csv in the database and then import via celery. 2020-04-22 13:52:07 +01:00
Adam Kelly
881cc4d64b First draft async imports. 2020-04-22 12:43:55 +01:00
Mouse Reeve
894f76f843 Oops I wasn't supposed to close input tags 2020-04-21 10:47:55 -07:00
Mouse Reeve
52651fdaa0 Use compose tabs in book page
Fixes #144
2020-04-21 08:01:54 -07:00
Mouse Reeve
94e66829b8 Fixes avatar crop logic 2020-04-20 18:42:13 -07:00
Mouse Reeve
b0493225be fixes typo in HTTPError 2020-04-20 17:46:32 -07:00
Mouse Reeve
b1a336bb08 Simplifies recipient logic 2020-04-20 17:43:42 -07:00
Mouse Reeve
bb3b25b7f4 generalize status creation 2020-04-20 17:06:11 -07:00
Mouse Reeve
2d4c2a7ee2 Process incoming federated quotes
Fixes #149
2020-04-20 16:37:53 -07:00
Adam Kelly
5a8a57523e Create and store reading progress when shelving books. 2020-04-15 13:27:25 +01:00
Adam Kelly
8e12071b99 Display start and finish dates in books list. 2020-04-15 13:27:25 +01:00
Adam Kelly
53ff28b5dc Save progress information from imports. 2020-04-15 13:27:25 +01:00
Adam Kelly
60f0aa207d Add model to store reading progress. 2020-04-15 13:27:25 +01:00
Adam Kelly
6d7f20caad Check if we already have edition in our database before using openlibrary. 2020-04-12 13:56:18 +01:00
Adam Kelly
5148820fa3 Move attempt to resolve books to view action. 2020-04-12 13:56:11 +01:00
Mouse Reeve
f2f0c979f1 Small html/css fixes 2020-04-11 21:49:06 -07:00
Mouse Reeve
ac279d7d2c Revert "Fixes pulldowns in all-shelves element"
This reverts commit a948ed9e03.
2020-04-11 12:05:54 -07:00
Mouse Reeve
8a6c21893f Consistent styles across pulldowns 2020-04-11 11:12:42 -07:00
Mouse Reeve
a948ed9e03 Fixes pulldowns in all-shelves element 2020-04-11 11:07:11 -07:00
Mouse Reeve
f4d8915b90 Center pulldown button and minor visual tweaks 2020-04-11 10:54:58 -07:00
Mouse Reeve
750ba550f1 move pulldown button icon closer to text 2020-04-11 10:48:17 -07:00
Mouse Reeve
13b6a8bc19 Use icon button for shelve pulldown 2020-04-11 10:35:13 -07:00
Mouse Reeve
5d5e97a0cc
Merge pull request #133 from cthulahoops/shelf_selection
Add css dropdown to select alternative shelves.
2020-04-11 10:29:35 -07:00
Adam Kelly
facbe33e37 Remove stray newline. 2020-04-09 22:40:24 +01:00
Adam Kelly
6fcc183377 Switch to using a list for buttons. 2020-04-09 22:39:12 +01:00
Adam Kelly
0a4524a524 Reuse the pull css styling from the user menu. 2020-04-09 22:33:51 +01:00
Adam Kelly
0d1395d602 Remove dead code for old shelf pulldown. 2020-04-09 11:23:37 +01:00