James Allen
144bae3a55
Add an error guard around the version being present
2016-12-02 15:17:38 +00:00
James Allen
ab527c3c5d
remove code left over from migration
2016-12-02 15:02:54 +00:00
James Allen
e156d8017c
Be explicit in version filter
2016-11-30 15:29:43 +00:00
James Allen
9b0cef808a
Merge pull request #12 from sharelatex/ja-set-version-in-docstore
...
Don't look up version in mongo if not needed
2016-11-30 15:27:59 +00:00
James Allen
8b95a04a36
Don't look up version in mongo if not needed
2016-11-30 15:08:56 +00:00
James Allen
0677bcb110
Merge pull request #11 from sharelatex/ja-set-version-in-docstore
...
Set version in docstore, not doc-updater
2016-11-30 14:28:11 +00:00
James Allen
7ede096903
Merge branch 'master' into ja-set-version-in-docstore
2016-11-29 17:24:53 +00:00
James Allen
50f2983912
Log out version when updating doc
2016-11-29 16:49:35 +00:00
James Allen
10008fa9c4
Don't add colours in automated test script
2016-11-29 14:41:12 +00:00
James Allen
7204c08fb2
Rebuild npm modules as part of acceptance test docker run
2016-11-29 14:29:51 +00:00
James Allen
f7ba554658
set up acceptance tests to run via docker
2016-11-28 16:51:43 +00:00
James Allen
eb9a3b314a
Set/get version in docOps via docstore HTTP API
2016-11-28 14:55:16 +00:00
Brian Gough
f95fc2f779
add route parameters
2016-09-05 11:14:41 +01:00
Brian Gough
7a28fb58e7
clean up mongo query
2016-09-05 11:14:41 +01:00
Brian Gough
0a0a8e23fe
remove unused modules
2016-09-05 11:14:41 +01:00
James Allen
629ce44005
Merge pull request #10 from sharelatex/sk-node-upgrade
...
upgrade to node 4.2.1
2016-08-25 11:27:47 +01:00
Shane Kilkelly
56c0604b96
upgrade to node 4.2.1
2016-06-03 10:58:53 +01:00
Henry Oswald
1541eb319c
add more null checks to health check
2015-12-02 10:10:52 +00:00
Henry Oswald
a964119b5e
check err in health check and null check res
2015-12-01 21:50:18 +00:00
James Allen
7185657f06
Use max_doc_length rather than max_doc_size to be consistent with other services
2015-11-09 15:24:21 +00:00
James Allen
27d3ebc1fd
Add configurable max_doc_length
2015-11-06 12:43:53 +00:00
Henry Oswald
29c812cece
moved the build opts down
2015-10-16 12:57:05 +01:00
Henry Oswald
4f5669591a
add timeout to health check requests and always try the delete
2015-10-16 12:30:53 +01:00
Henry Oswald
de9a24f7bb
pulled health check into its own file and use project_id from settings
2015-10-16 10:13:54 +01:00
Henry Oswald
491d4c69b1
Merge branch 'master' of https://github.com/sharelatex/docstore-sharelatex
2015-10-15 22:22:44 +01:00
Henry Oswald
9826d125e3
added basic health check to docstore
2015-10-15 22:22:20 +01:00
James Allen
5fef2a82b8
Acceptance tests no longer run on Travis
2015-10-07 18:40:12 +01:00
Henry Oswald
f1bf0c97ec
make archive and unarchive parallelLimit to speed it up
2015-09-22 09:41:26 +01:00
Henry Oswald
9cfa4b3f84
Don't put docs which are already in s3 through archive job
...
This fixes the bug we saw with 'RangeError: Maximum call stack size exceeded'
if lots of docs are already in s3 cb() gets called synchronously multiple times quickly
which can cause the execption. I am not sure where the recursion is, maybe inside async.
doing setImmediate(cb) also fixes the issue as I beilve it gives the
process chance to clear the stack. Similar to process.nextTick
2015-09-07 14:11:02 +01:00
Henry Oswald
ae75b855b4
added failing test for trying to archive load of docs which are already
...
in s3
2015-09-07 14:06:20 +01:00
Henry Oswald
738e33a052
change crypto to always use utf-8 as it works with aws
2015-09-01 16:52:02 +01:00
Henry Oswald
aaa2a099f1
change acceptance test to use big naught list of strings
2015-09-01 16:51:10 +01:00
Henry Oswald
192b0af15a
added utf-8 char which fails the archive option
2015-09-01 15:47:16 +01:00
Henry Oswald
5dd33ea313
changed back to standard /archive /unarchive
2015-08-18 14:10:53 +01:00
Henry Oswald
5765b59e0c
added /deactivate and /reactivate endpoints as web will call those
...
also fixed acceptence test
2015-08-18 13:31:26 +01:00
Henry Oswald
599b9770f4
add un archive endpoint
2015-08-13 22:48:45 +01:00
Henry Oswald
cf07e2fec5
improve archve doc acceptence tests
2015-08-13 22:48:17 +01:00
Henry Oswald
ef4e437c3f
improve doc manager so it calls get doc recursivly
2015-08-13 22:47:33 +01:00
Henry Oswald
6ea284b17b
Merge pull request #9 from sharelatex/s3-archive
...
S3 archive
2015-08-13 14:20:46 +01:00
Henry Oswald
32bf64236b
fixed config to work with s3 correctly
2015-08-13 14:16:40 +01:00
Henry Oswald
ddf4692f0d
added acceptance test for large doc ~1mb
2015-08-13 13:59:40 +01:00
Henry Oswald
b8884352f6
added some better error logging
2015-08-13 13:59:22 +01:00
Henry Oswald
859e8a0e57
- deal with calling archive twice on same project
...
- clean up unit tests
- change s3 keys
- use err not error
2015-08-13 13:00:09 +01:00
Henry Oswald
9af2c07c3b
always add archiving root in
2015-08-13 12:59:04 +01:00
Brian Gough
aa599b0d90
added event loop monitor
2015-06-23 13:55:33 +01:00
Henry Oswald
6e4ad90cac
bumped mongojs version
2015-06-10 15:37:06 +01:00
Henrique Dias
42f2afc4dd
remove unarchived docs from s3
2015-06-03 20:05:15 -03:00
Henrique Dias
9a68bfb393
fix unit tests
2015-06-03 12:00:08 -03:00
Henrique Dias
aa23c1da56
md5 check for doc lines
2015-06-03 11:45:47 -03:00
Henrique Dias
5ba14522da
handling error
2015-06-02 20:08:50 -03:00