Commit graph

72 commits

Author SHA1 Message Date
Joachim f0dc146005 Merge branch 'main' into disable-remote-users-preview-images 2022-12-19 22:32:30 +01:00
Christof Dorner f5ebdd4ba1 Add compile_themes management command 2022-12-19 18:43:16 +01:00
Joachim 00c2930290 Black 2022-12-17 17:56:28 +01:00
Joachim b570602a47 Update remove_remote_user_preview_images.py 2022-12-17 17:35:44 +01:00
Joachim 09c095cfec Add remove_remote_user_preview_images command 2022-12-17 17:34:27 +01:00
Mouse Reeve 3a9a344089
Merge pull request #2478 from bookwyrm-social/admin-roles
Adds "owner" role
2022-12-11 13:05:39 -08:00
Jascha Urbach ea316627be
Manual email confirm (#2492)
* manual approve email via bw-dev/manage.py

./bw-dev confirm_email USER
(venv) python manage.py confirm_email USER

* add "confirm_email" and "remove_2fa" to autocompletion

* OK, sometimes I feel fooled by this.

The lione was not LONG ENOUGH.

* Change deactivate reason to None

* Whyever this works now

Python in my system is a wondermachine.
2022-12-11 12:35:20 -08:00
Mouse Reeve f779c57f33 Safely get or create permissions for tests/re-running 2022-12-06 14:25:50 -08:00
Mouse Reeve 9b087199ed Adds new role and permissions 2022-12-05 16:07:09 -08:00
Jascha Urbach 8a99482a2f
correct linter errors
./bw-dev black

reformatted bookwyrm/management/commands/remove_2fa.py

All done!  🍰 
1 file reformatted, 544 files left unchanged.
2022-11-15 23:32:24 +01:00
Jascha Urbach cd57537854
Remove TFA from user
added bookwyrm/management/remove_2fa.py

changed bw-dev
2022-11-15 23:20:21 +01:00
Mouse Reeve b812a5c73e Adds management command to revoke preview image tasks 2022-11-14 12:09:16 -08:00
Joel Bradshaw 7f5d47a36f Use values_list with flat, yay! 2022-06-07 23:15:34 -07:00
Mouse Reeve 3aa159bc89
Merge branch 'main' into preview-generation-memory 2022-06-05 18:39:59 -07:00
Joel Bradshaw b744ff7836 Run black 2022-06-05 13:40:01 -07:00
Joel Bradshaw 482005f304 Update preview image generation to only query ids
Previously we were querying the full book objects just to get a list of
id's, which is much slower and also takes a lot more memory, which can
cause the process to be killed on memory-limited machines with a large
number of books.

Instead, since we're just dispatching jobs here, we can just ask for the
id's, which is faster and much more practical memory-wise.

The map is a little annoying, I didn't see a way to directly get just a
list of the value of one field, so we have to get a list of
dictionairies with one key and then pull that key out. Whatevs.
2022-06-05 13:07:44 -07:00
Mouse Reeve 5e99002aad Raise priority for external connectors in initdb
By default, OpenLibrary and Inventaire were prioritzed below other
BookWyrm nodes. In practice, people have gotten better search results
from these connectors, hence the change. With the search refactor, this
has much less impact, but it will show these search results higher in
the list.

If the results page shows all the connectors' results integrated, this
field should be removed entirely.
2022-05-31 08:25:02 -07:00
Mouse Reeve 4c09477aa2
Improves instance list admin view (#2068)
* Removes irrelevent initial federated server data

* Adds secondary search order to instance list

* Show last updated date

* Adds filters to federated server view

* Updates unit tests
2022-04-02 09:16:07 -07:00
Mouse Reeve 820279166a Adds update script 2022-03-16 12:39:49 -07:00
Mouse Reeve bf75dff338 Contextualize admin code command output 2022-02-17 11:53:29 -08:00
Mouse Reeve 637f7c9cb9 Initialize site settings in install mode 2022-02-17 11:51:48 -08:00
Mouse Reeve 63558bb75e Python formatting 2022-02-17 11:31:52 -08:00
Mouse Reeve ed536e6b41 Adds command to get admin code 2022-02-17 10:59:28 -08:00
Mouse Reeve 7811a9920e Copy config from prod branch to main 2022-02-04 18:36:12 -08:00
Mouse Reeve ba18e1e34b Adds tests for initdb command 2022-01-27 13:23:29 -08:00
Joel Bradshaw 7373fb4132
Fix typo from models refactor
Looks like this got caught up when moving to importing `models`
instead of the individual models, and was throwing an error on
`./bw-dev initdb`
2022-01-23 23:41:22 -08:00
Mouse Reeve 67c3091aa1 Fixes option checking in initdb management command 2022-01-22 15:09:30 -08:00
Mouse Reeve 0c2537e27a
Merge pull request #1527 from bookwyrm-social/book-file-links
Book file links
2022-01-13 11:10:05 -08:00
Jade Meskill 900937ee5f
use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
Jade Meskill 5a3d108c62
update fomatting to pass automated checks 2022-01-12 22:46:51 -07:00
Jade Meskill 3638e18844
add support for different redis db 2022-01-12 19:44:11 -07:00
Mouse Reeve 93fead47ef Reformats init command and adds Standard EBooks 2022-01-10 13:13:28 -08:00
Mouse Reeve dcf51020bc Removes initialization from migration
Just doesn't seem right
2022-01-10 13:05:08 -08:00
Mouse Reeve d610115a5b Null state for links 2022-01-10 12:09:03 -08:00
Joachim 4c07c5e47e Add end message for populate_list_streams command 2022-01-09 12:11:52 +01:00
Mouse Reeve 2640c26bb1 Fixes wording in comments 2021-12-29 17:39:14 -08:00
Mouse Reeve f7c8a550cf Fixes references to populate lists task 2021-12-10 09:34:17 -08:00
Mouse Reeve 903aaaf4c4 Adds management and bw-dev commands 2021-11-16 10:41:08 -08:00
Mouse Reeve 1033d3d045 Updates connector tests 2021-09-30 11:33:04 -07:00
Mouse Reeve 1f06d1a1d8 Removes local connector 2021-09-14 15:26:36 -07:00
Mouse Reeve 590338138c Populate streams tasks 2021-08-07 17:44:40 -07:00
Mouse Reeve 760bd5a63f Fixes reference to landing page books 2021-08-07 15:10:53 -07:00
Mouse Reeve c00b35dc7c Stray file 2021-08-02 17:55:17 -07:00
Mouse Reeve 5b6048e4c6 Merge branch 'main' into suggestions-redis 2021-06-18 16:48:04 -07:00
Mouse Reeve 59938e2d46 Linter fixes for models 2021-06-18 15:24:10 -07:00
Mouse Reeve d8d6f57373 Linting fixes for preview image code 2021-06-18 15:08:36 -07:00
Joachim 08cebd7051 Lint 2021-05-28 17:26:43 +02:00
Joachim 61367c3f4f Protect generate_preview_images command
- add `--all` argument
- send computation intensive tasks to Celery
2021-05-28 17:25:20 +02:00
Joachim eb56cced8d Lint 2021-05-26 14:46:34 +02:00
Joachim 65de40a95a Add generate_preview_images command 2021-05-26 13:52:10 +02:00