Commit graph

537 commits

Author SHA1 Message Date
Mouse Reeve
67822d3cb0
Merge branch 'main' into user-migration 2023-11-05 06:52:48 -08:00
Mouse Reeve
0502f6ba42
Merge pull request #3076 from bookwyrm-social/move
Add Move activity for user migration (with small change)
2023-11-01 18:19:56 -07:00
Mouse Reeve
6f9c7f39fb Adds reverse migration for populate sort title
This doesn't impact much, it just allows you to reverse the migration,
which you would probably (hopefully) only want ot do in development.
2023-11-01 16:24:47 -07:00
Hugh Rundle
4d35fd45df
template and migration fixes 2023-10-27 22:22:58 +11:00
Adeodato Simó
737ac8e908
Implement PartialDateField using SealedDate and a custom descriptor 2023-10-24 17:30:15 -03:00
Hugh Rundle
b34a491172
run black 2023-10-22 15:34:25 +11:00
Hugh Rundle
a27c652501
admin view for user imports
- makes user_import_time_limit a site setting rather than a value in settings.py (note this applies to exports as well as imports)
- admins can change user_import_time_limit from UI
- admins can cancel stuck user imports
- disabling new imports also disables user imports
2023-10-22 15:07:49 +11:00
Hugh Rundle
20114b0059
add notifs and error handling for user export/import 2023-10-22 09:03:28 +11:00
Hugh Rundle
c95f160216
fix MoveUser errors and clean up
- minor template fixes
- notification logic fixes
- don't dedupe on moved_to or also_known_as
- add migration
2023-09-25 15:14:21 +10:00
CSDUMMI
688978369f Implement self-contained archives to import and export entire users between instances (#38)
Co-authored-by: Daniel Burgess <developerdannymate@gmail.com>
Co-authored-by: Hugh Rundle <hugh@hughrundle.net>
Co-authored-by: dannymate <dannymate@noreply.codeberg.org>
Co-authored-by: hughrun <hughrun@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/GuildAlpha/bookwyrm/pulls/38
Co-authored-by: CSDUMMI <csdummi.misquality@simplelogin.co>
Co-committed-by: CSDUMMI <csdummi.misquality@simplelogin.co>
2023-09-07 22:37:28 +02:00
Mouse Reeve
518f87ef62 Adds merge migration 2023-08-06 16:02:28 -07:00
Mouse Reeve
a166af9990
Merge branch 'main' into report-actions 2023-08-06 16:00:59 -07:00
Joeri de Ruiter
fec6f39e4e Migration to include Dutch in user.preferred_language 2023-07-23 21:34:28 +02:00
Mouse Reeve
3bd20e3ff8
Set batch size to 1,000
Updated as per the comments on the PR so this is ready to merge
2023-07-17 05:42:17 -07:00
Mouse Reeve
4f6a235d77 Reverses order of report action list 2023-06-21 15:05:02 -07:00
Mouse Reeve
b3a519c082 Converts report "comments" into broader "actions" table
This table will now track all actions taken on a report, like resolving
it, re-opening it, suspending the reported user, et cetera, in addition
to comments. When there are multiple admins, this change will make it
easier to understand what actions have been taken by whom on a report.
2023-05-16 11:00:33 -07:00
Mouse Reeve
ab146f652a Adds action types to report comments table 2023-05-16 09:02:43 -07:00
Zach Flanders
ad1ddf2bff Fixing batch size 2023-04-29 09:48:01 -05:00
Zach Flanders
490064cdf8 updating sort title migration 2023-04-29 09:43:55 -05:00
Zach Flanders
a1df116c58 Adding batch processing to the sort title migration 2023-04-27 15:30:52 -05:00
Zach Flanders
858a93e98a fixing migration 2023-04-25 21:05:11 -05:00
Zach Flanders
575e1bac4c responding to review comments 2023-04-25 19:46:38 -05:00
Zach Flanders
a94a4732ec add support for title sort to ignore initial article 2023-04-24 23:29:55 -05:00
Josh Soref
1fdf5a7a39 spelling: physical
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
44b4b10eb8 spelling: password
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Mouse Reeve
56cc0eb80f Adds Esperanto locale 2023-03-28 15:03:40 -07:00
Mouse Reeve
7ffe5b9440 Adds merge migration 2023-03-12 16:43:06 -07:00
Mouse Reeve
12af5992a3
Merge pull request #2524 from chdorner/feature/tag-support
Initial hashtag support
2023-03-12 16:37:39 -07:00
Christof Dorner
ee0a89faf2 Reorder head migration 2023-03-07 22:31:58 +01:00
Mouse Reeve
05a303ea18
Merge pull request #2690 from bookwyrm-social/link-domain-notifications
Create notifications for link domains that need approval
2023-03-07 08:43:14 -08:00
Christof Dorner
e8a306437f Reorder migrations to add hashtag one at the end 2023-03-07 13:11:27 +01:00
Christof Dorner
c68304a99b Parse hashtags and store them in CreateStatus view 2023-03-07 12:55:36 +01:00
Mouse Reeve
268946a77c Adds missing template and migration files 2023-02-22 10:46:01 -08:00
Giebisch
f65e0b7632 Add Quotation endposition test 2023-02-06 14:00:04 +01:00
Giebisch
f085315d70 Added Backend Part 2023-01-30 16:12:14 +01:00
Christof Dorner
2c680cb365 Add default user auth group to registration settings 2023-01-21 17:04:32 +01:00
Mouse Reeve
9ef5d53696 Python formatting 2023-01-19 13:06:58 -08:00
Mouse Reeve
a9f59ef8d5 Adds merge migration 2023-01-19 12:17:41 -08:00
Mouse Reeve
3e969bb349
Merge pull request #2606 from jaschaurbach/author_website
Add Website to author
2023-01-19 12:08:01 -08:00
Giebisch
5faf7f5e87 Fixed Import limit for retries 2023-01-17 01:07:10 +01:00
Giebisch
d0adb370cd Merge branch 'main' into import-limit 2023-01-16 02:05:18 +01:00
Jascha Urbach
54e0fdd5ae
Here we go again! 2023-01-15 09:41:39 +01:00
Mouse Reeve
dd2b166382
Revert "Add Website field to author" 2023-01-11 19:21:40 -08:00
Giebisch
b9576ccd31 Merge conflict fix 2023-01-11 16:26:36 +01:00
Giebisch
b22d060d93 Merge branch 'main' into import-limit 2023-01-11 16:22:08 +01:00
Giebisch
6d1de44c48 Sync with main and merge migrations 2023-01-02 17:38:43 +01:00
Giebisch
7e7966987b Merge branch 'main' into import-limit 2023-01-02 15:42:50 +01:00
Jascha Urbach
2d76595af6
Add Website field to author
Authors have Websites. that might be interesting for BookWyrm users. Now there is a field specify the website of an author and it is shown tu users under the wikipedia link

Adds max char for ISFDB ID (6) and ISNI (19 - 16 plus three -)
2022-12-28 15:41:48 +01:00
Mouse Reeve
f2a52d4a18 Adds Basque language 2022-12-21 10:30:51 -08:00
Giebisch
32463c1157 Fix merge 2022-12-19 21:50:34 +01:00
Jascha Urbach
befcf4f3e9
bump some versions in requirements
Why update:

iohttp: supports now more of http standard.
celery: supports redis > = 4.0.2 (the docker image uses redis 7.0.6
django-celery-beat: better Django 3.2 support, bump celery to 5.2, downgrade of dependencies for better celery support
django-compressor: official Django 3.2 support, updates requirements
django-model-utils: official django 3.2 support.
django-sass-processor: remove deprecated default_app_config, support of ManifestStaticFilesStorage (which might be needed in the future)
environs: bugfixes
libsass: removes deprecated cli
Pillow: bug fixing
psycopg2: Bugfixing
pycryptodome: bugfixes
python-dateutil: updated tzdata
requests: better json Handling, bugfixing
responses: bugfixes and more
pytz: python3 code generation, All the corect timezone behaviour!
boto3: Updsate all the S3 Handling

signtures.py update because of breaking change in pycryptodome

migration because uf updated timezones

With updated celery I have less 501 errors on my instance. updated psycopg2 has better performance.

I have NOT chekced opentelemetry packages.

Upgrading redis package wold need a deeper inspection of the code as some functions are dropped in newer versions.
2022-12-19 16:37:41 +01:00
Mouse Reeve
d4351cfcb4
Merge branch 'main' into import-limit 2022-12-16 12:44:57 -08:00
Giebisch
df54df8309 Added Import Limit 2022-12-15 23:43:25 +01:00
Mouse Reeve
4f0e7b60d6 Adds merge migration 2022-12-11 12:03:22 -08:00
Mouse Reeve
58e8c0b5ec Merge branch 'main' into admin-roles 2022-12-11 11:58:54 -08:00
Jascha Urbach
ac8b060d58
Isfdb ID for books and authors (#2482)
* New ID: Audible ASIN

Audible belongs to Amazon BUT they do not share the same IDs. The Audible ASIN of an audiobook is never the same as the Amazon ASIN.

Yeah, I know, Amazon is great. The fact that the ASIN is a good distinction for different works and editions bothers me more than I will ever be willing to admint.

* New ID "ISFDB"

Internet Speculative Ficiton Database ID for books and authors.
Links to the entry if set.

* Added aasin to test

Added aasin to test

* the answer expects more emptxy fields...
2022-12-11 11:33:33 -08:00
Mouse Reeve
fdaa24edfe Tweaks group query in migration for tests 2022-12-05 17:33:40 -08:00
Mouse Reeve
b8e403ce59 Fixes migration to give the correct perms 2022-12-05 17:04:58 -08:00
Mouse Reeve
c7234bff64 Update admin role for new perms 2022-12-05 16:58:23 -08:00
Mouse Reeve
9b087199ed Adds new role and permissions 2022-12-05 16:07:09 -08:00
Mouse Reeve
16f9232e1e Adds database fields for legal page/impressum 2022-11-25 11:02:42 -08:00
Mouse Reeve
7c7c0e1a93 Admin UI to enable and disable importing 2022-11-17 14:23:39 -08:00
Mouse Reeve
c47a425cbe Longer invite answer field
It was an oversight that it was only set to 50 characters I expect!
2022-11-15 14:52:07 -08:00
Mouse Reeve
317cf5fcf5 Generate fewer add_status_tasks
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.

The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
Mouse Reeve
eae1866992
Allow users to temporarily deactivate their accounts (#2324) 2022-11-10 13:40:54 -08:00
Mouse Reeve
76fb4c9280 Revoke tasks 2022-11-05 15:41:06 -07:00
Mouse Reeve
97513a43d6 Set import job status when job starts and finishes 2022-11-05 13:47:06 -07:00
Mouse Reeve
59fe9e4d3b Show import status in table 2022-11-05 13:44:07 -07:00
Mouse Reeve
24e5ea3295 Check if import is stopped and create import status field 2022-11-05 13:32:23 -07:00
Hugh Rundle
da613c9b26 ugh forgot to run black 2022-10-15 07:47:20 +11:00
Hugh Rundle
fda150fa0d resolve migration conflict 2022-10-15 07:47:20 +11:00
Hugh Rundle
9b74c26742 backup codes
- add hotp_secret to user model
- view to create backup codes in user prefs
- check backup code if otp doesn't work
- increment hotp count if used
- show correct errors if code wrong
2022-10-15 07:47:20 +11:00
Hugh Rundle
514762c233 fix typo in new user fields
oopsie
2022-10-15 07:47:20 +11:00
Hugh Rundle
54daade9f9 prepare for 2FA
- add and migrate User fields for 2FA
- add views for 2FA
- add new forms for 2FA
- update package list in requirements.txt
- add URLs for 2FA views
2022-10-15 07:47:20 +11:00
Mouse Reeve
e51980bc12 Use BookWyrmModel as parent for admin models
This will make them more internally consistent and give them built-in
permissions checking
2022-09-19 09:35:38 -07:00
Hugh Rundle
aa18179dbc add migration 2022-09-10 10:27:17 +10:00
Mouse Reeve
0bc3c3b5f6 Adds locale migration 2022-08-02 11:09:58 -07:00
Mouse Reeve
844023f104
Merge pull request #2246 from bookwyrm-social/goal-model
Moves annual goal to its own file
2022-07-29 13:22:12 -07:00
Mouse Reeve
2298a478cf Moves annual goal to its own file
The user model file is just,, very long
2022-07-29 13:00:59 -07:00
Hugh Rundle
356c1c0b62 fix migration dependency order
Show_guided_tour needs to come after alter_user_preferred_language due to conficts. I think.
2022-07-17 16:34:42 +10:00
Hugh Rundle
17dc5e7eb1 Merge branch 'main' into tour
- we need to do this because of conflicting migrations
2022-07-17 16:30:45 +10:00
Mouse Reeve
d3f35fb691 Adds Catalan 2022-07-15 12:28:31 -07:00
Hugh Rundle
e1acdd0062 fix migrations
There was a conflict due to the order of migrations. Hopefully this commit fixes it!
2022-07-10 09:53:43 +10:00
Hugh Rundle
ab5e4128e6 Merge branch 'main' into tour
Also fixes conflict
2022-07-09 20:54:48 +10:00
Hugh Rundle
02c6932409 lint migration file 2022-07-09 20:10:28 +10:00
Hugh Rundle
baad1314d8 default existing users to no tour 2022-07-09 19:51:05 +10:00
Mouse Reeve
221b5138e8 Adds merge migration 2022-07-06 14:42:58 -07:00
Mouse Reeve
5a6ef7ccd8 Merge branch 'main' into notifications 2022-07-06 14:41:15 -07:00
Mouse Reeve
079f6d304e Python formatting 2022-07-06 12:22:07 -07:00
Mouse Reeve
9fceeb3eda Adds another missing migration 2022-07-06 12:17:24 -07:00
Mouse Reeve
003ef65db5 Adds missing migration 2022-07-05 18:01:10 -07:00
Mouse Reeve
801ba03aaf Keep group as a foreign key field 2022-07-04 20:32:13 -07:00
Mouse Reeve
9948dd2356 Use enums in more models 2022-07-04 20:27:56 -07:00
Mouse Reeve
03f5a3f2c1 Use enums for notification types 2022-07-04 20:19:18 -07:00
Mouse Reeve
b193652a67 Python formatting 2022-07-04 19:58:27 -07:00
Mouse Reeve
a9a2da0957 Keep status as a single field 2022-07-04 19:20:04 -07:00
Mouse Reeve
c7ecbb2fdf New migration file
I don't know why it felt important to do this but it did. The migrations
are in one file now and don't need a merge migration.
2022-07-04 18:42:56 -07:00
Mouse Reeve
a718a168a3 Merge branch 'main' into notifications 2022-07-04 17:38:21 -07:00
Hugh Rundle
b82cf887e2 linting fixes 2022-07-03 17:14:13 +10:00
Hugh Rundle
80c71928c3 add show_guided_tour value to User
This boolean value indicates whether the user wishes to be show the guided tour.
It defaults to True but will be able to be easily set to False.
2022-06-13 13:07:48 +10:00