Mouse Reeve
2b3daa0227
disable some warnings
2020-12-12 18:13:00 -08:00
Mouse Reeve
1e01e76ac2
removes unneeded imports
2020-12-12 18:06:48 -08:00
Mouse Reeve
aacf5b7ba4
fields for content warnings
2020-12-12 18:00:39 -08:00
Mouse Reeve
9b7f0366e7
Adds site settings to initdb
2020-12-12 16:01:43 -08:00
Mouse Reeve
e58ef83f20
Fixes image fields breaking user import
2020-12-12 15:44:17 -08:00
Mouse Reeve
37aaaa97b2
Catch http erros for remote_id
2020-12-12 15:33:07 -08:00
Mouse Reeve
cb28c19abc
Use get_data in resolving remote id
2020-12-12 15:19:57 -08:00
Mouse Reeve
49979fabef
More user serialization tests
2020-12-12 15:00:20 -08:00
Mouse Reeve
eb28708230
Reverts site settings to correct state
...
this was just changed to debug tests
2020-12-12 14:33:51 -08:00
Mouse Reeve
e7f400533e
Fixes missing book and user objects
2020-12-12 14:15:10 -08:00
Mouse Reeve
4ed713662e
Fixes skipping refresh on matched object
2020-12-12 13:59:44 -08:00
Mouse Reeve
804066c523
a couple more assertions for testing fk field
2020-12-12 13:47:51 -08:00
Mouse Reeve
7c43fa1f7c
Adds deduplication fields
2020-12-12 13:39:55 -08:00
Mouse Reeve
31a407d74a
Use name field only for author name
...
It feels janky to remove a more granular name designation, but all these
first/last name fields were algorithmically populated by a dubious
process of splitting the name by a space character. If it makes sense to
have first/last name fields, it should be re-added with some
consideration.
2020-12-12 09:53:21 -08:00
Mouse Reeve
5cf9e24ae5
Fixes name import in openlibrary
2020-12-12 09:43:07 -08:00
Mouse Reeve
a176c6cd35
Creates merge migration
2020-12-12 09:38:05 -08:00
Mouse Reeve
801b6c3a77
Merge branch 'main' into follow-remote-ids
2020-12-12 09:34:54 -08:00
Mouse Reeve
733e0e19ac
Don't show boost and original status in timeline
...
Fixes #381
2020-12-11 17:39:17 -08:00
Mouse Reeve
716068474e
Merge branch 'main' into switch-edition
2020-12-11 16:59:59 -08:00
Mouse Reeve
2d7f8ada61
Functional switch editions button
2020-12-11 16:57:38 -08:00
Mouse Reeve
72eb94315a
Adds shelf info to book page
...
- includes change shelf button
- WIP button for switching to the current edition
2020-12-11 16:40:48 -08:00
Mouse Reeve
e2bc751ee4
Merge pull request #380 from mouse-reeve/site-settings
...
Site settings
2020-12-11 12:50:21 -08:00
Mouse Reeve
117d243577
Expand site settings and add footer
2020-12-11 12:31:02 -08:00
Mouse Reeve
b33ea40da2
Use context processor to include site settings in templates
2020-12-11 12:07:37 -08:00
Mouse Reeve
adbc8c3f4c
Preview statuses in notifications
...
Fixes #363
2020-12-11 11:26:34 -08:00
Mouse Reeve
7204068d2a
Removes unnecessary override of field_from_activity on foreign key
2020-12-09 13:35:36 -08:00
Mouse Reeve
6b9db97ab8
tests set_related_field
2020-12-09 13:11:42 -08:00
Mouse Reeve
ef2a07884f
Throws validation error when remote_id is None
2020-12-09 11:57:29 -08:00
Mouse Reeve
cc42e9d149
Asyncronously set related fields
2020-12-08 09:43:12 -08:00
Mouse Reeve
4d4ee8b8c3
Starts getting reverse fields working for deserialization
...
also fixes the fields on the image model and runs a long overdue
migration
2020-12-07 18:28:42 -08:00
Mouse Reeve
d0c1a68df6
Patches celery call in field tests and fixes tag field
2020-12-07 13:39:05 -08:00
Mouse Reeve
0a576c325c
Fixes deserializing tags of varied types
2020-12-07 13:16:42 -08:00
Mouse Reeve
6817babf3c
adds some tests for to_model
2020-12-07 12:19:15 -08:00
Mouse Reeve
f61fcb1261
Adds tests for resolve_remote_id
2020-12-07 10:46:41 -08:00
Mouse Reeve
74ac8d60f8
Starts adding tests for base_activity
...
includes init and find_existing_by_remote_id
2020-12-07 10:32:31 -08:00
Mouse Reeve
4599df752d
Adds tests for many to many field deserialization
2020-12-07 09:31:12 -08:00
Mouse Reeve
69bb3f2751
Fixes validation error in many to many field deserializer
2020-12-07 09:14:30 -08:00
Mouse Reeve
7a90aa8f6c
Start moving serializing from to_model to fields
2020-12-05 21:33:48 -08:00
Mouse Reeve
8500a7cfe1
Unit test fails in CI but not local
2020-12-05 15:38:12 -08:00
Mouse Reeve
ef1558628f
Fixes transient failure in image field test
2020-12-05 14:48:47 -08:00
Mouse Reeve
05cde33a0c
Adds tests for remaining nontrivial model fields
2020-12-05 14:42:54 -08:00
Mouse Reeve
8a900689d3
Generalizes link format in many to many field
2020-12-04 17:57:14 -08:00
Mouse Reeve
f116ce378d
Fixes foreign key test
2020-12-04 17:42:41 -08:00
Mouse Reeve
aa6e312cfb
Starts adding tests for custom model fields
2020-12-04 17:38:39 -08:00
Mouse Reeve
142a39cf55
Updates remote user when refreshing key
2020-12-04 16:26:07 -08:00
Mouse Reeve
9c9da35d9a
Tests base_model to_activity
2020-12-04 15:14:26 -08:00
Mouse Reeve
800ddf2a6b
fixes inconsistency in to_undo activity helper
2020-12-04 11:53:50 -08:00
Mouse Reeve
39307ce1cd
Fixes remote_id on Update activities
2020-12-04 11:48:34 -08:00
Mouse Reeve
2e4aff90a3
Fixes signing Create activities
...
and some tests for the base_model
2020-12-04 11:29:38 -08:00
Mouse Reeve
9989641f4c
fixes bug in update user public key
2020-12-04 09:46:40 -08:00
Mouse Reeve
1ae3830ae4
Removes test state of signatures
2020-12-04 08:42:34 -08:00
Mouse Reeve
de6147ecfa
Ignore many to many activitypub serialization of non-lists
2020-12-04 08:29:54 -08:00
Mouse Reeve
ae8d0e1974
Adds sort order for outbox
2020-12-04 08:07:47 -08:00
Mouse Reeve
d92fb53333
Handle absent remote ids
...
it oughtent get to this state, but...
2020-12-03 17:23:08 -08:00
Mouse Reeve
646ced80ce
Test fixes
2020-12-03 17:18:23 -08:00
Mouse Reeve
bbbfbe721e
Removes update user test
2020-12-03 16:23:13 -08:00
Mouse Reeve
27c45c0584
Catch json decode error in loading data
2020-12-03 13:42:02 -08:00
Mouse Reeve
b1640c5dc9
Sets mocks up for incoming tests
2020-12-03 13:35:51 -08:00
Mouse Reeve
9c6db1cc0e
Updates connector tests
2020-12-03 13:22:50 -08:00
Mouse Reeve
de7e64932a
Fixes name of book field on status
2020-12-03 13:15:05 -08:00
Mouse Reeve
3a75127301
Removes half-baked field serializers
2020-12-03 13:00:04 -08:00
Mouse Reeve
e87236d78f
Remove unnecessary user create action
2020-12-03 12:57:44 -08:00
Mouse Reeve
6d137ccada
mock celery task in test signing
2020-12-03 12:50:21 -08:00
Mouse Reeve
77a1fc26f1
Save key pair when creating new User
2020-12-03 12:45:01 -08:00
Mouse Reeve
a85043b351
Updates to_model to use fields
2020-12-03 12:35:57 -08:00
Mouse Reeve
8fb8e93e37
Merge pull request #375 from mouse-reeve/username-regex
...
Allow usernames with dots
2020-12-02 15:27:03 -08:00
Mouse Reeve
2cf73188f2
fixes localname regex
2020-12-02 15:24:43 -08:00
Mouse Reeve
b5e92fe65e
Allow usernames with dots
2020-12-02 15:21:15 -08:00
Mouse Reeve
d7e9a00cf1
Fixes password reset flow
2020-12-02 15:19:29 -08:00
Mouse Reeve
1610d81ce6
fixes some of the signing test issues
2020-11-30 19:53:42 -08:00
Mouse Reeve
fee5846aa8
Fixes generating new key paris for user
...
and the broadcast test
2020-11-30 19:33:50 -08:00
Mouse Reeve
eb6206252d
cleans up ordered collection mixin
2020-11-30 19:24:31 -08:00
Mouse Reeve
1ec2f20486
avoid naming clash is to_activity for field vs model
2020-11-30 14:54:45 -08:00
Mouse Reeve
77aead722d
serialize book and author models
2020-11-30 14:40:26 -08:00
Mouse Reeve
3966c84e08
Updates status model and serializer
2020-11-30 14:24:31 -08:00
Mouse Reeve
8bc0a57bd4
Remove outdated user fields
2020-11-30 11:40:04 -08:00
Mouse Reeve
74a58e5267
Use custom model fields in user model
2020-11-30 10:32:29 -08:00
Mouse Reeve
96563598bf
mock celery tasks for broadcast tests
2020-11-29 10:13:30 -08:00
Mouse Reeve
205fa0d465
set user's remote server in a celery task
2020-11-29 10:08:19 -08:00
Mouse Reeve
9ddd60ce16
Fixes broadcast tests
2020-11-29 09:40:15 -08:00
Mouse Reeve
e9be31e9c1
merge migrations
2020-11-28 19:06:40 -08:00
Mouse Reeve
d8fdc66450
removes outdated update book code
2020-11-28 19:03:37 -08:00
Mouse Reeve
c9433a3c7e
Simplify bookwyrm connector abstract
2020-11-28 18:56:28 -08:00
Mouse Reeve
9d84346d3c
remove need for get_or_create_book
2020-11-28 18:46:50 -08:00
Mouse Reeve
34e8fb3e5c
style fix and removing stray print statement
2020-11-28 18:28:09 -08:00
Mouse Reeve
1789b091d6
not all that better way to distinguish add book to shelf vs tag
2020-11-28 18:23:34 -08:00
Mouse Reeve
b4fe9f160f
Correctly look up books by remote/origin id
2020-11-28 18:11:52 -08:00
Mouse Reeve
dfd730757d
handle unset default editions
2020-11-28 17:42:09 -08:00
Mouse Reeve
72c7829bab
Preserve remote_id syntax for authors and books
2020-11-28 17:29:03 -08:00
Mouse Reeve
7ed2e310c0
User origin ids for books and authors
2020-11-28 13:40:09 -08:00
Mouse Reeve
1483b0b62c
Merge branch 'main' into follow-remote-ids
2020-11-28 13:14:53 -08:00
Mouse Reeve
0a8ef98854
use localized remote_ids for books
2020-11-28 13:14:18 -08:00
Mouse Reeve
421a13fda0
automatically load authors and editions
2020-11-28 13:00:04 -08:00
Mouse Reeve
e99394e6f7
User serializer to create follow request
2020-11-28 12:25:53 -08:00
Mouse Reeve
76ce20a5e0
Fixes tests
2020-11-28 11:52:00 -08:00
Mouse Reeve
b0202eb8e8
Remove special remote user handling code
...
also fixes date parsing
2020-11-28 11:48:17 -08:00
Mouse Reeve
fd7e476c9b
refactors tag model to fit ordered collection structure
2020-11-28 11:04:54 -08:00
Mouse Reeve
a93b5cf5bc
Use remote_id resolver to load books, user
2020-11-28 10:18:24 -08:00
Mouse Reeve
e0fec9f570
fixes incorrect decorators
2020-11-28 09:17:24 -08:00
Mouse Reeve
81bdd2b3f1
Merge branch 'main' into follow-remote-ids
2020-11-28 08:40:37 -08:00