Marnanel Thurman
368814cd9c
Migration to add f_ prefixes in Actor. Should have been in 8aa62d5a
.
2019-07-18 14:31:06 +01:00
Marnanel Thurman
a5eba85fea
Rename validate()'s "is_local" to "is_local_user", and store it in the model.
...
This is because "is_local" is ambiguous; was the message received
locally (not over the network), or was the user a local user?
2019-07-18 14:23:43 +01:00
Marnanel Thurman
18565c6afe
Huge checkin: central project "kepi" to use the "django_kepi" library.
...
This has shown up some bugs. Checking in the fixes for them too.
2019-07-11 18:25:06 +01:00
Marnanel Thurman
11b187c71f
"preferredUsername" is now held in Actor as a field.
...
Actor can figure out standard paths for local users.
Constants for these added to test_settings.
2019-07-11 17:23:19 +01:00
Marnanel Thurman
f1c5b28282
Mention uses a CharField for the href, because we might not know them.
...
Actor.by_id() removed, since it's just find_local().
2019-07-09 11:04:00 +01:00
Marnanel Thurman
59d76c5cf1
f_attributedTo added to item
2019-07-09 00:45:17 +01:00
Marnanel Thurman
d80a241b5d
Added mention tracking.
2019-07-05 17:21:01 +01:00
Marnanel Thurman
87f015eea5
Switching back to the old "other_fields" system
...
because it works much better with polymorphic models.
2019-07-03 00:48:58 +01:00
Marnanel Thurman
ca7b295a3d
Old migrations deleted
...
(should have been committed earlier; oops)
2019-06-29 16:42:23 +01:00
Marnanel Thurman
98520cd0ad
create() produces instances of subtypes of Thing as appropriate.
2019-06-29 16:40:47 +01:00
Marnanel Thurman
ca332a3396
Move to django-polymorphic. Everything gets simpler. Still cleaning up.
2019-06-27 17:19:02 +01:00
Marnanel Thurman
51b8d7f347
new Audience model, plus tests. Not yet linked in to Thing.
2019-06-05 00:07:05 +01:00
Marnanel Thurman
1b0b08d8ec
Add the Actor model
2019-05-27 21:17:13 +01:00
Marnanel Thurman
5699007838
redo kepi's migrations, since they got tangled
2019-05-25 18:13:52 +01:00
Marnanel Thurman
52f3a50444
validation goes back in django_kepi.validate
2019-05-24 20:31:51 +01:00
Marnanel Thurman
465ecbbd89
Restarting with d_k migrations because it got itself tied in knots.
2019-05-22 02:10:30 +01:00
Marnanel Thurman
852dd08678
Put the "name" field into Thing, as "f_name".
...
This means error messages can display an understandable name for a Thing.
It also makes queries a bit easier.
2019-05-19 20:56:41 +01:00
Marnanel Thurman
ba4e6099f8
forgot to commit migration!
2019-05-18 21:34:48 +01:00
Marnanel Thurman
920d1995db
Merge ActivityModel into Thing.
...
Add create() to __init__.py
2019-05-18 18:36:29 +01:00
Marnanel Thurman
3ef67c997e
Starting to move models into their own package, django_kepi.models.
2019-05-18 17:45:43 +01:00
Marnanel Thurman
53be3e3efc
Renaming django_kepi.Activity to django_kepi.Thing, preparatory to
...
merging it with d_k.ActivityModel.
2019-05-18 17:41:55 +01:00
Marnanel Thurman
a4e9714a15
Now keeping the extra fields of an Activity object in a separate model, ActivityField.
2019-05-17 00:11:58 +01:00
Marnanel Thurman
24055428fb
types are stored as the type name, not a code for the type name
2019-05-16 20:52:37 +01:00
Marnanel Thurman
6c23310c0b
Finished moving extra fields to the "other_fields" field
2019-05-11 21:17:12 +01:00
Marnanel Thurman
ea6197e5e4
moving a lot of the fields of Activity into a TextField called
...
"other_fields". Not fully tested yet.
2019-05-11 20:37:04 +01:00
Marnanel Thurman
84eaba4e02
Regularised the use of local URLs as local identifiers (via our
...
own dispatcher).
Local "find" tests now pass. Remote "find" tests don't pass yet.
2019-05-03 20:24:55 +01:00
Marnanel Thurman
171d9b51d3
Partial checkin. Still busy on this.
2019-04-28 21:17:10 +01:00
Marnanel Thurman
e73a34f10b
Partial checkin. Trying to generate the Create activity automatically when a Note (etc) is saved.
2019-04-25 01:13:10 +01:00
Marnanel Thurman
696192daaa
CachedPublicKey renamed to CachedRemoteUser; its pk is the owner URL
...
and it gains the "inbox" and "outbox" user URLs.
2019-04-18 19:32:55 +01:00
Marnanel Thurman
c7564aabd6
First steps on getting test_inbox to pass.
...
IncomingMessage.waiting_for can be null.
d_k.views creates its own logger.
2019-04-10 20:43:37 +01:00
Marnanel Thurman
fb4bbe2c49
"actor" and "key_id" are now properties of CachedPublicKey, rather than methods.
2019-04-10 20:10:46 +01:00
Marnanel Thurman
35be80864c
Tests for incoming initial message validation all written and passing.
...
Still need to write tests for validation of incoming messages where
the key has had to be fetched by a batch process.
2019-04-10 17:41:46 +01:00
Marnanel Thurman
0e7c89a03a
Bringing the new validation system into models. Many more tests needed.
2019-04-07 21:39:11 +01:00
Marnanel Thurman
0d59ebbc58
The contents of a CachedText can be None by default. Tests added.
2019-02-16 20:24:43 +00:00
Marnanel Thurman
27b64f8e4e
CachedText model added, with simple test
2019-02-16 20:05:14 +00:00
Marnanel Thurman
63a6d16eed
Tests for the "something" model (which has a daft name, which should be changed).
2018-10-29 14:28:13 +00:00
Marnanel Thurman
fa193e5bd7
intermediate checkin
2018-10-29 13:43:12 +00:00
Marnanel Thurman
a813e7972a
nuke all migrations and start again
2018-10-14 02:09:14 +01:00
Marnanel Thurman
6350ebe886
QuarantinedMessageNeeds are unique per (message, URL)
2018-09-23 23:57:09 +01:00
Marnanel Thurman
333c8590c7
enable celery
2018-09-23 21:59:13 +01:00
Marnanel Thurman
cb5f115e45
Add "accepted" flag to Activity, which is a special case for Follows. Seems a bit hacky, though.
...
f_type becomes a CharField, because it was a URLField, which is blatantly wrong.
Activity now has the relevant properties to make it able to consider itself as an object type.
2018-09-18 23:10:58 +01:00
Marnanel Thurman
2b29a8e8e2
Removed all the old Cobject stuff, at last. This confused
...
makemigrations so much that I killed all the existing migrations
and started again.
Activity fields representing key+value pairs all begin with "f_"
because it was getting confusing when only some of them did.
Activity.deserialize() renamed Activity.create().
The tests don't all pass at present, but they will soon.
2018-09-16 21:42:27 +01:00
Marnanel Thurman
75eb3d6764
QuarantinedMessage, and an InboxView to create them
2018-09-13 16:06:33 +01:00
Marnanel Thurman
2325fe86c4
some migrations which should have been committed!
2018-09-12 02:51:16 +01:00
Marnanel Thurman
553c3d8d3d
Okay, the NamedObject table was a mistake. Let's use the existing registration system.
2018-09-06 23:01:18 +01:00
Marnanel Thurman
928934eab2
First steps with the resolver
2018-09-06 20:00:39 +01:00
Marnanel Thurman
a98d508cd3
oops, forgot migration
2018-08-30 19:59:48 +01:00
Marnanel Thurman
dd8daa7f66
Added tests to ensure that other apps can make to our data.
...
Reworked Actor: the only thing we know about an Actor is their URL.
Removed tests for Followers collections because it's hard to test
without subclassing the view. I may put it back in later.
2018-08-30 00:59:38 +01:00
Marnanel Thurman
d54103b3a5
RequestingAccess model
2018-08-28 14:22:45 +01:00
Marnanel Thurman
4d9dd5227d
Foreign keys of Blocking have the correct names, and not Following's names!
2018-08-28 14:05:13 +01:00