Commit Graph
5375 Commits
Author SHA1 Message Date
Simon Detheridge f49f5cbf05 Merge pull request #79 from overleaf/ho-mongo-connection-string
use MONGO_CONNECTION_STRING in settings.defaults.coffee if set
2019-08-08 14:16:49 +01:00
Simon Detheridge 6721b904a7 Merge pull request #82 from overleaf/bg-mongo-health-check
add a combined health check for mongo and redis
2019-08-08 14:16:38 +01:00
Simon Detheridge 06444d2cc4 Improve/fix serializers for update logging (#80)
* Improve/fix serializers for update logging
2019-08-08 14:10:54 +01:00
Brian Gough 40f6494b19 add a combined health check for mongo and redis 2019-08-07 16:25:23 +01:00
Henry Oswald aa1c74a979 use MONGO_CONNECTION_STRING in settings.defaults.coffee if set 2019-08-07 15:44:57 +01:00
Simon Detheridge 539ac92ab8 Merge pull request #42 from overleaf/spd-size-handling
Account for ranges in large json payloads
2019-08-06 09:52:25 +01:00
Simon Detheridge 03b8a1901d Account for ranges in large json payloads and add line-count limit 2019-08-06 09:50:04 +01:00
Shane Kilkelly 132e8f308d Merge pull request #71 from overleaf/sk-validate-project-names
Reject urls starting with "/project"
2019-08-02 13:36:44 +01:00
Shane Kilkelly ffcb382f0c Update test to match new setup/teardown pattern 2019-08-02 13:34:43 +01:00
Shane Kilkelly ac4f4082c8 Use 404 code when rejecting invalid project id 2019-08-02 13:31:27 +01:00
Shane Kilkelly 76b349591c Refactor to use new helper to send error response 2019-08-02 13:31:27 +01:00
Shane Kilkelly b0ab2e07c5 Reject requests when the project uri begins with '/project' 2019-08-02 13:31:27 +01:00
Simon Detheridge ad485709cf Merge pull request #78 from overleaf/spd-such-logs
Don't log document lines in log messages
2019-08-02 12:27:49 +01:00
Simon Detheridge 54d6258151 Merge pull request #41 from overleaf/spd-log-url-on-error
Log request URL on error
2019-08-02 12:27:32 +01:00
Shane Kilkelly abf525f43a Update test to match new setup/teardown pattern 2019-08-01 16:34:49 +01:00
Shane Kilkelly 3fac2cc825 Merge pull request #59 from das7pad/tests/cleanup-resources
[tests] cleanup resources
2019-08-01 16:26:51 +01:00
Brian Gough a6fc0ab903 Merge pull request #68 from overleaf/bg-handle-spurious-leave-doc
ignore spurious requests to leave other docs
2019-08-01 09:06:46 +01:00
Simon Detheridge df9ca8b272 Add serializer to print only length of large fields in production 2019-07-31 16:42:28 +01:00
Simon Detheridge e1868e2b54 Log request on error 2019-07-31 15:07:28 +01:00
Brian Gough 2c0c3dc573 Merge pull request #77 from overleaf/bg-use-individual-channels
support per-doc pubsub channels
2019-07-30 09:35:38 +01:00
Brian Gough 478a727c61 ignore spurious requests to leave other docs 2019-07-29 15:19:08 +01:00
Brian Gough 1926f97dbf Merge pull request #67 from overleaf/bg-fix-join-leave
fix async behaviour of join/leave
2019-07-29 12:13:58 +01:00
Brian Gough 04a171171f fix async behaviour of join/leave 2019-07-29 11:54:02 +01:00
Brian Gough 624cf5589f Merge pull request #65 from overleaf/bg-use-per-room-channels
listen on separate channels for each project/doc
2019-07-25 13:41:55 +01:00
Simon Detheridge 5c82ef80b6 Merge pull request #34 from overleaf/spd-unlearn
Add endpoint to remove learned words
2019-07-25 12:04:39 +01:00
mserranom cf0df28f4c Patched EventEmitter for socket.io compatibility with Node >= 7 2019-07-25 09:22:24 +00:00
Brian Gough 618880f99d remove unnecessary check for doc_id 2019-07-24 16:57:43 +01:00
Brian Gough 22d722f3e8 add metric for RoomEvents listeners 2019-07-24 16:25:45 +01:00
Brian Gough 277ec71a5b subscribe to doc updates before requesting doc content 2019-07-24 15:49:29 +01:00
Brian Gough 1c74cbbc4e add comments 2019-07-24 15:49:29 +01:00
Brian Gough 273af3f3aa refactor subscribe resolution 2019-07-24 14:30:48 +01:00
Brian Gough e14a94906a update naming from Set -> Map 2019-07-24 14:18:15 +01:00
Brian Gough cb53bfafd6 remove unnecessary require 2019-07-24 09:52:31 +01:00
Brian Gough 61b3a000b4 fix whitespace 2019-07-24 09:52:20 +01:00
Brian Gough 159b39c491 ensure redis channel is subscribed when joining room 2019-07-23 17:02:09 +01:00
Brian Gough 84e6ff616f whitespace fix 2019-07-22 12:25:41 +01:00
Brian Gough c9ccf62d71 support per-doc pubsub channels 2019-07-22 12:20:06 +01:00
Simon Detheridge 00d09fd6f5 Return 204 instead of 200 when [un]learning words
Also remove unnecessary calls to `next()`
2019-07-22 12:15:07 +01:00
Simon Detheridge 7105ee58d3 Cleanup decaffienation in LearnedWordsManagerTests 2019-07-22 12:14:30 +01:00
Brian Gough bb629c27a1 rename unit test ChannelManager to ChannelManagerTests 2019-07-22 11:28:49 +01:00
Brian Gough 1afebd12a1 unit tests 2019-07-22 11:23:43 +01:00
Brian Gough 92e6910180 cleanup 2019-07-22 11:23:33 +01:00
Brian Gough 8c7b73480f upgrade sinon to 1.17.7 for onCall support 2019-07-22 11:23:02 +01:00
Simon Detheridge e7ab9f79a9 Add endpoint to remove learned words 2019-07-20 14:04:08 +01:00
Brian Gough 9f7df5f10c wip unit tests 2019-07-19 11:58:40 +01:00
Brian Gough a538d10488 extend comment re disconnection 2019-07-19 08:56:38 +01:00
Brian Gough 616014e05d add comment about automatically leaving rooms 2019-07-19 08:50:43 +01:00
Brian Gough 40353a410f fix unit tests 2019-07-19 08:49:57 +01:00
Brian Gough 3bf5dd5d6b clarify errors for subscribe/unsubscribe 2019-07-18 14:25:25 +01:00
Brian Gough f6f6f549d9 don't publish on individual channels until explicitly set 2019-07-18 12:55:23 +01:00