Tyson Clugg
64aa79fab7
Update CHANGES.rst, bump version number.
2015-12-16 21:29:35 +11:00
Tyson Clugg
df495423cf
Add test case with a GET request.
2015-12-16 21:21:23 +11:00
Tyson Clugg
a23d2f8056
Crude support for pub access to this.user.
2015-12-16 21:16:16 +11:00
Tyson Clugg
179642ff09
Fix DB close during service stop.
2015-12-16 21:12:14 +11:00
Tyson Clugg
b38a0447f6
Close DB and yield after processing msg from WebSocket.
2015-12-16 17:24:45 +11:00
Tyson Clugg
e8651d3bd3
Pylint cleanups and remove logging from MeteorView.
2015-12-16 17:04:31 +11:00
Tyson Clugg
7184e633c9
pylint cleanups on dict_merge.
2015-12-16 17:02:01 +11:00
Tyson Clugg
f8539b9253
Fix doctest in API module.
2015-12-15 10:15:07 +11:00
Tyson Clugg
77ac4a9689
Support for alternate Django psycopg2 drivers.
2015-12-15 10:07:08 +11:00
Tyson Clugg
96c53649b8
Remove debug argment from PostgresGreenlet.
2015-12-15 09:49:12 +11:00
Tyson Clugg
81bedca997
Remove unused import.
2015-12-14 13:08:02 +11:00
Tyson Clugg
40d0bf27a6
Fail on start if any child threads can't start.
2015-12-14 13:07:25 +11:00
Tyson Clugg
d7dde53bdc
Packaging updates in preparation for next release.
...
- `make test` runs tox against Python 2.7/3.3/3.4/3.5 and Django
1.8/1.9.
- Building universal wheels with PEP-0496 Environment Markers.
- Build wheel from tox environment to ensure consistency.
- Consistent layout for setup and requirements files, now using PEP-0409
Environment Markers.
- Dropping support for Django 1.7 (didn't work anyway).
- Moving repository to https://github.com/django-ddp/django-ddp (new
Github organisation).
- Update changelog.
2015-12-14 13:05:28 +11:00
Tyson Clugg
99fddfcc23
Try to use dddp.test.django_todos.tests in test suite.
2015-12-14 12:43:49 +11:00
Tyson Clugg
7bdd6baa85
Use libpq environment variables for DB settings in test project.
2015-12-14 12:41:47 +11:00
Tyson Clugg
927311958d
Add dddp.tests test suite, just running doctests for now.
2015-12-14 11:57:39 +11:00
Tyson Clugg
b521317c77
Add test runner for use with python setup.py test
2015-12-14 11:47:13 +11:00
Tyson Clugg
0b8b3c6ddf
Fixes #23 -- For loop instead of using .
2015-11-23 11:15:17 +11:00
Tyson Clugg
30516dd44a
Wait for all threads to stop upon launcher stop.
2015-11-23 11:12:48 +11:00
Tyson Clugg
0af3aa8c3f
Set application_name on PostgreSQL async connection.
2015-11-23 11:10:57 +11:00
Tyson Clugg
a330746432
Send django.core.signals.request_finished when closing WebSocket.
2015-11-23 11:09:59 +11:00
Tyson Clugg
f1b4f0798d
Don't require DJANGO_SETTINGS_MODULE to import API.
2015-11-23 10:10:07 +11:00
Tyson Clugg
452f891bb8
Update CHANGES.rst, bump version number.
2015-11-06 01:13:16 +11:00
Tyson Clugg
cc8b0e0e1a
Fixes #22 -- Don't assume project has a .
2015-11-06 01:10:06 +11:00
Tyson Clugg
c97d4404f8
Update CHANGES.rst, bump version number.
2015-11-05 15:05:36 +11:00
Tyson Clugg
5ec0c392d3
Fix order of psycopg2cffi.compat.register() call and psycogreen.gevent.patch_psycopg() call, demote threading module exception to warning.
2015-11-05 14:42:24 +11:00
Tyson Clugg
bc9afefadd
Support METEOR_SETTINGS env var, as well as introduce METEOR_PUBLIC_ENVS var.
2015-11-05 11:41:00 +11:00
Tyson Clugg
23f233bd43
Update CHANGES.rst, bump version number.
2015-10-30 14:27:37 +11:00
Tyson Clugg
f371c5b1d4
Update CHNAGES.rst, bump version number.
2015-10-29 10:06:17 +11:00
Tyson Clugg
9c865dd978
Fixes #18 , fixes #19 -- Use six forPython 3 compatibility.
2015-10-29 10:02:31 +11:00
Tyson Clugg
a3c9f9c802
Python3 compatibility fixes in dddp.api.
2015-10-29 09:53:52 +11:00
Tyson Clugg
5f776a7996
Python3 compatibility fix for alea module.
2015-10-29 09:25:05 +11:00
Tyson Clugg
be93d5e1e8
Pylint cleanups.
2015-10-28 13:30:58 +11:00
Tyson Clugg
4c0fd40ebd
Fix bug causing some subscription queries to use inefficient SQL.
2015-10-14 02:59:02 +11:00
Tyson Clugg
27c270f40f
Fixes #6 (again) -- Python 3 style exception handling.
2015-10-13 23:44:15 +11:00
Tyson Clugg
80238bc785
Make the SQL for subscriptions much faster to run.
...
The PostgreSQL query planner knows to short-circuit some operators such
as IN or ANY such that `foo_id IN (SELECT foo.id FROM foo WHERE ...)`
doesn't need to perform a full table scan on foo.
This change ensures that `user_rel` WHERE clauses use the `IN` operator
to take advantage of the greatly improved performance.
2015-10-13 23:13:41 +11:00
Tyson Clugg
b80e50a6ac
Improvements to error/exception handling.
2015-10-13 11:39:20 +11:00
Tyson Clugg
2aa21c7a27
Warn if many TX chunks are waiting (stalled?)
2015-10-13 11:36:05 +11:00
Tyson Clugg
91a1b4a3db
Bugfix thread locals setup when opening WebSocket.
2015-10-13 11:18:24 +11:00
Tyson Clugg
0bbf5ac10c
Add missing import for Python 2 print().
2015-10-13 11:13:59 +11:00
Tyson Clugg
b14b2a427e
New setting DDP_API_ENDPOINT_DECORATORS.
...
Takes a list of dotted import paths to decorators which are applied to API
endpoints. For example, enable New Relic instrumentation with the following:
```
DDP_API_ENDPOINT_DECORATORS = ['newrelic.agent.background_task']
```
2015-10-13 11:05:02 +11:00
Tyson Clugg
397e044ddd
Work towards #16 -- Use psycopg2cffi compatibility if psycopg2 not installed.
2015-10-08 11:58:42 +11:00
Tyson Clugg
73465d6ed4
Fixed #7 -- Warn if using DB engines other than psycopg2.
2015-10-08 11:37:03 +11:00
Tyson Clugg
05e3356b93
Pass all attributes from logging.LogRecord via dddp.logs collection.
2015-09-25 11:32:04 +10:00
Tyson Clugg
f15efc0930
Use select_related() and resultant cached relational fields to speed up Colleciton.serialize().
2015-09-25 11:30:48 +10:00
Tyson Clugg
33052f4835
Fix bug in get_meteor_ids() which caused extra database hits.
2015-09-25 11:29:38 +10:00
Tyson Clugg
cefe6fe62d
Account security tokens are now calculated for each minute allowing for finer grained token expiry.
2015-09-22 18:11:45 +10:00
Tyson Clugg
56c850948f
Update dddp/test/meteor_todos/ app to Meteor 1.2.0 (still works fine with older versions though).
2015-09-22 17:01:18 +10:00
Tyson Clugg
81824e5bfe
Fix dddp.test.test_project URL config and options for MiniMongo collections.
2015-09-22 17:00:03 +10:00
Tyson Clugg
9cf2ec3a0b
Correctly handle serving app content from the root path of a domain.
2015-09-22 16:58:19 +10:00