Commit graph

19237 commits

Author SHA1 Message Date
James Allen
e38e883081 Clean up and consolidate RedisManager tests for easy refactoring later 2016-06-01 12:22:47 +01:00
James Allen
ea8f4a6d7a Remove unused getDocOpsLength method 2016-06-01 11:58:15 +01:00
James Allen
8004e022fe Fix async version and fix affected unit tests 2016-06-01 11:49:24 +01:00
James Allen
05b09a447e Ensure that all multi call keys will hash to the same node in cluster 2016-06-01 11:40:12 +01:00
James Allen
f707783aba Remove old methods of triggering doc updates
Remove the old pub/sub listener which is no longer used.

Also remove the DocsWithPendingUpdates set, which used to track
docs waiting to be updated. This was necessary incase messages were
missed on the pub/sub channel, so we knew which docs still had pending
updates. However, now we use the BLPOP queue, these updates just sit in
the queue until a consumer comes back to continue consuming them.
2016-06-01 11:28:23 +01:00
James Allen
b2e58266ae Remove unused total doc counting redis commands 2016-06-01 11:03:39 +01:00
James Allen
32ce44f9c6 Remove unused gzipping logic 2016-06-01 10:53:50 +01:00
Henry Oswald
2870b6a460 try cicule ci 2016-05-31 16:37:50 +01:00
Henry Oswald
73e4b42df7 use SANDBOXED_COMPILES not DOCKER_IN_DOCKER 2016-05-31 15:21:26 +01:00
Henry Oswald
8a25755b8a set synctexBaseDir: () -> "/compile" if using docker in docker 2016-05-31 15:16:31 +01:00
James Allen
2c53672dbd install qpdf v6 2016-05-31 14:15:24 +00:00
James Allen
51939512ac Return semantic error if doc ops range is not loaded 2016-05-31 14:21:23 +01:00
James Allen
1d7cbd8a78 Fix unit tests 2016-05-31 13:32:15 +01:00
James Allen
11667e8250 Return semantic error if the requested ops are not available when getting a document 2016-05-31 13:24:19 +01:00
James Allen
f4a465ea69 Return a 'not authorized' error if the user is not logged in/authorized 2016-05-31 11:49:51 +01:00
James Allen
daf8f6f3cf Refresh the page if the user is not logged in when joining a project 2016-05-31 11:47:48 +01:00
Henry Oswald
fdc8d83646 log out error on synctex 2016-05-27 16:18:18 +01:00
Henry Oswald
4560a5ded1 run everything as www-data 2016-05-27 15:46:51 +01:00
Henry Oswald
41ca3a4222 log out errors more clearly 2016-05-27 14:45:39 +01:00
James Allen
345d38c28d Don't clean up a documents event listener until after the socket has disconnected on error 2016-05-27 14:39:33 +01:00
James Allen
36c8c197e1 Add more debug log lines 2016-05-27 14:14:08 +01:00
James Allen
fec3266726 Don't remove new instance of Document from openDocs when cleaning up old instance 2016-05-27 14:13:53 +01:00
James Allen
a605dae7ba Don't show saving just because of pending ops
When typing continuously, there is always a pending op present.
The only time we're not saving is if the inflight op isn't changing.
So long as this has changed, it means the previous one has been processed.
2016-05-27 14:08:46 +01:00
Henry Oswald
9760850d87 one line the apt-get 2016-05-27 13:12:22 +01:00
Henry Oswald
ab61d05e4a run as www-data 2016-05-27 12:55:18 +01:00
Henry Oswald
9646654c48 put apt-get installs on same line and set $TEX_LIVE_DOCKER_IMAGE via env var 2016-05-27 12:12:28 +01:00
James Allen
4bc31ae2b9 Don't throw an error if we get an ack for our update more than once, since we may try sending it more than once 2016-05-27 10:46:14 +01:00
James Allen
6ea58d4d6c Don't try to resend an update if the editor is not joined to the project 2016-05-27 10:46:14 +01:00
James Allen
39e57a9886 Throw fatal error if document update actually returns an error from the real-time service 2016-05-27 10:46:14 +01:00
James Allen
0175a86d4c Add in debugging console.logs which only display if ?debug=true is in URL 2016-05-27 10:46:14 +01:00
James Allen
41f789a313 Add in metric to track client side error count 2016-05-27 10:46:14 +01:00
Brian Gough
b55c469b91 use Url instead for url for "url" module
to avoid possible conflicts with use of url as a variable
2016-05-26 16:24:18 +01:00
James Allen
343ec9d708 Add in flags that track how often each callback is called 2016-05-26 15:46:45 +01:00
Henry Oswald
93ae1e015f build things that don't change at the start for quicker build time 2016-05-26 11:22:51 +01:00
Henry Oswald
61b8e67447 build latex first for faster images and compile clsi synctex 2016-05-26 11:01:21 +01:00
Brian Gough
d83cd547fb Merge pull request #247 from sharelatex/add-query-string-to-proxy-and-filter-synctex-requests
Add query string to proxy and filter synctex requests
2016-05-25 15:08:49 +01:00
Brian Gough
c7363a9df6 provide separate routes for sync-pdf and sync-code with error checking 2016-05-25 15:00:31 +01:00
James Allen
f937f0bc5c Remove missed debugging console.log 2016-05-25 10:38:40 +01:00
Henry Oswald
2f294daa99 Merge branch 'master' of https://github.com/sharelatex/sharelatex-docker-image 2016-05-24 18:15:35 +01:00
Henry Oswald
879a23c857 fix templates & clsi set dynamically. and more robust bool vals from env vars 2016-05-24 16:43:08 +01:00
Henry Oswald
a6cabbb692 Update README.md 2016-05-24 16:10:07 +01:00
Henry Oswald
252cbed435 Update README.md 2016-05-24 15:48:02 +01:00
Henry Oswald
28add83bca Update README.md 2016-05-24 15:47:46 +01:00
Henry Oswald
291602996b moved guide to official wiki 2016-05-24 15:47:13 +01:00
Marc Egea i Sala
65d0d9d511 Merge pull request #11 from overleaf/config-git-for-tests
Config git for tests
2016-05-24 15:16:15 +01:00
James Allen
a196531a58 Move spinner add logic into same code pathway as spinner remove logic 2016-05-24 15:13:08 +01:00
James Allen
36ba88297b Don't hang request in the event of a spelling backend error 2016-05-24 15:11:14 +01:00
James Allen
3452a9870e Show logs when compile fails correctly 2016-05-24 15:10:55 +01:00
Henry Oswald
5ed6ef571f added logger.info to test setup 2016-05-24 14:12:02 +01:00
Henry Oswald
448a30750b log out which command logger is used 2016-05-24 14:08:39 +01:00