1
0
Fork 0
Commit graph

1572 commits

Author SHA1 Message Date
413c26bc5e
Merge pull request #3135 from hughrun/csv
csv import and export fixes
2024-08-23 16:29:04 -07:00
2bb77d9bf8 Updated search view to trim leading and trailing whitespace for author, book, and list query values 2024-08-11 13:01:48 -05:00
95c2798fc7
Merge pull request #3401 from dato/comment_progress_keep_start_date
Fix reading progress `start_date` bug
2024-08-09 13:07:01 -07:00
041f2fc413 edit_readthrough: set start_date/finish_date iff present in request
Fixes: #3164
2024-07-28 05:58:38 -03:00
43577f3ca0
Merge branch 'main' into csv 2024-07-27 12:26:21 -07:00
0b87aacfce pylint: enable useless-suppression lint and perform cleanup 2024-07-27 03:47:35 -03:00
1a0fbac76c pylint: upgrade to 3.2.6
This only requires fixing:

    E0606: Possibly using variable 'results' before assignment
    E0606: Possibly using variable 'input_type' before assignment
2024-07-27 03:38:47 -03:00
06d6360082
merge latest changes and add tests 2024-06-30 18:54:59 +10:00
e5b260e3ee
Merge branch 'main' into csv 2024-06-29 16:03:15 +10:00
61d9e0c260
Move comment to separate line
Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
2024-05-31 16:49:34 +02:00
acae063652 Fix new warnings from pylint upgrade 2024-04-26 13:59:16 +02:00
03ac846b5d Migrate from pytz to zoneinfo 2024-04-25 10:14:07 +02:00
624115bf11 Use headers dict instead of HTTP_* kwargs or request.META 2024-04-25 10:13:21 +02:00
4fa823e8df Update django-storages to 1.14.2
The problem that boto3 closes files has been worked around in django-storages.
2024-04-25 10:12:30 +02:00
c42db40a63 Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
839ab2fafd
Merge branch 'main' into move-fix 2024-04-24 14:56:32 +02:00
6684d60526
refactor Move for more redundancy
As outlined in #3354, a use `Move` fails if the user is moving from a BookWyrm server to another BookWrym server.
This is because:

1. the original code did not announce changes to alsoKnownAs;
2. the original code always checked the locally saved profile rather than refetching the remote data;

This commit fixes both these problems by forcing `MoveUser` to always perform a "refresh" of the local data from the remote, and by saving the user with broadcast=True when updating alsoKnownAs ids.
2024-04-22 13:35:08 +10:00
d48d312c0a
Merge branch 'main' into user-export 2024-04-13 12:26:13 +10:00
73630331d1
Merge pull request #3299 from Minnozz/absorb
Track which Author/Work/Edition a duplicate has been merged into
2024-04-09 05:55:44 -05:00
ef57c0bc8b Check last user export too in post handler 2024-03-26 13:41:39 +01:00
6a67943408
Merge branch 'main' into user-export 2024-03-26 13:15:40 +01:00
f721289b1d Simplify logic for rendering user exports 2024-03-25 18:14:45 +01:00
aee8dc16af Fix pylint warning 2024-03-24 13:27:01 +01:00
5bd66cb3f7 Only generate signed S3 link to user export when user clicks download 2024-03-24 13:08:33 +01:00
ab7b0893e0 User exports: handle files that no longer exist on file storage 2024-03-24 12:47:26 +01:00
a770689245 Merge branch 'main' into user-export 2024-03-24 12:07:14 +01:00
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
e04cd79ff8 Redirect to new URL when a merged object is requested 2024-03-23 19:28:57 +01:00
36222afa79 Switch author search from TrigramSimilarity to SearchQuery 2024-03-23 19:26:51 +01:00
8e088a6d53
Merge branch 'main' into switch_edition_invalidate_active_shelves 2024-03-23 07:53:24 -07:00
518da3b9cf Merge from main into 'user-export'
Conflicts:
	bookwyrm/models/bookwyrm_export_job.py
	requirements.txt
2024-03-18 14:47:34 -03:00
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
ec52460f02
Merge pull request #3274 from Minnozz/author-search
Add search for author
2024-02-29 15:55:12 -08:00
e6b6bd648d
Merge branch 'main' into move-ratings-and-reviews-when-switching-editions 2024-02-21 18:42:18 -03:00
6c9ca0bf19 Add search for author 2024-02-03 21:55:46 +01:00
48f8ee57a6 Merge branch 'main' into check-version-number 2024-02-03 08:02:15 -08:00
a1ac9494b2 Allow admins to un-schedule tasks 2024-02-03 08:00:07 -08:00
e0667c6a03
Merge pull request #3237 from Minnozz/status-title-description
Improve OpenGraph tags for status and book pages
2024-02-03 07:37:00 -08:00
2ba7dff845 Fixed shelving date changing when changing editions 2024-01-30 16:53:59 -05:00
3675a4cf3f
disable user exports if using azure 2024-01-29 14:28:30 +11:00
2c231acebe
linting and tests 2024-01-28 20:35:47 +11:00
2bb9a85591
various fixes
- use signed url for s3 downloads
- re-arrange tar.gz file to match original
- delete all working files after tarring
- import from s3 export

TODO

- check local export and import
- fix error when avatar missing
- deal with multiple s3 storage options (e.g. Azure)
2024-01-28 15:07:55 +11:00
c4596544a3 Issue-3187: fix failing tests 2024-01-24 19:18:46 +05:30
ea9d3f8ba1 Use Status.page_image for OpenGraph tags 2024-01-20 17:34:52 +01:00
f7b4d9ea50 Give individual status page a title and OpenGraph description 2024-01-20 17:34:52 +01:00
8e2649ba3b Issue-3187: change variable name and code formatting 2024-01-18 21:23:25 +05:30
d73141792d
Merge branch 'main' into issue-3187 2024-01-18 21:19:20 +05:30
469172947b
cleanup and linting 2024-01-18 18:43:45 +11:00
a585321ef9
Merge pull request #3226 from hughrun/disable-exports
Disable user exports
2024-01-17 14:23:29 -08:00
d640e4ac96
disable user exports by default
- new setting to enable user exports defaults to False
- add setting to enable and disable user exports
- do not allow user exports when using s3 storage
- do not serve non-image files from /images/ (requires update to nginx settings)
- increase default file upload limit to 100MB to enable user exports to be imported (can be changed in .env)
2024-01-16 21:32:13 +11:00