Wykres commitów

1222 Commity (219835039406b3e6a6e1414be677d6c36bddf257)

Autor SHA1 Wiadomość Data
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
Marnanel Thurman 928934eab2 First steps with the resolver 2018-09-06 20:00:39 +01:00
Marnanel Thurman 5b98d22c42 test_collection_with_overridden_transform() 2018-09-06 18:53:18 +01:00
Marnanel Thurman c066ff7e80 test_tombstone_collection_response() added
CollectionResponse correctly uses x.activity instead of str(x)

CollectionResponse handles TombstoneException correctly
2018-09-06 18:47:24 +01:00
Marnanel Thurman 20101646af TombstoneException imported properly 2018-09-06 18:47:01 +01:00
Marnanel Thurman f515b3767f ThingUser.serialize() -> activity property.
also, "Queen Anne" is a magic value for throwing a Tombstone in testing
2018-09-06 18:31:16 +01:00
Marnanel Thurman 45e8772430 test_collection_response_spills() 2018-09-06 18:26:11 +01:00
Marnanel Thurman 7895641ec3 ThingUser.__str__ 2018-09-06 18:23:53 +01:00
Marnanel Thurman 52855a96b4 Don't assert that collections are ordered; they're always ordered 2018-09-06 17:21:17 +01:00
Marnanel Thurman 852b57ddce test contents of page 1 in collection response 2018-09-06 17:18:21 +01:00
Marnanel Thurman 95b15477d6 rm note 2018-09-06 17:10:06 +01:00
Marnanel Thurman 2f652d1d33 replace refs to activity_get() with the activity property 2018-09-06 17:09:31 +01:00
Marnanel Thurman 59fe9d4372 test_collection_response, for index pages. Content pages to follow'. 2018-09-06 16:09:32 +01:00
Marnanel Thurman efe245739b Fixed call to __super__.__init__() in CollectionResponse. Re-added _make_index_page. 2018-09-06 16:08:43 +01:00
Marnanel Thurman 69f26c183f __str__ on TombstoneException 2018-09-06 15:50:27 +01:00
Marnanel Thurman ce4ccf95ca test_tombstone_object_response. Also, checked response status code in test_object_response. 2018-09-06 15:47:36 +01:00
Marnanel Thurman 99ef7250aa qualify TombstoneResponse 2018-09-06 15:44:20 +01:00
Marnanel Thurman f750b8e9a0 test_empty_response, test_object_response 2018-09-06 15:40:46 +01:00
Marnanel Thurman 7778f0a512 test_tombstone_exception 2018-09-06 15:30:26 +01:00
Marnanel Thurman 84c5afb403 intermediate 2018-09-05 23:11:18 +01:00
Marnanel Thurman 3da527d639 intermediate 2018-09-05 23:09:11 +01:00
Marnanel Thurman f2b8c6b7c8 First sketch of splitting out the responses from the views 2018-09-05 22:53:50 +01:00
Marnanel Thurman f19440498d yet more readme work. Still much to do 2018-09-05 18:03:11 +01:00
Marnanel Thurman 426426aaed yet more readme work. Still much to do 2018-09-05 17:21:41 +01:00
Marnanel Thurman d7b6d2834a yet more readme work. Still much to do 2018-09-05 17:20:10 +01:00
Marnanel Thurman 39b6db7c9e more readme work. Still much to do 2018-09-05 17:01:43 +01:00
Marnanel Thurman e1f932c05b README.md 2018-09-04 22:58:27 +01:00
Marnanel Thurman 51c9129fec Actor.__str__ uses self to access member variables. Silly mistake.
Version number bump.
2018-09-02 22:09:26 +01:00
Marnanel Thurman e6346ddcda Version number bump to 0.0.15 2018-09-01 22:55:22 +01:00