Marnanel Thurman
ee12bd6880
intermediate
2019-03-03 21:30:18 +00:00
Marnanel Thurman
c9a4df27c9
rm old tests
2019-03-03 21:13:00 +00:00
Marnanel Thurman
0d59ebbc58
The contents of a CachedText can be None by default. Tests added.
2019-02-16 20:24:43 +00:00
Marnanel Thurman
27b64f8e4e
CachedText model added, with simple test
2019-02-16 20:05:14 +00:00
Marnanel Thurman
9fcf27b4ee
Annotate queries with is_local and content type. Next step is using them.
2018-10-29 15:18:23 +00:00
Marnanel Thurman
8317f82a43
Person lookups return Persons correctly; they don't delegate to the right types yet
2018-10-29 14:39:52 +00:00
Marnanel Thurman
d50333cc44
fixme notes
2018-10-29 14:33:33 +00: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
fa193e5bd7
intermediate checkin
2018-10-29 13:43:12 +00:00
Marnanel Thurman
f00b74b988
New approach to caching remote objects
2018-10-29 13:35:18 +00:00
Marnanel Thurman
ca77f81aa5
Activity split out from models.py into activity_model.py
2018-10-23 18:56:55 +01:00
Marnanel Thurman
939a8e029c
version bump to 0.0.20
2018-10-14 02:10:06 +01:00
Marnanel Thurman
a813e7972a
nuke all migrations and start again
2018-10-14 02:09:14 +01:00
Marnanel Thurman
2ecb130bb1
'warn' downgraded to 'info' if deserialising an Activity has unresolved references but there's no parent message to inform about it. All clear? Good.
2018-10-14 02:06:27 +01: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
434dc1fac1
Version number bump to 0.0.18
2018-10-12 20:16:15 +01:00
Marnanel Thurman
a9a7937dde
async_result success codes are 0 and 1, not False and True
2018-10-12 20:15:12 +01:00
Marnanel Thurman
dd5e925872
If an Activity can't be created because of unresolved references, don't try to return it anyway!
2018-10-12 20:14:32 +01:00
Marnanel Thurman
800dcaaf88
abolishing NeedToFetchException because it messes up debugging
2018-10-12 17:45:44 +01:00
Marnanel Thurman
2d03a62dbb
async_result success codeis are 0 or 1, not False or True. (bool("False") is True!)
...
async_result malformed body check isn't performed if success==0.
Using central logger.
2018-10-12 16:26:17 +01:00
Marnanel Thurman
45e1e405ef
Using central logger. Improved log messages.
2018-10-12 16:25:46 +01:00
Marnanel Thurman
1dd753bae3
Let's have one central logger
2018-10-12 16:25:26 +01:00
Marnanel Thurman
990e5ece9f
intermediate
2018-10-12 00:59:44 +01:00
Marnanel Thurman
a2ffc1f3be
improved __str__ for QuarantinedMessage and QuarantinedMessageNeeds
2018-10-10 21:37:01 +01:00
Marnanel Thurman
b9d945ebfc
@shared_task -> @shared_task()
2018-10-10 21:27:47 +01:00
Marnanel Thurman
96c2333f1a
Using a more realistic callback URL for batch tasks
...
(though in practice we'll need to get the real one from settings)
2018-10-10 21:26:45 +01:00
Marnanel Thurman
b3bf7662b8
beginning to flesh out the Celery integration
2018-10-06 22:11:38 +01:00
Marnanel Thurman
cfe269f72c
intermediate
2018-10-05 00:12:03 +01:00
Marnanel Thurman
ca88429872
Added some logging
2018-10-03 22:35:18 +01:00
Marnanel Thurman
5d30ed1af9
rm debug print
2018-10-03 20:53:12 +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
ff44834b34
Intermediate checkin for AsyncResult
2018-10-03 19:36:39 +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
91faeb0773
Activity.deploy() allows Activities to have side-effects when they're created.
2018-09-27 14:27:00 +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
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
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
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
75eb3d6764
QuarantinedMessage, and an InboxView to create them
2018-09-13 16:06:33 +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