James Allen
f723b1699b
Mongo/redis no longer needed without acceptance tests
2015-10-07 18:39:47 +01:00
James Allen
9b40d34b2a
Acceptance tests no longer run on Travis
2015-10-07 18:39:24 +01:00
James Allen
3959cba071
add in acceptance tests
2015-10-07 14:20:30 +01:00
James Allen
b6106697a0
Don't look up user details in this api
2015-10-07 14:07:54 +01:00
James Allen
5a58c8247e
API/service layout deprecation warning
2015-10-07 13:44:57 +01:00
James Allen
ededf6f6b9
Set up beginnings of getContacts end point
2015-10-06 17:22:11 +01:00
James Allen
9d99b12ed5
Create (unit tested only) add contact end point
2015-10-06 16:41:35 +01:00
John Lees-Miller
946c1d56be
Merge pull request #3 from overleaf/error_handling
...
Error handling
2015-10-05 10:30:19 +01:00
John Lees-Miller
fcd9877a00
Merge pull request #2 from overleaf/anonymous-versions
...
Support for anonymous saved versions
2015-10-05 10:29:07 +01:00
Marc Egea i Sala
6ae47e8821
Bugfix: using statusElement and not codeElement again
2015-10-02 15:22:55 +01:00
Marc Egea i Sala
3970fb146c
Handle response errors through Util.getCodeFromResponse
...
Centralizing the exceptions to provide more details on fail.
2015-09-30 10:45:58 +01:00
Marc Egea i Sala
8648f8bde7
Use WLUser to provide default name and email
2015-09-29 11:36:10 +01:00
Marc Egea i Sala
61a5c5870c
Support for anonymous saved versions
...
This fixes a case when de API sends a version without user. There was a
bug allowing to create anonymous versions in the application and we
have to support the old data.
The problem here is that SnapshotInfo classes are inflated from json
via Gson. This method does not call any constructor and, since the json
does not include the ‘user’ key, the bridge crashes because we’re not
expecting null users.
I’m not happy with this fix, but is the minimum solution that does not
affect anything else.
2015-09-25 16:15:37 +01:00
John Lees-Miller
3635257cac
Merge pull request #1 from overleaf/catching-null-pointer-exceptions
...
Loggin API response in order to figure out the use case for errors
2015-09-24 13:45:01 +01:00
Marc Egea i Sala
78c92e62b6
Loggin API response in order to figure out the use case for errors
2015-09-24 12:33:51 +01:00
Henry Oswald
f1bf0c97ec
make archive and unarchive parallelLimit to speed it up
2015-09-22 09:41:26 +01:00
Shane Kilkelly
3217b1d58f
When serving output files, intelligently determine the appropriate content-type.
...
cherry pick 6fa3fda3ed28239cf3ac9720629f9707663aa197 from datajoy.
2015-09-21 16:59:35 +01:00
Henry Oswald
a427634cbb
lock down metrics and spelling
2015-09-17 10:42:36 +01:00
Henry Oswald
cf28ee4f9b
locked down packages
2015-09-17 10:34:27 +01:00
Henry Oswald
ddcfc3ee61
lock down smoke test and metrics version
2015-09-17 10:30:12 +01:00
Shane Kilkelly
0d450b4e33
Tighten up error handling.
2015-09-10 11:10:30 +01:00
Shane Kilkelly
fcfc595c35
Handle potential error before calling LocalFileWriter.writeStream.
2015-09-10 09:12:49 +01:00
Henry Oswald
d7d0a6d9b0
Merge pull request #33 from sharelatex/pr/28
...
wordcount
2015-09-09 14:03:20 +01:00
Henry Oswald
4ee50b7239
- fixed bug with texcount returning wrong data for nauty lines
...
- improved acceptence test for word count to use nauty lines
2015-09-09 13:52:45 +01:00
Henry Oswald
ec338f8c10
add -inc to word count
...
use -inc to word count included files
also moved private function to bottom
2015-09-09 12:47:08 +01:00
Henry Oswald
d44cfb8614
added test to check compile should continue on error downloading http
...
resource
also improved logging
2015-09-09 09:44:38 +01:00
Henry Oswald
4b3aa933a3
don't error if a http resource can not be download
...
try and continue, log the error but you might still be able to
compile. prevents issue with badly uploaded images in filstore
2015-09-08 21:58:27 +01:00
Henrique Dias
d332665648
move texcount to docker
2015-09-08 10:19:46 -03:00
Henrique Dias
09032565e2
Merge remote-tracking branch 'upstream/master' into texcount
2015-09-08 09:13:04 -03:00
Shane Kilkelly
a6fff2d4e4
Check for a large response body, rather than exact match on the first few bytes.
2015-09-08 11:50:43 +01:00
Shane Kilkelly
c6a81c94eb
Test the cacheWarm option for preview.
2015-09-08 11:47:43 +01:00
Shane Kilkelly
b8042ae771
Add an acceptance test that uses a pdf file.
2015-09-08 11:43:19 +01:00
Shane Kilkelly
297ad78b1e
Add an acceptance test to check the preview endpoint doesn't time out.
...
This endpoint needs a lot more testing.
2015-09-08 10:32:41 +01:00
Shane Kilkelly
da5a538095
Fix calls to PersistorManager.getFileStream which were missed in initial refactor.
...
This should fix a breakage in the template publishing workflow.
Ref: b70b837b7ba29b0631f3105ec1dd5f6cdebbd195
2015-09-08 09:23:08 +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
Shane Kilkelly
9b8f11f517
Fix the check for a success response from S3.
...
We need to handle both a 200 and 206 (partial content) response.
2015-09-01 12:25:10 +01:00
Shane Kilkelly
82af1be756
Improve testing of error conditions in the FSPersistorManager.
2015-09-01 12:10:30 +01:00
Shane Kilkelly
edc06c82e5
Correct usage of '==' rather than '=' when checking err.code.
2015-09-01 12:10:05 +01:00
Shane Kilkelly
8bbf81f4bc
If the S3 service produces an error, handle it.
2015-09-01 11:36:28 +01:00
Shane Kilkelly
47fdf3c5c9
Ensure that Filestore responds with 404 when a file does not exist.
2015-08-31 16:47:16 +01:00
James Allen
03e9d7390f
Add in mongo health check end point
2015-08-31 15:57:26 +01:00
James Allen
669cb0c085
Merge branch 'master' of github.com:sharelatex/real-time-sharelatex
2015-08-31 14:04:59 +01:00
James Allen
da28b0fc70
Use updated metrics with unlimited socket config
2015-08-31 14:04:54 +01:00
Henry Oswald
3c70acd560
added metrics into realtime around doc update manager
2015-08-29 08:26:16 +01:00
James Allen
d79793c34f
Monitor get document times
2015-08-29 08:22:43 +01:00
Shane Kilkelly
4d60872782
Merge branch 'master' of github.com:sharelatex/filestore-sharelatex
2015-08-28 14:48:25 +01:00