Hugh Rundle
85784f07d2
groups templates improvements
...
- require confirmation before removing a member
- require confirmation before removing self
- make button text less verbose
- use more standardised formatting for group editing form
- improve button colours
- add missing trans tags
- reload group page when removing member
2021-10-16 16:43:09 +11:00
Hugh Rundle
1736419538
(hopefully) fix group tests
2021-10-16 16:42:08 +11:00
Hugh Rundle
91534aff82
group view fixes
...
- fix form details not appearing in group member search view
- fix query term appearing in main search box when searching for new members
- direct request user back to the group rather than the user when adding a user to a group
2021-10-16 16:39:50 +11:00
Hugh Rundle
afd00cc67a
improve group removal flow
...
Use .save() twice, but with broadcast=False on the second update. This is more efficient than doing a query and update() and avoids the duplicate AP broadcast.
2021-10-16 16:38:02 +11:00
Hugh Rundle
6f13c0d808
formatting fix
2021-10-16 16:09:03 +11:00
Hugh Rundle
e261bfdb6a
fix local filter for suggested users
2021-10-16 08:20:12 +11:00
Hugh Rundle
864d8cea2b
clean up templates
2021-10-16 08:18:55 +11:00
Hugh Rundle
97ea61dd7e
efficiency improvement to remove_from_group
2021-10-16 08:17:42 +11:00
Hugh Rundle
2f38af4faa
Revert "clean up List db queries"
...
This reverts commit 41f27a4a66
.
I forgot that update() can only be done on a query result, not on an object, so we will need to go back to querying in order to update rather than saving.
2021-10-16 06:59:07 +11:00
Hugh Rundle
1634c8774e
remove useless field in Notifications model
2021-10-15 17:59:39 +11:00
Hugh Rundle
41f27a4a66
clean up List db queries
...
- don't unnecessarily query DB in List views
- use more efficient query in remove_from_group List class method
2021-10-15 17:56:23 +11:00
Hugh Rundle
5d7f77021b
dammit eslint
2021-10-10 14:02:55 +11:00
Hugh Rundle
3d74b10c5f
eslinting
2021-10-10 13:55:18 +11:00
Hugh Rundle
726217577f
linting
2021-10-10 13:18:16 +11:00
Hugh Rundle
14d3158871
add database migrations for Groups
2021-10-10 12:33:51 +11:00
Hugh Rundle
2a78c1221c
style cleanup
...
Even tests must be formatted to please Black...
2021-10-10 12:33:11 +11:00
Hugh Rundle
8ae20928bb
add tests for groups
2021-10-10 12:06:54 +11:00
Hugh Rundle
18735bdd42
use update() to remove orphaned groups on list edit
...
Using add() broadcasts the database change, which is unnecessary potentially broadcast AP messages twice.
2021-10-10 12:04:03 +11:00
Hugh Rundle
d6a5794ac3
do not load list edit form if viewer not authenticated
2021-10-10 12:02:27 +11:00
Hugh Rundle
83f46b6cda
remove print() statement
...
Whoops accidentally left this behind from manual troubleshooting
2021-10-10 12:01:21 +11:00
Hugh Rundle
252ff0d689
emblacken files
...
Wouldn't it be great if I just remembered to run Black before every commit?
2021-10-09 22:15:24 +11:00
Hugh Rundle
b3cc9e5b75
remove user and their lists from group when group.user blocks them
...
Lists are changed to closed curation with no group.
2021-10-09 22:13:12 +11:00
Hugh Rundle
9940abfd81
refactor removing user from group
...
This is in preparation for removing a user and their lists when the group owner blocks them.
Remove the user via models.group
Remove the lists via models.list
2021-10-09 22:11:46 +11:00
Hugh Rundle
1bf5758e01
overide filters for groups and group lists
...
- use more sensible query for displaying groups on user page
- privacy_filter now allows group members to see followers_only and private lists and groups they would otherwise not see
2021-10-09 16:11:11 +11:00
Hugh Rundle
714a369246
only show list edit form to list.user
2021-10-09 16:10:00 +11:00
Hugh Rundle
056150d583
CASCADE group.user
...
Delete groups when group.user is deleted.
2021-10-08 21:21:19 +11:00
Hugh Rundle
39e002ee13
Merge remote-tracking branch 'origin/bookwyrm-groups' into bookwyrm-groups
...
Merge changes from main project into local branch
2021-10-08 18:53:59 +11:00
Hugh Rundle
5a4026cda3
group views tests
2021-10-08 18:47:03 +11:00
Hugh Rundle
05bde27944
remove commented out code
2021-10-08 18:46:30 +11:00
Hugh Rundle
48fc85c761
adjust commenting on js file
2021-10-08 18:45:28 +11:00
Mouse Reeve
4ba3234f6c
Merge branch 'main' into bookwyrm-groups
2021-10-07 17:27:11 -07:00
Mouse Reeve
2ede3c63ec
Merge pull request #1516 from bookwyrm-social/l10n_main
...
New Crowdin updates
2021-10-07 17:25:20 -07:00
Mouse Reeve
5578efe50b
New translations django.po (Oulipo)
2021-10-07 17:04:04 -07:00
Mouse Reeve
dc15feeb57
New translations django.po (Spanish)
2021-10-07 17:04:03 -07:00
Mouse Reeve
b3c441ed06
New translations django.po (Afrikaans)
2021-10-07 17:04:02 -07:00
Mouse Reeve
5a943362d4
New translations django.po (Arabic)
2021-10-07 17:04:01 -07:00
Mouse Reeve
e1d1dc104a
New translations django.po (Catalan)
2021-10-07 17:04:00 -07:00
Mouse Reeve
a645c9cb1a
New translations django.po (Czech)
2021-10-07 17:03:59 -07:00
Mouse Reeve
974cfcff0d
New translations django.po (Danish)
2021-10-07 17:03:58 -07:00
Mouse Reeve
4d27d505f1
New translations django.po (German)
2021-10-07 17:03:57 -07:00
Mouse Reeve
3666e1e7f4
New translations django.po (Greek)
2021-10-07 17:03:56 -07:00
Mouse Reeve
96ab4b22ff
New translations django.po (Finnish)
2021-10-07 17:03:55 -07:00
Mouse Reeve
6a989348cf
New translations django.po (Hebrew)
2021-10-07 17:03:54 -07:00
Mouse Reeve
324b7b98c8
New translations django.po (Hungarian)
2021-10-07 17:03:52 -07:00
Mouse Reeve
3c744ffd2b
New translations django.po (Italian)
2021-10-07 17:03:51 -07:00
Mouse Reeve
25cd9c8f6e
New translations django.po (Japanese)
2021-10-07 17:03:50 -07:00
Mouse Reeve
b89476ba2b
New translations django.po (French)
2021-10-07 17:03:49 -07:00
Mouse Reeve
ab238c51ae
New translations django.po (Korean)
2021-10-07 17:03:48 -07:00
Mouse Reeve
0397892159
New translations django.po (Norwegian)
2021-10-07 17:03:47 -07:00
Mouse Reeve
f068c691ee
New translations django.po (Polish)
2021-10-07 17:03:46 -07:00