Ross Chapman
b728bb4323
Uses block trans
2023-12-16 12:05:35 -08:00
Ross Chapman
a4172214d1
Updates size of filters panel label
2023-12-15 13:17:23 -08:00
Ross Chapman
fb36958444
Removes unused variable
2023-12-14 13:47:51 -08:00
Ross Chapman
44d21d1ba4
Updates view logic
2023-12-14 13:04:45 -08:00
Ross Chapman
bd3acdbf31
Puts string in template
2023-12-14 12:33:27 -08:00
Ross Chapman
4a4046a704
Shows message if empty and renames "search" to "filter"
2023-12-14 11:30:01 -08:00
Ross Chapman
7cca199a11
Merge branch 'main' into let-a-user-search-within-their-books
2023-12-14 10:25:05 -08:00
Hugh Rundle
1649457372
Merge pull request #3156 from hughrun/user-migration
...
fix upsert_statuses
2023-12-13 20:59:47 +11:00
Hugh Rundle
7fcadb1d4d
fix upsert_statuses
...
- remote_id is now updated on import of statuses
- statuses cannot be imported unless source has target listed in alsoKnownAs or movedTo
- add alert boxes to import and export screens advising of the above
- update tests accordingly
2023-12-13 20:55:38 +11:00
Mouse Reeve
5c0e159d43
Adds Ukranian locale and updates locales
2023-12-12 15:42:40 -08:00
Mouse Reeve
000e5e6145
Merge pull request #3152 from bookwyrm-social/fixes-typo-in-move-notice
...
Fixes incorrect translation and display of moved user page
2023-12-12 14:59:00 -08:00
Mouse Reeve
8bb5a664c5
Fixes incorrect translation and display of moved user page
2023-12-11 20:12:14 -08:00
Mouse Reeve
e032e5491d
Merge pull request #3144 from villasv/patch-1
...
Update page formatter on ordered collection
2023-12-11 19:54:24 -08:00
Mouse Reeve
4bfa1ca5b8
Merge pull request #3124 from hughrun/softblock
...
Allow removing followers and fix follow rejections
2023-12-11 19:49:45 -08:00
Adeodato Simó
13374917f3
Make get_representative() atomic
2023-12-11 20:48:32 -03:00
Mouse Reeve
799f842115
Merge pull request #3146 from dato/setup_test_data
...
Faster tests with setUpTestData
2023-12-11 15:45:40 -08:00
Adeodato Simó
aa67f598dd
Explicitly set doctype to html5 when invoking tidy_document()
...
Many tests break without this on newer versions of html-tidy.
2023-12-11 19:40:48 -03:00
Adeodato Simó
9d502f5ee2
Use setUpTestData() to speed up tests
...
Pylint's `bad-classmethod-argument` is disabled for each definition
to avoid rewriting the method bodies just to rename `self` → `cls`.
This can be done gradually, as the setUpTestData methods are modified
along the way.
2023-12-11 19:40:30 -03:00
Mouse Reeve
198c0037c6
Merge pull request #3121 from hughrun/413
...
Display custom page on 413 errors
2023-12-09 08:31:25 -08:00
Mouse Reeve
e5d292919c
Merge pull request #3143 from dato/test_ordered_collection_use_bulk_create
...
Use bulk_create to test ordered collections
2023-12-09 08:30:23 -08:00
Mouse Reeve
029b438355
Clarify import/export of book vs user
...
I think this wording is a little clearer
2023-12-09 08:18:31 -08:00
Mouse Reeve
dd72013225
Small fixes for notifications
...
Adds a link in the text of the notification, and fixes references to
notification type in the model
2023-12-09 08:09:22 -08:00
Sean Molenaar
5d09c54e57
Merge branch 'main' into feat/api/oauth
2023-12-07 15:38:19 +01:00
Ross Chapman
aac8aa1adf
Fixes formatting
2023-12-06 11:36:15 -08:00
Ross Chapman
0f6e567b21
Clean up
2023-12-05 19:49:38 -08:00
Ross Chapman
c65e165aeb
Hides filter if shelf empty
2023-12-05 19:37:29 -08:00
Ross Chapman
979162da10
Uses filters, fixes for any shelf
2023-12-05 19:33:59 -08:00
Ross Chapman
b27ed847d5
Fixes result set passed to template
2023-12-05 16:36:58 -08:00
Ross Chapman
d93da4e86d
Checkpoint
2023-12-05 15:46:08 -08:00
Victor Villas
8fd05004ea
Update page formatter on ordered collection
2023-12-03 20:03:33 -08:00
Adeodato Simó
5384e4c470
Use bulk_create to test ordered collections
2023-11-30 15:58:48 -03:00
Sean Molenaar
b7ba6f1a36
urls.py: fix style
2023-11-30 11:25:51 +01:00
Matt Lehrer
7f55495287
Merge branch 'move-ratings-and-reviews-when-switching-editions' of github.com:mattlehrer/bookwyrm into move-ratings-and-reviews-when-switching-editions
2023-11-30 11:15:33 +01:00
Matt Lehrer
31a78a5c9e
linted
2023-11-30 11:13:11 +01:00
Mouse Reeve
193a36390b
Merge pull request #3083 from hughrun/file-resubmit
...
use bw-file-resubmit to retain images during validation checks
2023-11-29 15:36:33 -08:00
Mouse Reeve
cf1afefc84
Merge pull request #3133 from dato/search_results_fix_work_order
...
Do not create a set for already-distinct query result
2023-11-29 15:27:57 -08:00
Mouse Reeve
b8bf3d5bd9
Merge pull request #3138 from bookwyrm-social/dependabot/pip/aiohttp-3.9.0
...
Bump aiohttp from 3.8.6 to 3.9.0
2023-11-27 17:33:18 -08:00
dependabot[bot]
58f149d889
Bump aiohttp from 3.8.6 to 3.9.0
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.8.6 to 3.9.0.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.6...v3.9.0 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-11-28 01:02:35 +00:00
Ross Chapman
90cc28986e
Merge branch 'main' into let-a-user-search-within-their-books
2023-11-27 11:40:57 -08:00
Adeodato Simó
d6eb390cee
Add test that forces book_authors_search_vector_trigger
to execute
2023-11-26 15:59:17 -03:00
Adeodato Simó
b5805accac
Minor improvements to bookwyrm_book trigger code
...
- do not COALESCE columns that cannot be NULL
- do not bring bookwyrm_book to author names JOIN
- add comments documenting the four steps
2023-11-25 21:49:15 -03:00
Adeodato Simó
bbfbd1e97a
Add tests for trigger code (i.e. how search_vector is computed)
2023-11-25 20:54:49 -03:00
Adeodato Simó
9bcb5b80ea
Further simplify bookwyrm_author trigger
2023-11-25 18:13:40 -03:00
Adeodato Simó
8df408e07e
Define search_vector_trigger
via Book.Meta.triggers
2023-11-25 17:02:54 -03:00
Adeodato Simó
bcb3a343d4
Fix JOIN in author_search_vector_trigger
, add missing WHERE clause
2023-11-25 16:23:21 -03:00
Adeodato Simó
416a6caf2d
Define author_search_vector_trigger
via Author.Meta.triggers
...
Previously, triggers lived only in a particular migration file. With
this change, code for the triggers resides in the model, and their
lifecycle is managed through normal Django migrations.
2023-11-25 16:17:51 -03:00
Adeodato Simó
44ef928c3c
Alter object row IDs to force test failure in original code
2023-11-25 16:11:01 -03:00
Adeodato Simó
e4d688665c
Remove index for author.search_vector
, which is never used
2023-11-24 22:43:12 -03:00
Adeodato Simó
0299f2e235
Add functional tests for search_vector triggers
...
As metadata changes, search continues to work.
2023-11-24 22:28:41 -03:00
Adeodato Simó
c997d2d44a
Add test to assert distinct() clause
...
Also, tweak other `search_title_author()` tests to verify ordering by
edition rank.
2023-11-24 02:28:27 -03:00