Jakob Ackermann
8a8a830ad3
[misc] simplify mongodb collection access using a shared db construct
...
Resolve the getCollection Promises once and store the result in a shared
`db` object which can get imported by all the call-sites.
The http server is starting only after a Promise of `waitForDb()`
resolves. This covers the app code and the acceptance tests.
2020-09-17 15:39:44 +01:00
Jakob Ackermann
2fa09928ee
[misc] migrate acceptance tests to the native mongo driver, drop mongojs
2020-08-25 09:41:23 +01:00
Simon Detheridge
a18146612a
Remove unhandled-promise-rejection handler
2020-07-31 16:25:33 +01:00
Simon Detheridge
e302c1d844
Update acceptance tests for object-persistor and gcs
2020-07-23 19:43:33 +01:00
Simon Detheridge
287d705671
Update buildscripts to use fake-gcs instead of S3 credentials
2020-07-23 19:30:13 +01:00
Tim Alby
c854f1f570
prettier auto-format
2020-05-28 15:20:54 +02:00
Simon Detheridge
785a6cb544
prettier: convert test/acceptance decaffeinated files to Prettier format
2020-02-17 10:49:20 +00:00
Simon Detheridge
7e131e4c71
decaffeinate: rename test/acceptance/coffee to test/acceptance/js
2020-02-17 10:49:18 +00:00
decaffeinate
1391ae96e7
decaffeinate: Run post-processing cleanups on ArchiveDocsTests.coffee and 6 other files
2020-02-17 10:49:16 +00:00
decaffeinate
73b0bc023f
decaffeinate: Convert ArchiveDocsTests.coffee and 6 other files to JS
2020-02-17 10:49:14 +00:00
decaffeinate
93c718dae9
decaffeinate: Rename ArchiveDocsTests.coffee and 6 other files from .coffee to .js
2020-02-17 10:49:13 +00:00
Simon Detheridge
03b8a1901d
Account for ranges in large json payloads and add line-count limit
2019-08-06 09:50:04 +01:00
Simon Detheridge
5261e1b0be
Add endpoint to completely purge a document
2019-07-02 15:02:37 +01:00
Henry Oswald
c1947c5cbd
dockerise app, 1.1.3 build scripts
2018-05-23 11:27:31 +01:00
James Allen
f94e33a3a9
Merge branch 'master' into ja-archive-ranges
...
Conflicts:
app/coffee/DocArchiveManager.coffee
test/acceptance/coffee/ArchiveDocsTests.coffee
2017-03-30 17:19:42 +01:00
James Allen
a9ab7b739d
Archive ranges as well as doc lines
2017-03-30 17:13:43 +01:00
Henry Oswald
c0e23df82b
break getDoc into multiple helpers, stop passing filters though from other calls
2017-03-15 22:09:56 +00:00
Henry Oswald
f067c039fe
always search for inS3 when getting a doc
2017-03-09 18:51:54 +00:00
Henry Oswald
d6146b2970
got failing acceptence test
2017-03-09 18:18:50 +00:00
Shane Kilkelly
d09a4cb275
Lengthen sleep for acceptance tests
2017-03-06 15:11:04 +00:00
Shane Kilkelly
929ffbd83a
Don't npm rebuild inside container
2017-02-20 10:07:30 +00:00
James Allen
0174495f75
Add an end point to get all the ranges in a project
2016-12-09 14:37:24 +00:00
James Allen
6fa8b89154
Be explicit about the data we return from mongo
2016-12-05 17:27:31 +00:00
James Allen
a6ec672d84
Merge branch 'ja-delete-refactor' into ja-track-changes
...
Conflicts:
test/acceptance/coffee/ArchiveDocsTests.coffee
2016-12-05 16:58:29 +00:00
James Allen
3d195de3e9
Improve testing of archiving and be explicit about include_deleted parameter
2016-12-05 16:48:01 +00:00
James Allen
b8a97731e4
Merge branch 'master' into ja-track-changes
...
Conflicts:
test/acceptance/coffee/GettingAllDocsTests.coffee
2016-12-05 14:58:57 +00:00
James Allen
bd5086c054
Don't return deleted docs with all project docs
2016-12-05 14:37:44 +00:00
James Allen
0a65a5eabf
Set and get ranges along with lines
2016-12-05 14:21:49 +00:00
James Allen
144bae3a55
Add an error guard around the version being present
2016-12-02 15:17:38 +00:00
James Allen
7ede096903
Merge branch 'master' into ja-set-version-in-docstore
2016-11-29 17:24:53 +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
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
cf07e2fec5
improve archve doc acceptence tests
2015-08-13 22:48:17 +01:00
Henry Oswald
ddf4692f0d
added acceptance test for large doc ~1mb
2015-08-13 13:59:40 +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
Henrique Dias
5ba14522da
handling error
2015-06-02 20:08:50 -03:00
Henrique Dias
a26320013d
more acceptance tests
2015-06-02 19:24:45 -03:00
Henrique Dias
5c31e80062
more refactoring
2015-06-02 16:29:32 -03:00
Henrique Dias
7c7ff64904
retrieving all docs from s3
2015-06-01 19:36:26 -03:00
Henrique Dias
7f5204f0f7
initial version for archive docs in S3
2015-06-01 18:24:40 -03:00
Henry Oswald
5861231548
docstore now only touches doc collection
...
- need to run migration 1 before using this for this to work
- added acceptence test so new documents updated should be upserted, not return 404
2015-02-26 14:54:08 +00:00
Henry Oswald
a0832c79e6
return 404 if doc is deleted and include_deleted is not set to true
2015-02-03 14:05:08 +00:00
Henry Oswald
7fe25fe28f
improved docstore acceptence tests to deal with changing docs on get all docs
2015-01-27 17:05:07 +00:00
Henry Oswald
5d2c09bf75
read docs from doc collection first
...
- removes include deleted flag as it is irrelivant now
2015-01-22 15:05:48 +00:00