Wykres commitów

150 Commity (dfcc26ff187d13c0864f8b0e7e978762f5b77f0e)

Autor SHA1 Wiadomość Data
Marnanel Thurman dfcc26ff18 turn logging off again 2018-10-06 21:40:52 +01:00
Marnanel Thurman a2d0a72fc2 Sphinx (quickstart) 2018-10-05 20:15:56 +01:00
Marnanel Thurman cfe269f72c intermediate 2018-10-05 00:12:03 +01:00
Marnanel Thurman 3841a009f9 intermediate 2018-10-03 22:43:42 +01:00
Marnanel Thurman ca88429872 Added some logging 2018-10-03 22:35:18 +01:00
Marnanel Thurman 0f840e5c12 Testing for asyncresult 2018-10-03 20:53:45 +01:00
Marnanel Thurman 32ebf1a668 ThingArticle allows remote articles, and activitypub_create() 2018-10-03 20:53:30 +01:00
Marnanel Thurman 5d30ed1af9 rm debug print 2018-10-03 20:53:12 +01:00
Marnanel Thurman dee5586e5e testing migration (should have been added earlier) 2018-10-03 20:47:29 +01:00
Marnanel Thurman ec486e180e various AsyncResult fixes; another intermediate checkin 2018-10-03 20:28:52 +01:00
Marnanel Thurman 1c0971a066 fixed uninitialised variable 2018-10-03 20:27:53 +01:00
Marnanel Thurman e8d217ac44 Added "remote" field to ThingUser so we can track remote users.
Implemented ThingUser.activitypub_create().
2018-10-03 20:26:30 +01:00
Marnanel Thurman ff44834b34 Intermediate checkin for AsyncResult 2018-10-03 19:36:39 +01:00
Marnanel Thurman 7b5408ed4c Sort out model identifiers in things_for_testing 2018-09-27 17:53:25 +01:00
Marnanel Thurman 132932d6c8 okay, turn logging off in tests for now 2018-09-27 17:52:42 +01:00
Marnanel Thurman 937bc04651 Test for "all known" tests for Activity creation as well as QM deletion 2018-09-27 17:36:12 +01:00
Marnanel Thurman cb193f69d7 Some basic logging.
QuarantinedMessages remove themselves when they're accepted as Activities.
2018-09-27 17:35:41 +01:00
Marnanel Thurman e58a303589 Test that messages where all parts are known go through immediately. Also, url_identifier() -> activity_id in ThingArticle for regularity. 2018-09-27 16:52:29 +01:00
Marnanel Thurman 20ff4d636d Tests for non-json messages 2018-09-27 16:38:41 +01:00
Marnanel Thurman 16a023e9df Search for ThingUsers by URL, not name 2018-09-27 14:27:36 +01:00
Marnanel Thurman 91faeb0773 Activity.deploy() allows Activities to have side-effects when they're created. 2018-09-27 14:27:00 +01:00
Marnanel Thurman daa5543916 rm outdated comment 2018-09-27 13:50:26 +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 8717b59a97 Attempts to create "Like" activities, not "Article"s (which aren't Activitys) 2018-09-23 21:58:38 +01:00
Marnanel Thurman e061aba382 Messages with unresolved references don't cause an error for the sender. 2018-09-23 21:57:50 +01:00
Marnanel Thurman 27dfb4ac27 Add QuarantinedMessageNeeds.
QM.deploy() attemps to deploy.

If Activity.create() finds unresolved references,
it throws a NeedToFindException with a set of all of them,
not just the first one it finds.
2018-09-23 21:55:57 +01:00
Marnanel Thurman 6e648ffd86 NeedToFetchException takes a set of URLs, not a single URL 2018-09-23 21:55:17 +01:00
Marnanel Thurman 97cc4daf6d Version number bump 2018-09-18 23:12:39 +01:00
Marnanel Thurman fd991062f3 After creating a Follow, also create an Accept for it 2018-09-18 23:12:13 +01:00
Marnanel Thurman 1f027c2968 Check for Follows which are accepted, now that "accepted" is tracked. 2018-09-18 23:11:48 +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 0812080730 rm django_kepi/collections.py, which should have been deleted ages ago 2018-09-18 22:52:15 +01:00
Marnanel Thurman 4b6efe6a9e much better error message for incorrect params when creating an Activity 2018-09-18 22:47:10 +01:00
Marnanel Thurman 22cf60d524 add user to test, to avoid NeedToFetch 2018-09-16 21:49:08 +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 e1478b52fe Tests for incoming message authorisation 2018-09-13 16:35:58 +01:00
Marnanel Thurman 75eb3d6764 QuarantinedMessage, and an InboxView to create them 2018-09-13 16:06:33 +01:00
Marnanel Thurman 61eb6aecdd New migrations which should have been checked in already 2018-09-12 23:49:31 +01:00
Marnanel Thurman 5bb3dad40d Many new tests 2018-09-12 23:49:25 +01:00
Marnanel Thurman a5e67a415c rm ThingUser's link to Actor, which is going away soon.
Implemented the find_activity() methods for ThingUser and ThingArticle.
2018-09-12 23:48:14 +01:00
Marnanel Thurman 78b8a4819e Fixed a lot of confusion over "ftype", "atype", and "type" identifiers.
Imported NeedToFetchException so deserialising Activities will work properly.
2018-09-12 23:46:57 +01:00
Marnanel Thurman 7820f87e40 resolve() allows types' find_activity() methods to throw DoesNotExist, and treats it as returning None.
NeedToFetchException allows its "url" parameter to be specified positionally.
2018-09-12 23:44:58 +01:00
Marnanel Thurman 2325fe86c4 some migrations which should have been committed! 2018-09-12 02:51:16 +01:00
Marnanel Thurman 140dfe795f Activity.deserialize() correctly accesses its list of types.
First test for it (which found the above bug).
2018-09-12 02:50:08 +01:00
Marnanel Thurman 8c3d13ed46 New design for Activity, since we need to deserialise everything in the same place.
NeedToFetchException added.

rm mistaken params in TombstoneException's call to superclass's constructor.

URL_FORMAT -> ACTIVITY_URL_FORMAT for clarity.

rm tests for old code which is going away soon.
2018-09-10 13:56:31 +01:00
Marnanel Thurman bd907af51b intermediate 2018-09-07 15:03:55 +01:00
Marnanel Thurman 54d6a049b3 Tests for resolver 2018-09-07 14:55:07 +01:00
Marnanel Thurman d5ccee5e2a Don't check Iterable-- strings are iterable! 2018-09-07 14:54:26 +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