Marnanel Thurman
|
c42d5c8170
|
Remove AsyncResultView because async tasks access the db directly now.
|
2019-05-21 19:10:40 +01:00 |
Marnanel Thurman
|
843db7f95b
|
Scaling down things_for_testing
|
2019-05-21 19:07:16 +01:00 |
Marnanel Thurman
|
bee37dc22e
|
Harmonised the f#ormat of user URLs in the collection tests.
|
2019-05-21 19:06:01 +01:00 |
Marnanel Thurman
|
e28641d222
|
Following and follower views pick the correct fields out of the Following object,
and don't list pending requests.
Simplified debug logging.
|
2019-05-21 19:04:36 +01:00 |
Marnanel Thurman
|
da617e9522
|
Side-effects for Follow, Accept, and Reject implemented.
Debug logging simplified somewhat.
|
2019-05-21 19:04:05 +01:00 |
Marnanel Thurman
|
35ae4ba5a8
|
Added request(), accept(), and reject().
Also, Following.__str__() had the "pending" messages backwards.
|
2019-05-21 19:03:07 +01:00 |
Marnanel Thurman
|
d63e66259a
|
Simplified debug logging
|
2019-05-21 19:02:49 +01:00 |
Marnanel Thurman
|
3ab1531f50
|
URL paths for objects go to ThingView, not KepiView (which is the superclass)
|
2019-05-21 18:10:23 +01:00 |
Marnanel Thurman
|
d7453210b0
|
ThingObjectView renamed to ThingView
|
2019-05-21 18:10:12 +01:00 |
Marnanel Thurman
|
1d55d73be8
|
enhance error message
|
2019-05-21 18:05:37 +01:00 |
Marnanel Thurman
|
ef246d94a8
|
Partial commit of Thing.__getitem__
|
2019-05-19 22:16:47 +01:00 |
Marnanel Thurman
|
d6cbe11b1d
|
fix local URL format
|
2019-05-19 22:16:34 +01:00 |
Marnanel Thurman
|
0306ee2abf
|
add remote_only flag
|
2019-05-19 22:16:19 +01:00 |
Marnanel Thurman
|
bcc67c2457
|
export is_local
|
2019-05-19 22:02:03 +01:00 |
Marnanel Thurman
|
a615993695
|
clearer debug messages for object creation
|
2019-05-19 21:23:41 +01:00 |
Marnanel Thurman
|
4fdfb4d68d
|
Persons must be "Person"s, obviously
|
2019-05-19 21:23:19 +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
|
a789aa6064
|
Fixed tests for following/followers collections. They currently fail.
|
2019-05-19 20:44:33 +01:00 |
Marnanel Thurman
|
ba4e6099f8
|
forgot to commit migration!
|
2019-05-18 21:34:48 +01:00 |
Marnanel Thurman
|
91bdfcc447
|
added missing import
|
2019-05-18 21:34:38 +01:00 |
Marnanel Thurman
|
a217f8795d
|
Added the Following class back in.
|
2019-05-18 21:32:39 +01:00 |
Marnanel Thurman
|
9d1fc571ea
|
"local" is no longer an argument to Create. Skipped one test.
|
2019-05-18 19:05:15 +01:00 |
Marnanel Thurman
|
a9749b1ffe
|
If values passed into create() aren't JSON-able, we stringify them.
Fixed one typo.
|
2019-05-18 19:04:29 +01:00 |
Marnanel Thurman
|
1c7ce88808
|
fix typo
|
2019-05-18 18:48:52 +01:00 |
Marnanel Thurman
|
472cbad85e
|
test_collection moving away from the old ActivityModel model.
More remains to do.
|
2019-05-18 18:41:54 +01:00 |
Marnanel Thurman
|
162da57d72
|
Add django_kepi.urls. Include it from test_urls.py.
|
2019-05-18 18:41:10 +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
|
a7a0468326
|
rm _object_to_id_and_type which was left over from an earlier design.
Also rm type name constants which are redundant given the previous commit.
|
2019-05-16 21:03:30 +01:00 |
Marnanel Thurman
|
cdc6e64766
|
Intermediate checkin for task tests
|
2019-05-16 21:02:27 +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
|
40dd00697a
|
Test for KepiView producing an OrderedCollection if there are multiple items.
URL that lists all users changed to "/users" for simplicity.
|
2019-05-14 23:01:18 +01:00 |
Marnanel Thurman
|
ad3670549d
|
Fixed missing param in call to _collection_get()
|
2019-05-14 23:00:44 +01:00 |
Marnanel Thurman
|
deb6075986
|
Merged CollectionView into KepiView.
Split off get() from activity() because get() is usually the
same for all KepiViews.
|
2019-05-14 22:48:18 +01:00 |
Marnanel Thurman
|
356bf8d9f2
|
Added "run_side_effects" param to Activity.create()
|
2019-05-14 22:46:21 +01:00 |
Marnanel Thurman
|
e58dd2b856
|
partial checkin. Started work on local delivery. Tests don't pass.
|
2019-05-13 00:02:31 +01:00 |
Marnanel Thurman
|
d70a6d2f1f
|
Outgoing messages are signed. Tests added, but they need to be more thorough.
|
2019-05-12 20:07:52 +01:00 |
Marnanel Thurman
|
6e8433492a
|
Test for delivery: fetch remote user inboxes and post to them. Signing outgoing messages is still missing.
|
2019-05-11 23:25:52 +01:00 |
Marnanel Thurman
|
8ce0f13fcd
|
First pass at getting delivery working. Partial commit.
|
2019-05-11 21:52:27 +01:00 |
Marnanel Thurman
|
ed982f2254
|
Remove a lot of unused httpretty stuff.
Activity.create() takes a dict.
|
2019-05-11 21:18:48 +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
|
b3e65c8ab6
|
tasks.deliver() -- sketchy implementation
|
2019-05-11 20:34:18 +01:00 |
Marnanel Thurman
|
7599ed4630
|
Merged task tests with validation tests.
This is because validation is now carried out using tasks.
|
2019-05-08 00:32:55 +01:00 |
Marnanel Thurman
|
a92c5fc3c7
|
test_validation() renamed to test_local_lookup(). test_remote_user_known() added.
Old cruft removed.
|
2019-05-06 23:10:54 +01:00 |
Marnanel Thurman
|
e2e7d8fa34
|
Wrap returned remote values, so we're not handing out bare dicts
|
2019-05-06 23:10:13 +01:00 |
Marnanel Thurman
|
18d6c7e83c
|
First part of moving validation entirely to batch processing.
There's still a lot to do.
|
2019-05-06 00:59:19 +01:00 |
Marnanel Thurman
|
e7e572f4bd
|
Remote find works! Hurrah!
|
2019-05-05 03:10:35 +01:00 |