Bart Schuurmans
ed2e9e5ea8
Merge migration
2024-03-26 13:41:39 +01:00
Bart Schuurmans
ef57c0bc8b
Check last user export too in post handler
2024-03-26 13:41:39 +01:00
Bart Schuurmans
145c67dd21
Merge BookwyrmExportJob export_data field back into one with dynamic storage backend
2024-03-26 13:41:39 +01:00
Bart Schuurmans
6a67943408
Merge branch 'main' into user-export
2024-03-26 13:15:40 +01:00
Mouse Reeve
011e4a27a6
Updates locales and adds missing trimmed on blocktrans
2024-03-25 16:13:00 -07:00
Mouse Reeve
7192449b21
Merge pull request #3325 from Minnozz/author-search-vector
...
Rework author search
2024-03-25 14:41:25 -07:00
Bart Schuurmans
d9bf848cfa
Fix pylint warnings
2024-03-25 18:25:43 +01:00
Bart Schuurmans
bd95bcd50b
Add test for special character in cover filename
2024-03-25 18:14:45 +01:00
Bart Schuurmans
f721289b1d
Simplify logic for rendering user exports
2024-03-25 18:14:45 +01:00
Bart Schuurmans
a51402241b
Refactor creation of user export archive
2024-03-25 18:14:45 +01:00
Bart Schuurmans
e0decbfd1d
Fix urlescaped relative path to cover image in export
...
Fixes #3292
2024-03-25 17:59:39 +01:00
Bart Schuurmans
aee8dc16af
Fix pylint warning
2024-03-24 13:27:01 +01:00
Bart Schuurmans
5bd66cb3f7
Only generate signed S3 link to user export when user clicks download
2024-03-24 13:08:33 +01:00
Bart Schuurmans
ab7b0893e0
User exports: handle files that no longer exist on file storage
2024-03-24 12:47:26 +01:00
Bart Schuurmans
471233c1dc
Use different export job fields for the different storage backends
...
This way, the database definition is not depdendent on the runtime configuration.
2024-03-24 12:46:42 +01:00
Bart Schuurmans
a770689245
Merge branch 'main' into user-export
2024-03-24 12:07:14 +01:00
Bart Schuurmans
69f464418d
Remove problematic migration
...
This migration is dependent on the runtime configuration (.env); a structural fix will follow.
2024-03-24 12:06:44 +01:00
Hugh Rundle
03587dfdc7
migrations
2024-03-24 20:56:20 +11:00
Hugh Rundle
dd27684d4b
set signed s3 url expiry with env value
...
Adds S3_SIGNED_URL_EXPIRY val to .env and settings (defaults to 15 mins)
Note that this is reset every time the user loads the exports page
and is independent of the _creation_ of export files.
2024-03-24 20:53:49 +11:00
Bart Schuurmans
592914dc91
Render series number with comma and outside of link on book page
2024-03-23 19:51:20 +01:00
Bart Schuurmans
2915133223
Merge branch 'main' into book-series-3256
2024-03-23 19:37:07 +01:00
Bart Schuurmans
2d2ccd51df
Factor out book series info into separate template
2024-03-23 19:35:24 +01:00
Bart Schuurmans
b8995bd4b1
Add tests for author search
2024-03-23 19:26:51 +01:00
Bart Schuurmans
769d9726e5
Add book search test cases for author aliases
2024-03-23 19:26:51 +01:00
Bart Schuurmans
36222afa79
Switch author search from TrigramSimilarity to SearchQuery
2024-03-23 19:26:51 +01:00
Bart Schuurmans
0795b4d171
Include Author aliases in Book search vector
2024-03-23 19:26:51 +01:00
Bart Schuurmans
2de35f3fc7
Calculate Author search vector with name and aliases
2024-03-23 19:26:51 +01:00
Mouse Reeve
bac52eef3e
Merge pull request #3275 from ccamara/wikidata
...
Add wikidata field for authors
2024-03-23 08:12:09 -07:00
Mouse Reeve
5b71e94888
Merge branch 'main' into user-export
2024-03-23 07:55:46 -07:00
Mouse Reeve
a914a44fba
Removes unnecessary redeclaration of wikidata model field in Author
2024-03-23 07:54:54 -07:00
Mouse Reeve
8e088a6d53
Merge branch 'main' into switch_edition_invalidate_active_shelves
2024-03-23 07:53:24 -07:00
Mouse Reeve
21f75da75e
Merge pull request #3328 from Minnozz/escape-query-in-link
...
Escape search query in generated URLs
2024-03-23 07:46:04 -07:00
Mouse Reeve
20db968315
Merge pull request #3322 from Minnozz/fix-font-download
...
Fix font download
2024-03-23 07:36:43 -07:00
Bart Schuurmans
c3d25c59c5
Escape search query in generated URLs
...
Otherwise, a query containing '&' or other special characters results in a broken URL.
2024-03-21 16:48:34 +01:00
Bart Schuurmans
4ca52c0b38
Merge branch 'main' into trigger_migrations
2024-03-20 11:47:54 +01:00
Bart Schuurmans
6a87713f9f
Recalculate all book search vectors after fixing the author trigger
2024-03-20 11:45:12 +01:00
Bart Schuurmans
f423834bd0
Catch the correct exception type from Pillow
2024-03-19 12:42:52 +01:00
Bart Schuurmans
7690247ab4
Font download: log the exact error
2024-03-18 20:34:47 +01:00
Bart Schuurmans
3367b20965
Font download: destination dir is allowed to exist
...
Without this argument, an existing directory (but not the file) causes an error.
2024-03-18 20:23:31 +01:00
Adeodato Simó
a6dc5bd13f
Make get_file_size
robust against typing errors
2024-03-18 15:03:07 -03:00
Adeodato Simó
518da3b9cf
Merge from main into 'user-export'
...
Conflicts:
bookwyrm/models/bookwyrm_export_job.py
requirements.txt
2024-03-18 14:47:34 -03:00
Adeodato Simó
2cf7ed477d
Consolidate test_posgres.py into test_book_search.py
...
These are tests I missed when first writing trigger tests in
test_book_search.py.
2024-03-17 22:38:44 -03:00
Adeodato Simó
cceccd1ecf
Merge from main into 'trigger_migrations'
...
Conflicts:
requirements.txt
2024-03-17 21:54:15 -03:00
Bart Schuurmans
0282e20b89
Merge branch 'main' into book-series-3256
2024-03-16 11:23:40 +01:00
Mouse Reeve
a3465e6154
Merge pull request #3303 from MaggieFero/main
...
Upgrade Python Version and Several Other Packages for Security
2024-03-13 15:28:54 -07:00
Mouse Reeve
b68a4cc392
Merge branch 'main' into filelink-duplicate-check
2024-03-09 07:37:26 -08:00
Mouse Reeve
6dfb5000cc
Merge pull request #3305 from dato/export_catch_missing_key_icon
...
json_export: also detect absent "icon" key
2024-03-09 07:37:14 -08:00
Bart Schuurmans
8d018b872f
FileLinkForm: fix duplicate check
2024-03-09 15:49:42 +01:00
Adeodato Simó
9e7b040b73
Fix shelving date changing when changing editions ( #3193 )
...
Merged from from jakejack13/switch-edition
Fixes : #3139 .
2024-03-03 18:48:04 -03:00
Adeodato Simó
09c3d9c0dc
json_export: also detect absent "icon" key
2024-03-03 18:42:27 -03:00