Commit Graph
5375 Commits
Author SHA1 Message Date
Henry Oswald 4825a1f557 extract clearup func so it always runs 2016-06-01 14:57:06 +01:00
Henry Oswald f8e9df9130 each health check is run with different user_id
means can do a full clean after tests
2016-06-01 14:52:35 +01:00
Henry Oswald 2b8ca59420 bump mongojs version 2016-06-01 14:38:06 +01:00
Henry Oswald f81d40d573 add missing err check 2016-06-01 14:34:23 +01:00
Henry Oswald 3cae036c3c improve logging 2016-06-01 14:21:49 +01:00
Henry Oswald 9f566f7730 added logging and more error checking in health check 2016-06-01 14:10:44 +01:00
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
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
Henry Oswald fdc8d83646 log out error on synctex 2016-05-27 16:18:18 +01:00
Henry Oswald 41ca3a4222 log out errors more clearly 2016-05-27 14:45:39 +01:00
James Allen 343ec9d708 Add in flags that track how often each callback is called 2016-05-26 15:46:45 +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
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
Marc Egea i Sala 6a57dd2d9b Improve indentation 2016-05-23 16:16:40 +01:00
Marc Egea i Sala 45254bf34a Add minimal git config to repos
The test don't pass unless a minimal configuration for Git is provided.
With this change, we don't rely on the final user to provide this
configuration.

Every time a repository is cloned on tests we're adding a configuration
only for that repository that's not going to clash with any other
configuration already set.
2016-05-23 15:59:24 +01:00
Henry Oswald ea8134c433 log out if the command running is being used 2016-05-23 15:45:39 +01:00
Henry Oswald 98a07e07ed parallelFileDownloads defaults to 1, sql can't take it 2016-05-23 14:31:27 +01:00
Henry Oswald d140964c5f add error handler on CommandRunner 2016-05-23 14:13:55 +01:00
Brian Gough bd55e18d6b be ready to serve files from per-user containers 2016-05-20 10:23:07 +01:00
Brian Gough 340fef38a9 fix error in log for expiry timeout 2016-05-20 10:23:07 +01:00
Henry Oswald 786b9cdb84 Merge branch 'master' of https://github.com/sharelatex/clsi-sharelatex 2016-05-19 16:57:19 +01:00
Henry Oswald 9c873f99ba log out EXPIRY_TIMEOUT 2016-05-19 16:57:14 +01:00
Henry Oswald 9ae37d1814 make cached assets ttl set via config 2016-05-19 16:51:50 +01:00
Brian Gough 07401c5a45 avoid clobbering the existing port variable 2016-05-19 16:38:18 +01:00
Brian Gough e286aede4e return the file path in the output file list for easy lookup 2016-05-19 16:38:18 +01:00
Brian Gough b65dfb02a4 Merge pull request #38 from sharelatex/add-fast-path-to-pdf
Add fast path to pdf
2016-05-13 12:32:26 +01:00
Brian Gough 2494327c12 make the build id a secure random token
we allow existing build ids to work for backwards compatibility
this can be removed after some time
2016-05-13 10:11:35 +01:00
Brian Gough 8a2665911d allow direct path to output file /project/project_id/build/build_id/output/*
this avoids use of the query string ?build=... and so we can match the
url directly with the nginx location directive
2016-05-13 10:10:48 +01:00
Shane Kilkelly 048fd19418 Add one to size of line.
To account for newline characters in the original document
2016-05-12 09:26:50 +01:00
Shane Kilkelly 82d5a7fafd check total size of lines, rather than content-length 2016-05-11 15:55:21 +01:00
James Allen a95aae16e6 Tweak convert profile to work on api-2 2016-05-10 17:50:46 +01:00
James Allen a41a307b58 Update firejail profile to allow pdf previews for templates to work 2016-05-10 14:34:48 +01:00
Brian Gough d5c1fb9997 fix logic excluding smoke test in metric 2016-05-10 10:10:01 +01:00
Brian Gough 00acfbdf86 fix tagname for graphite 2016-05-10 09:41:39 +01:00
Brian Gough 7779f65869 record system time 2016-05-10 09:12:13 +01:00
Brian Gough d2e4253e1e preserve existing metric name 2016-05-10 09:12:00 +01:00
Brian Gough 3eebca4c01 add timing information from /usr/bin/time 2016-05-09 16:00:24 +01:00
Brian Gough ebcf9a75ae add a metric for the TeXLive image used on each compile 2016-05-09 15:36:11 +01:00
James Allen 92f5234580 Add convert firejail profile 2016-05-09 14:44:49 +01:00
James Allen be43330208 Allow convert command to be prefixed by security commands 2016-05-09 11:37:35 +01:00