Jakob Ackermann
b2e4448992
[misc] test/acceptance: ReceiveUpdateTests: test remotely sent update
2020-06-10 09:53:48 +01:00
Jakob Ackermann
83e3ff0ed7
[misc] test/acceptance: ReceiveUpdateTests: add 2nd project/3rd client
...
...and check for cross project leakage.
2020-06-10 09:53:29 +01:00
Jakob Ackermann
56fda1f9b0
[misc] test/acceptance: use the correct redis instances
2020-06-10 09:43:15 +01:00
Jakob Ackermann
bc44494466
[HttpController] return 404 in case of a missing client and add tests
...
Add acceptance tests for the client view.
2020-06-10 09:41:36 +01:00
Jakob Ackermann
eabff1d6b2
[perf] test/acceptance: DrainManagerTests: cleanup previous clients
...
...before starting to drain.
2020-06-09 18:02:38 +01:00
Jakob Ackermann
de35fc5ecf
[HttpApiController] implement the disconnection of a single client
...
The http route returns as soon as the client has fully disconnected.
2020-06-09 18:01:08 +01:00
Jakob Ackermann
91e296533f
[misc] test/acceptance: add tests for the draining of connections
2020-06-09 18:00:44 +01:00
Simon Detheridge
59551fc140
Merge pull request #121 from overleaf/spd-gcs-byte-range
...
Fix Filestore returning one-too-many bytes when given a range
2020-06-09 16:32:42 +01:00
Jakob Ackermann
acb7d7df5a
[misc] add test cases for the validation of the callback argument
...
When the user provides a function as last argument for socket.emit,
socket.io will flag this as an RPC and add a cb as the last argument
to the client.on('event', ...) handler on the server side.
Without a function as last argument for socket.emit, the callback
argument on the server side is undefined, leading to invalid function
calls (`undefined()`) and an unhandled exception.
The user can also provide lots of other arguments, so the 2nd/3rd ...
argument is of arbitrary type, again leading to invalid function calls
-- e.g. `1()`.
2020-06-09 16:30:03 +01:00
Jakob Ackermann
853ee994a6
[perf] add a few short cuts to the packet decoding
2020-06-09 15:26:17 +01:00
Jakob Ackermann
dc553c4150
[misc] vendor a patched session.socket.io middleware
2020-06-09 15:21:33 +01:00
Simon Detheridge
7b6299e05a
Update GcsPersistor range unit test
2020-06-09 13:55:03 +01:00
Jakob Ackermann
1c9eaf574a
Merge pull request #147 from overleaf/jpa-backport-141
...
[backport] 141: Router: validate the callback argument
2020-06-09 14:41:24 +02:00
Jakob Ackermann
5238e6ad36
Merge pull request #145 from overleaf/jpa-backport-140
...
[backport] 140: stop processing requests as we detect a client disconnect
2020-06-09 14:41:12 +02:00
Jakob Ackermann
589bedc3dd
Merge pull request #146 from overleaf/jpa-downgrade-logging
...
[misc] downgrade logging when running tests
2020-06-09 14:40:59 +02:00
Brian Gough
54d1cf7eeb
add missing setting for optimiseInDocker
2020-06-09 11:22:28 +01:00
Simon Detheridge
5d9f78322d
Don't increment range end when passing to GCS backend
2020-06-09 10:01:47 +01:00
Simon Detheridge
0027d27473
Use latest version of gcs server for tests
2020-06-09 10:01:20 +01:00
Eric Mc Sween
ac6e70d064
Merge pull request #59 from overleaf/msm-update-oerror-v3
...
Update OError to v3
2020-06-08 09:10:26 -04:00
Eric Mc Sween
256e7375ff
Upgrade logger-sharelatex to 2.0.0
2020-06-08 08:58:25 -04:00
Jakob Ackermann
6dce45bf2f
Merge pull request #148 from overleaf/jpa-secondary-id
...
[misc] socket.io: use a secondary publicId for public facing usages
2020-06-08 14:51:01 +02:00
Jakob Ackermann
32af7001fc
[misc] Router: prefix the publicId with 'P.' for easy differentiation
2020-06-08 11:29:40 +01:00
Brian Gough
8464ce33a1
Merge pull request #173 from overleaf/bg-openout-any
...
add setting TEXLIVE_OPENOUT_ANY
2020-06-08 09:03:05 +01:00
Jakob Ackermann
f40241a037
[misc] downgrade logging when running tests
2020-06-05 11:38:09 +01:00
Jakob Ackermann and Brian Gough
0b2cccf1e0
[misc] apply review feedback: adjust metric names
...
Co-Authored-By: Brian Gough <brian.gough@overleaf.com >
(cherry-picked from commit 67674b83efb452ece05cdc39525ee3a5eeb8a4d7)
2020-06-05 11:33:00 +01:00
Jakob Ackermann
ddcb9cf8c8
[misc] downgrade a warning message from clients leaving non-joined rooms
...
This can now happen all the time, as we skip the join for clients that
disconnect before joinProject/joinDoc completed.
(cherry-picked from commit f357931de74e088800f3cced3898cce4f251dad0)
2020-06-05 11:32:43 +01:00
Jakob Ackermann
7fa9061015
[misc] stop processing requests as we detect a client disconnect
...
v2 expose `client.connected`; v0 exposes `client.disconnected`
(cherry-picked from commit a9d70484343ca9be367d45bf7bb949e4be449647)
2020-06-05 11:32:13 +01:00
Jakob Ackermann
0840700ffd
[Router] validate the callback argument
2020-06-05 10:59:01 +01:00
Jakob Ackermann
c6d08647c7
[misc] socket.io: use a secondary publicId for public facing usages
2020-06-04 17:18:07 +01:00
Brian Gough
3d6b911295
add setting TEXLIVE_OPENOUT_ANY
2020-06-04 11:47:22 +01:00
Tim Alby
361f8ff123
Revert "[misc] make: ignore a lint/format task failure"
...
This reverts commit 26e27b0ff22d694ce58b0e721416c2b775f7ae6a.
2020-06-04 10:21:50 +02:00
Tim Alby
85d8b04a6c
Revert "[misc] make: ignore a lint/format task failure"
...
This reverts commit 6daa8ff2467557f710adcddbf7277b1ce135991d.
2020-06-04 10:19:52 +02:00
Tim Alby
311d7cefa1
fix linting
2020-06-04 10:17:40 +02:00
Tim Alby
61dc3435c4
fix formatting
2020-06-04 09:50:05 +02:00
Tim Alby
48bc7595a8
fix formatting
2020-06-04 09:49:46 +02:00
Brian Gough
cd4041bc1b
Merge pull request #172 from overleaf/update-node-10.21.0
...
Update node to 10.21.0
2020-06-03 14:40:21 +01:00
Simon Detheridge
dee1424836
Merge pull request #119 from overleaf/spd-node-upgrade
...
Upgrade Node to 12.18.0
2020-06-03 12:47:30 +01:00
Brian Gough
7693883c77
Merge pull request #59 from overleaf/update-node-10.21.0
...
Update node to 10.21.0
2020-06-03 11:45:14 +01:00
Brian Gough
232920d1c0
Merge pull request #20 from overleaf/update-node-10.21.0
...
Update node to 10.21.0
2020-06-03 11:41:05 +01:00
Brian Gough
2a650bb1b8
Merge pull request #33 from overleaf/update-node-10.21.0
...
Update node to 10.21.0
2020-06-03 11:37:54 +01:00
Jakob Ackermann
96a0835710
[misc] make: ignore a lint/format task failure
2020-06-03 11:32:09 +01:00
Jakob Ackermann
ebf86bc997
[misc] make: ignore a lint/format task failure
2020-06-03 11:32:08 +01:00
Brian Gough
70dcf9400a
update buildscript.txt to node 10.21.0
2020-06-03 11:12:13 +01:00
Brian Gough
960dbc2e87
update buildscript.txt to node 10.21.0
2020-06-03 11:12:03 +01:00
Brian Gough
ed82adb59b
update buildscript.txt to node 10.21.0
2020-06-03 11:11:57 +01:00
Brian Gough
b64d68bc9f
update buildscript.txt to node 10.21.0
2020-06-03 11:11:51 +01:00
Brian Gough
cf84c7b29f
Merge branch 'update-node-10.21.0'
2020-06-03 11:10:56 +01:00
Brian Gough
cf9f3f48dd
update buildscript.txt to node 10.21.0
2020-06-03 11:10:45 +01:00
Brian Gough
cfd1ca2127
Merge branch 'update-node-10.21.0'
2020-06-03 11:10:38 +01:00
Brian Gough
b5fb09de41
update buildscript.txt to node 10.21.0
2020-06-03 11:10:31 +01:00