Wykres commitów

81 Commity (ee070e6992e5470360ab5e748f7a353ee6e0f717)

Autor SHA1 Wiadomość Data
Marnanel Thurman 105b9fd5eb KepiView can take an activity_store request (which I just made up)
ActorView split out from ThingView.

"name" field in URLs renamed to "username".
2019-07-30 19:14:29 +01:00
Marnanel Thurman 8bb5feff89 USER_URL_FORMAT user name field is "username" to disambiguate from collection name
inbox and outbox views are special cases of collection views
2019-07-30 16:23:29 +01:00
Marnanel Thurman 5f5afa1978 Collection views contain the activity_forms of the members, not just the ids 2019-07-26 17:53:01 +01:00
Marnanel Thurman 8348be5f56 Added Collection model, and modified the collection views to display it.
Tests in test_inbox2 use it, but this is a work in progress.
2019-07-26 17:47:44 +01:00
Marnanel Thurman a412f6cbc1 InboxView fixed up to match OutboxView 2019-07-25 17:17:40 +01:00
Marnanel Thurman d278a8d69e Put an import back which somehow got deleted and broke stuff 2019-07-22 14:16:04 +01:00
Marnanel Thurman b4f4a164cf Test for posting non-activities to outbox. Currently fails. 2019-07-20 23:35:52 +01:00
Marnanel Thurman 5c5a9b7017 Tests for posting to outbox with incorrect IDs both local and remote.
They pass.
2019-07-20 23:26:46 +01:00
Marnanel Thurman 609be9b810 f_preferredUsername is stored in JSON 2019-07-19 22:12:39 +01:00
Marnanel Thurman 5a02c8c93f Outbox passes is_local_user to validate. Debug messages cleaned up a bit. 2019-07-18 14:29:31 +01:00
Marnanel Thurman bf0c673a79 stub OutboxView 2019-07-18 12:16:44 +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 c59228c58f Remove ActorView. Use ThingView instead.
ActorView was based on a (very) old design where Actors were
special-cased.
2019-07-11 17:40:12 +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 7d5b635012 rm confusing debug message 2019-06-08 23:33:21 +01:00
Marnanel Thurman ca144feeae Intermediate checkin; local delivery works a bit better 2019-06-08 23:27:55 +01:00
Marnanel Thurman 2dcc7e043f check for None before checking for type.
Thing and Actor implement __contains__.
2019-06-03 23:02:43 +01:00
Marnanel Thurman 7a57d691df Tombstones. Closes #7. 2019-05-29 12:37:51 +01:00
Marnanel Thurman 1a9e124e57 Thing.create() takes params as params rather than as a dict, like its Django core counterparts. 2019-05-29 11:34:43 +01:00
Marnanel Thurman 47e0a58a22 Body of IncomingMessage is json-encoded, not Python encoded 2019-05-29 10:55:55 +01:00
Marnanel Thurman 572b4e608e Test for invalid UTF-8 2019-05-29 10:36:37 +01:00
Marnanel Thurman d93212320b Malformed JSON gets 400 2019-05-29 10:31:26 +01:00
Marnanel Thurman 2ee4b416a5 Require incoming messages to be application/activity+json or application/json 2019-05-29 10:22:00 +01:00
Marnanel Thurman b6fc2812d5 Improved headers handling in message validation 2019-05-29 09:15:16 +01:00
Marnanel Thurman 38512de494 ActorView is a specialised ThingView 2019-05-28 17:50:32 +01:00
Marnanel Thurman 66355d1acf Call validation properly on inbox messages 2019-05-25 18:16:47 +01:00
Marnanel Thurman c82429f0c2 "activity" returns the found object, not a dictionary based on it 2019-05-25 00:31:09 +01:00
Marnanel Thurman 47dfbb5d1d If a KepiView.activity() returns None, KepiView.get() treats it as a 404 2019-05-22 02:20:13 +01:00
Marnanel Thurman 155843f3c1 it's the logger 2019-05-22 02:17:45 +01:00
Marnanel Thurman 02965beef6 some stray Thing.uuids fixed to Thing.numbers 2019-05-22 02:16:38 +01:00
Marnanel Thurman 978a7d2f15 ThingView can have id or name in kwargs 2019-05-22 00:33:58 +01:00
Marnanel Thurman d9fa99f3b5 fiddling around with imports to get things in the right modules 2019-05-22 00:23:59 +01:00
Marnanel Thurman 3e01e3ba75 AllUsersView 2019-05-21 19:24:22 +01:00
Marnanel Thurman c42d5c8170 Remove AsyncResultView because async tasks access the db directly now. 2019-05-21 19:10:40 +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 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 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 a217f8795d Added the Following class back in. 2019-05-18 21:32:39 +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 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 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 034a803851 Fiddling around trying to get tests/test_views written and passing.
Still a lot to do here!
2019-04-16 01:06:06 +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 bee5d98fad Fix to Inbox to remove use of Quarantine*, which has gone away.
Needs more thorough testing.
2019-04-10 20:11:29 +01:00
Marnanel Thurman 800dcaaf88 abolishing NeedToFetchException because it messes up debugging 2018-10-12 17:45:44 +01:00