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
843db7f95b
Scaling down things_for_testing
2019-05-21 19:07:16 +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
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
cdc6e64766
Intermediate checkin for task tests
2019-05-16 21:02:27 +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
d70a6d2f1f
Outgoing messages are signed. Tests added, but they need to be more thorough.
2019-05-12 20:07:52 +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
21701eed83
Checked in two test modules which should have been in there already.
...
Removed a hack from KepiTestCase which was part of mock remote objects.
We don't do it that way any more.
2019-05-05 02:43:14 +01:00
Marnanel Thurman
171d9b51d3
Partial checkin. Still busy on this.
2019-04-28 21:17:10 +01:00
Marnanel Thurman
48f76e7c5c
ftype -> f_type
2019-04-25 20:10:56 +01:00
Marnanel Thurman
d201903750
First set of embellish() additions for Notes
2019-04-25 19:47:44 +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
320624129c
Tests for django_kepi.tasks. All passed.
2019-04-14 20:52:47 +01:00
Marnanel Thurman
9ae34685e2
test_asyncresult -> test_tasks. Still updating this.
2019-04-14 19:27:59 +01:00
Marnanel Thurman
cb08c6c7db
Every module initialises its own logger.
2019-04-14 19:18:16 +01: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
ad837571a8
object_type_registry can have multiple handlers for the same object type
2018-10-14 02:03:35 +01:00
Marnanel Thurman
c62dd6cd66
add decorator @activity_type
2018-10-12 22:32:50 +01:00
Marnanel Thurman
e6953e329d
Renamed methods to avoid confusion.
...
activity is now activity_form.
find_activity is now activity_find.
django_kepi.resolve is now django_kepi.find.
2018-10-12 21:47:18 +01:00
Marnanel Thurman
b81d6c7107
Using central logger.
2018-10-12 16:32:40 +01:00
Marnanel Thurman
1dd753bae3
Let's have one central logger
2018-10-12 16:25:26 +01:00
Marnanel Thurman
869f0639d2
you can't use literal dicts as default params
2018-10-12 00:59:24 +01:00
Marnanel Thurman
73f8032791
wild amounts of tinkering to make the tests use httpretty
2018-10-10 21:28:41 +01:00
Marnanel Thurman
cd9ac8d27f
KepiTestCase
2018-10-10 21:28:31 +01:00
Marnanel Thurman
af7ba26aa5
ThingUser status defaults to local
2018-10-08 22:01:30 +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
dee5586e5e
testing migration (should have been added earlier)
2018-10-03 20:47:29 +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
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
16a023e9df
Search for ThingUsers by URL, not name
2018-09-27 14:27:36 +01:00
Marnanel Thurman
333c8590c7
enable celery
2018-09-23 21:59: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
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
61eb6aecdd
New migrations which should have been checked in already
2018-09-12 23:49:31 +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
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
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
7895641ec3
ThingUser.__str__
2018-09-06 18:23:53 +01:00
Marnanel Thurman
27c218e42b
Check both following and followed views
2018-09-01 22:54:51 +01:00
Marnanel Thurman
5ea5e6193f
Drop YourPerson. It was only confusing things.
2018-09-01 22:54:30 +01:00
Marnanel Thurman
514f5ecadf
Tests for FollowersView (they pass)
2018-09-01 18:19: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
6e63dcdeab
Actor's "name" is a URLField, not a CharField.
...
The identifying URL is the only information we can be sure we have.
ThingUser's "name" field is modified similarly.
get_or_make() method is added to Actor.
ThingUser's as_activity() method is renamed to serialize() for consistency.
2018-08-29 20:21:39 +01:00
Marnanel Thurman
86df132551
built stub methods; basic tests pass
2018-08-27 19:13:30 +01:00
Marnanel Thurman
c04a83e442
intermediate
2018-08-27 18:53:52 +01:00