1
0
Fork 0
Commit graph

132 commits

Author SHA1 Message Date
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
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
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
58e8c0b5ec Merge branch 'main' into admin-roles 2022-12-11 11:58:54 -08:00
c314c9b5e3
Adds email config admin view (#2494)
This view lets you see your email configuration and send a test email.
2022-12-11 11:37:09 -08:00
845bd2cc0d Only show themes to sys admin 2022-12-05 17:11:15 -08:00
933cb6440f Creates admin views for owner and admin registration settings 2022-12-05 16:58:11 -08:00
7c7c0e1a93 Admin UI to enable and disable importing 2022-11-17 14:23:39 -08:00
2dad14bdcf
Merge pull request #2395 from bookwyrm-social/settings-view-perms
Fixes permissions on settings invite request page
2022-11-16 18:33:20 -08:00
a546ab578b Fixes decorator on view method 2022-11-16 18:23:26 -08:00
5a7afe45a2 Fixes permissions on settings invite request page 2022-11-16 18:03:52 -08:00
f95729a0c3 Adds unit test for failing view 2022-11-15 21:45:06 -08:00
9e0867af91 Make the import admin table sortable 2022-11-07 11:32:45 -08:00
817047bdeb Use stop functionality in import admin view 2022-11-05 15:44:00 -07:00
40e9428b49 Adds more fields to import admin table and ticks version 2022-11-03 11:30:43 -07:00
a8424f61f2 Mark imports as complete
This will let the user debug the import, and should only be used when
the import is in a bad state (marked as incomplete but with no pending
tasks)
2022-11-01 19:26:23 -07:00
6eab1fdd6d Adds import admin view 2022-11-01 19:05:51 -07:00
61c2d2a36a Use elided page range on user admin view 2022-11-01 18:45:21 -07:00