1
0
Fork 0
Commit graph

147 commits

Author SHA1 Message Date
518da3b9cf Merge from main into 'user-export'
Conflicts:
	bookwyrm/models/bookwyrm_export_job.py
	requirements.txt
2024-03-18 14:47:34 -03: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
3675a4cf3f
disable user exports if using azure 2024-01-29 14:28:30 +11: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
193a1c7d54 updates wording and fixes get or create logic 2024-01-02 13:28:25 -08:00
8be9e91d21 Re-use schedules rather than creating new ones 2024-01-02 13:18:26 -08:00
f36af42f41 Adds view to see scheduled tasks 2024-01-02 13:05:44 -08:00
5509941aa4 Adds schedule-able task to check for version updates 2024-01-02 13:05:26 -08:00
d6f7f76c4d Removes outdated/unused version and updating code
I had the bright idea of creating this update script but it doesn't work
and hasn't been maintained, so it's just sitting there causing confusing
and requiring weird things to exist in other places.

Now, the unused `version` field can be removed and I can scrap the
management command for getting versions.
2024-01-02 11:37:01 -08:00
0276c15948
Merge branch 'main' into user-migration 2023-11-22 21:00:04 +11:00
d828ba0bc6 Give admins option to test if a theme loads correctly
If a theme is uploaded incorrectly or has errors in it, users can still
select the theme but it will cause a 500 error on every page, making the
app unusable and also making it impossible for them to switch to a
functional theme.

A better fix would be to fail gracefully, but in lieu of that, this will
at least let admins confirm if a theme is broken safely.
2023-11-20 09:56:51 -08:00
67822d3cb0
Merge branch 'main' into user-migration 2023-11-05 06:52:48 -08:00
d2b2cc0521
make options consistent in celery
- changes 'broadcasts' to 'broadcast' in Celery page in admin section
- re-orders celery queues on admin page to be in English alphabetical order (other than priority levels) - this makes them consistent with the Flower interface
- fixes #3066
2023-10-29 11:55:06 +11:00
c0a5e55f7f
Merge branch 'user-migration' into user-migrate 2023-10-22 15:38:06 +11:00
b34a491172
run black 2023-10-22 15:34:25 +11:00
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
b0601a0958 Makes deleting announcements only work via POST 2023-09-01 16:59:56 -07:00
a166af9990
Merge branch 'main' into report-actions 2023-08-06 16:00:59 -07:00
3e78e398c0 Switch from priority queues to function-based queues
Fixes: #2907
2023-07-20 12:25:30 -04:00
d56b9f14a2 Handles changing user perms from report 2023-07-16 06:36:32 -07:00
affaf3d0ba Fixes tests and incorrect class method reference 2023-05-22 06:39:23 -07:00
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
912e92bacd Show all (not just open) reports when linked from user admin 2023-05-07 09:50:24 -07:00
7bd9623b68
Revert "Increase Celery ping timeout for monitoring page" 2023-04-25 18:24:23 -07:00
d033848d3f
Merge pull request #2780 from jsoref/spelling
Spelling
2023-04-07 06:30:16 -07:00
5895524a25
Merge pull request #2787 from WesleyAC/celery-clear-queues-form
Add form to remove tasks from Celery
2023-04-07 06:17:50 -07:00
3709f5c7a9 Increase Celery ping timeout for monitoring page
This should prevent some transient alerts.
2023-04-07 03:18:43 -04:00
6986fc9025 Add form to remove tasks from Celery 2023-04-07 03:16:14 -04:00
Josh Soref
cfe388896b spelling: dashboard
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
05e154f93e Uses referer redirect for some admin views 2023-03-20 13:58:20 -07:00
4af4f30cde Broaden except section for HTTP request in dashboard
get_data can return exceptions other than ConnectorException, and when
it does, we want to simply not show the update section, rather than
crashing.

Related: #2717
2023-03-08 21:32:41 -05:00
b167364c5c Use a separate queue for broadcasts
I think this will go a long way to solve the federation delay problems
we're seeing on b.s. I'm not sure at what point adding more queues will
create more problems than it solves, but I do think in this case the
queues are out of balance and moving broadcasts (which are the most
common type of `medium_priority` task at the moment) to their own queue
will be an improvement.
2023-02-20 12:58:41 -08:00
2c2daf5fdf
Merge pull request #2644 from rrgeorge/rrgeorge/csp
Add Content-Security-Policy headers and secure cookies
2023-02-10 16:37:39 -08:00
Christof Dorner
f9a916db09
Merge pull request #2639 from bookwyrm-social/celery-ping
Celery ping
2023-02-03 09:40:25 +01:00
fd59fea94e
Update bookwyrm/views/admin/celery_status.py
Co-authored-by: Christof Dorner <christof@chdorner.com>
2023-02-02 16:46:36 -08:00
Robert George
6b97702cc4 Fix long line 2023-02-01 13:19:57 -08:00
Robert George
36605efd20 Added support for secure cookies and django-csp 2023-02-01 12:59:10 -08:00
c1090703e2 Adds a ping-able celery url
This will let admins set up a check to notify you if celery is not
running.
2023-01-30 08:27:40 -08:00
Dustin Steiner
952dd0dcdf
style: fix unused parameter linter error 2023-01-28 08:31:41 +00:00
Dustin Steiner
54aea0654a
style: run linter 2023-01-27 15:47:22 +00:00
Dustin Steiner
07f4300176
feat: button in admin view to manually activate pending user 2023-01-27 15:43:34 +00:00
ef48149844 Show import queue in Celery admin 2023-01-26 07:52:37 -08:00
e55e4429b1
Merge pull request #2604 from rrgeorge/redis-sockets
Add support to connecting to redis via unix socket
2023-01-26 06:39:15 -08:00
0594152f47
Merge pull request #2511 from Giebisch/import-limit
Added Import Limit
2023-01-19 11:16:58 -08:00
Alexander Ward
1f50a2dbfc
Email Config Has a Typo
There's an errant capital "E" preventing the SMTP user from appearing on the settings page.
2023-01-16 15:47:24 -08:00
Robert George
207abed654 Add support for specifying redis url to support unix sockets 2023-01-14 14:52:54 -08:00
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
3e62cbe8b6 Fixes incorrect import from merge 2022-12-11 12:39:33 -08:00