Commit Graph
5375 Commits
Author SHA1 Message Date
mserranom 7183b88a37 added to update operation, required by mongojs 3.x 2020-03-28 13:58:33 +01:00
Simon Detheridge ae62bb75ca Merge pull request #107 from overleaf/spd-handle-fixes-hopefully
(Hopefully) fix handle leaks
2020-03-27 11:37:48 +00:00
Jakob Ackermann 4a19f022fc [misc] keep up with the error signature of dockerode/docker-modem
https://github.com/apocas/docker-modem/blob/v2.1.1/lib/modem.js#L296
2020-03-27 10:39:45 +01:00
Simon Detheridge 64562dffb0 eslint-disable => eslint-disable-next-line 2020-03-26 22:07:37 +00:00
Simon Detheridge a1ae68f6b5 Tidy up 'getReadyPipeline' 2020-03-26 16:57:55 +00:00
Simon Detheridge 1f037ef653 Catch errors from pipeline and stream when waiting for streams to be readable 2020-03-26 16:57:55 +00:00
Simon Detheridge 238d96ed44 Fail acceptance tests on unhandled promise rejection 2020-03-26 16:57:55 +00:00
Simon Detheridge 7e45a82c35 Use autodestroy on Transform stream 2020-03-26 15:09:56 +00:00
mserranom 682fd526c0 updated express.send to express.sendStatus 2020-03-26 15:36:49 +01:00
mserranom 2f3d664db0 updated express to v4 and mongojs 2020-03-26 15:17:07 +01:00
Shane Kilkelly 861ab5be80 update metrics and logger for latest bug fixes 2020-03-26 13:40:47 +00:00
mserranom 6f398625a3 updated prettier, mocha, sinon, node-statsd 2020-03-26 13:25:39 +01:00
mserranom 7135e03cad updated async to latest v2.x 2020-03-26 13:21:44 +01:00
mserranom 0b2c4cb1b7 updated minor/patch dependencies 2020-03-26 13:21:02 +01:00
mserranom d1673ea92c npm audit fix 2020-03-26 13:17:02 +01:00
mserranom 2b4e44f047 updated build scripts 2020-03-26 13:16:08 +01:00
Jakob Ackermann f7c8d60c74 Merge pull request #126 from overleaf/jpa-logger-1-9-1
[misc] bump logger-sharelatex to 1.9.1
2020-03-26 13:03:48 +01:00
Jakob Ackermann eb909a4a21 Merge pull request #42 from overleaf/jpa-logger-1-9-1
[misc] bump logger-sharelatex to 1.9.1
2020-03-26 13:03:19 +01:00
Simon Detheridge 82599bce67 Merge pull request #105 from overleaf/jpa-logger-1-9-1
[misc] bump logger-sharelatex to 1.9.1
2020-03-26 10:31:33 +00:00
Simon Detheridge 345696b067 Merge pull request #106 from overleaf/spd-single-pipe
Use single pipeline when calculating md5
2020-03-26 10:31:07 +00:00
Simon Detheridge d073fe75ca Use single pipeline when calculating md5 2020-03-25 16:59:51 +00:00
Eric Mc Sween 985644057d Merge pull request #55 from overleaf/em-upgrade-metrics
Upgrade metrics-sharelatex to 2.6.2
2020-03-25 11:05:59 -04:00
Brian Gough fcb72b9bf7 update tests 2020-03-25 14:27:41 +00:00
Brian Gough 1a0550364d add metric for getdoc bytes 2020-03-25 14:27:41 +00:00
Brian Gough 891fcc696b add metric for pending updates queue 2020-03-25 14:27:41 +00:00
Eric Mc Sween 131e943675 Merge pull request #20 from overleaf/em-upgrade-metrics
Upgrade metrics-sharelatex to 2.6.2
2020-03-25 10:26:05 -04:00
Eric Mc Sween 56d044b546 Upgrade metrics-sharelatex to 2.6.2
This version fixes the HTTP request timing metrics, which were not
reporting correctly.
2020-03-25 10:07:26 -04:00
Eric Mc Sween 1ebed438e4 Upgrade metrics-sharelatex to 2.6.2
This version fixes the HTTP request timing metrics, which were not
reporting correctly.
2020-03-25 10:00:31 -04:00
Brian Gough e293d86c14 add metric for project history queue 2020-03-25 12:15:16 +00:00
Miguel Serrano 66d294537e Merge pull request #54 from overleaf/msm-update-dependencies
Update dependencies
2020-03-25 13:03:20 +01:00
Miguel Serrano 0fe8b4dc11 Merge pull request #19 from overleaf/msm-update-dependencies
Update dependencies
2020-03-25 12:24:36 +01:00
Jakob Ackermann c72633a162 Merge pull request #120 from overleaf/jpa-limit-update-size
[misc] limit update size
2020-03-24 17:04:05 +01:00
Jakob Ackermann 69569e3571 [misc] config: add headroom for JSON serialization in maxUpdateSize 2020-03-24 16:21:29 +01:00
Jakob Ackermann af53d3b603 [misc] skip duplicate JSON serialization for size check 2020-03-24 11:22:28 +01:00
Jakob Ackermann cb675d38c2 [misc] SafeJsonParse: align the size limit with the frontend->rt limit
frontend -> real-time and doc-updater -> real-time should be in sync.
Otherwise we can send a payload to doc-updater, but can not receive the
 confirmation of it -- and the client will send it again in a loop.

Also log the size of the payload.
2020-03-24 09:14:15 +01:00
Jakob Ackermann 15244a54be [misc] WebsocketController: limit the update size to 7mb
bail out early on -- especially do not push the update into redis for
 doc-updater to discard it.

Confirm the update silently, otherwise the frontend will send it again.
Broadcast a 'otUpdateError' message and disconnect the client, like
 doc-updater would do.
2020-03-24 09:12:12 +01:00
Jakob Ackermann ac5feb4a77 [misc] bump logger-sharelatex to 1.9.1 2020-03-23 16:18:07 +01:00
Jakob Ackermann db30170228 [misc] bump logger-sharelatex to 1.9.1 2020-03-23 16:18:07 +01:00
Jakob Ackermann 2ce3c8f97e [misc] bump logger-sharelatex to 1.9.1 2020-03-23 16:18:07 +01:00
Jakob Ackermann b2d1718a2e [misc] bump logger-sharelatex to 1.9.1 2020-03-23 16:18:05 +01:00
mserranom 3df58861e8 fixed missing done() in acceptance tests 2020-03-23 14:55:35 +01:00
mserranom 400ddf36ed fixed unit tests 2020-03-23 12:57:02 +01:00
mserranom cf7ed3f76e updated mongojs, chai, bunyan, mocha, sandboxed-module, sinon and timekeeper 2020-03-23 12:56:42 +01:00
Jakob Ackermann 7321e80b1e Merge pull request #119 from overleaf/jpa-delay-shutdown
[misc] let proxys observe an upcoming shutdown before starting to drain
2020-03-23 12:56:05 +01:00
mserranom ba2268936d updated async to v2.x 2020-03-23 12:50:27 +01:00
mserranom 06f606bf74 npm audit fix and bumped minor/patch dependencies 2020-03-23 12:49:40 +01:00
mserranom 7e5b42e790 updated build scripts 2020-03-23 12:47:58 +01:00
mserranom 91a1fadbb1 updated async and bunyan 2020-03-23 12:45:29 +01:00
mserranom 25704ea301 updated chai, mocha, sinon and sandboxed-module 2020-03-23 12:39:09 +01:00
mserranom 97a3fd3202 updated minor/patch dependencies and known safe updates 2020-03-23 12:32:25 +01:00