Wykres commitów

343 Commity (54465e537ed8630e0e4c96a96975cac0d37e1d52)

Autor SHA1 Wiadomość Data
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 bbeb3cb668 +django_celery_results to requirements.txt 2019-02-13 23:50:39 +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 4c4a0df7a4 Notes towards documenting activity types (and regularising spec) 2018-10-17 16:47:24 +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 0f4375b46b icons 2018-10-13 23:49:02 +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 554766326b Activate httpretty and it all works. I feel a bit of a fool. 2018-10-12 20:13:59 +01:00
Marnanel Thurman 1e61103353 Don't test whether a remote article has been loaded for a Like that failed;
it causes weird race conditions. If the article itself is valid,
it should stay.
2018-10-12 18:20:18 +01:00
Marnanel Thurman 800dcaaf88 abolishing NeedToFetchException because it messes up debugging 2018-10-12 17:45:44 +01:00
Marnanel Thurman b81d6c7107 Using central logger. 2018-10-12 16:32:40 +01:00
Marnanel Thurman 2899e20188 Malformed JSON check doesn't attempt to build the JSON string itself.
Using central logger.

Added silly hack for testing state issues.
2018-10-12 16:31:47 +01:00
Marnanel Thurman 412799fc2f Nudging httpretty to allow Celery to callback is moved to __init__.py.
That is possibly the most techie sentence I've ever written.

Using central logger.

Success codes changed to 0 and 1 instead of False and True.
2018-10-12 16:29:46 +01:00
Marnanel Thurman 81e68ebf0a Don't set DEBUG; it interferes with the test runner's --debug-mode option.
Rewritten LOGGERS so that it filters everything out if we're not in debug mode.
2018-10-12 16:28:20 +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 869f0639d2 you can't use literal dicts as default params 2018-10-12 00:59:24 +01:00
Marnanel Thurman a2ffc1f3be improved __str__ for QuarantinedMessage and QuarantinedMessageNeeds 2018-10-10 21:37:01 +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 b9d945ebfc @shared_task -> @shared_task() 2018-10-10 21:27:47 +01:00
Marnanel Thurman cf49e8f4b0 + httpretty 2018-10-10 21:27:33 +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 a87298b9ed rm outdated comment 2018-10-09 16:59:23 +01:00
Marnanel Thurman af7ba26aa5 ThingUser status defaults to local 2018-10-08 22:01:30 +01:00
Marnanel Thurman b3bf7662b8 beginning to flesh out the Celery integration 2018-10-06 22:11:38 +01:00
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