James Allen
05a1939547
Don't log out doc lines and ranges
2017-09-20 09:42:08 +02:00
Brian Gough
abe90cad10
Revert "Merge pull request #23 from sharelatex/bg-optimise-get-all-docs"
...
This reverts commit c1337cf23f37bd9ba48419accf1f54c00390e0ea, reversing
changes made to fbb2fa15bf4239db006db742f906554d61a0eac4.
2017-06-30 14:54:11 +01:00
Brian Gough
a2ac37ac99
comments about optimistic loading
2017-06-28 10:06:50 +01:00
Brian Gough
b9b0596d83
optimistically load all docs
2017-06-27 16:58:20 +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
ffd1aa0ca4
just get doc_id for quick check to see if it exists
2017-03-10 11:45:03 +00:00
Henry Oswald
7adc67d13a
add missing error handler
2017-03-10 10:37:11 +00:00
Henry Oswald
f067c039fe
always search for inS3 when getting a doc
2017-03-09 18:51:54 +00:00
James Allen
fb39bb0442
Validate that ranges are present in a set document request
2017-01-19 12:15:14 +01: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
7717625534
Include deleted docs when archiving
2016-12-05 16:31:51 +00:00
James Allen
0a65a5eabf
Set and get ranges along with lines
2016-12-05 14:21:49 +00:00
James Allen
ca96d168dd
Make attributes that can be set in mongo flexible
2016-12-02 15:22:08 +00:00
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
8b95a04a36
Don't look up version in mongo if not needed
2016-11-30 15:08:56 +00:00
James Allen
50f2983912
Log out version when updating doc
2016-11-29 16:49:35 +00:00
James Allen
eb9a3b314a
Set/get version in docOps via docstore HTTP API
2016-11-28 14:55:16 +00: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
Henry Oswald
ef4e437c3f
improve doc manager so it calls get doc recursivly
2015-08-13 22:47:33 +01:00
Henry Oswald
b8884352f6
added some better error logging
2015-08-13 13:59:22 +01:00
Henrique Dias
5c31e80062
more refactoring
2015-06-02 16:29:32 -03:00
Henrique Dias
ddd26798f1
refactoring
...
s3 filter in router
2015-06-02 15:55:22 -03:00
Henrique Dias
86f16caeef
fix some issues
2015-06-02 15:13:28 -03:00
Henry Oswald
ea92f57acc
point where we unset doc lines also search on doc rev to make sure
...
the document has not been updated
2015-06-02 12:39:49 +01:00
Henry Oswald
60bc7bf4e1
pulled logic for arching docs arpart a bit, can be moved into its own file
...
hacked out (needs tests) the unarchiving of individual docs & doc updates
2015-06-02 12:36:38 +01:00
Henry Oswald
19f1a9ad82
changed style of async jobs to map to use underscore which is like we
...
use in the rest of the stack. Also removed a few => binds which are
not needed
2015-06-02 10:59:35 +01: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
d59fb0d590
Merge branch 'master' into doc-collection-only
...
Conflicts:
app/coffee/DocManager.coffee
2015-02-27 14:58:38 +00:00
Henry Oswald
53480153e3
if the doc has no lines then it is new and needs to be written
2015-02-27 14:50:08 +00:00
Henry Oswald
32829f0e6e
remove old rev, not needed any more
2015-02-27 14:06:06 +00:00
Henry Oswald
7242119532
simplified DocManager.updateDoc so it calls mongomanager.findDoc
...
makes the logic for dealing new documents that are not in mongo yet
much simpler
2015-02-26 16:00:28 +00: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
3cd3c118d1
don't log out when doc lines are [] as this is a new empty doc
2015-02-23 13:17:55 +00:00
Henry Oswald
daf7c4f68e
log out when a doc from the project collection is used
2015-02-22 18:45:21 +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
7b0b72494f
write to doc collection first
2015-01-27 15:05:35 +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
Henry Oswald
535d4435bf
added missing err check
2015-01-21 12:31:06 +00:00
Henry Oswald
704bf53fe5
Write docs to do collection and project collection
...
- docs are written to project collection then doc collection
- deletes used to insert into doc collection, now its the same upsert
with deleted = true
- does not set delted = false for new docs as it is not needed, save space
- changed delete to be seperate update on mongo
2015-01-21 11:52:39 +00:00
James Allen
4818ae8131
Use flag to only get deleted doc when appropriate
2014-06-05 14:10:44 +01:00
James Allen
7870b4fb55
Return deleted docs
2014-06-05 13:29:50 +01:00
James Allen
828aefe2c8
Add in extra null check
2014-06-05 10:20:56 +01:00
James Allen
32f1a327a6
Add in null check
2014-06-03 11:42:41 +01:00
James Allen
dc9fff94f3
Add null checks for null folders
2014-05-29 14:21:46 +01:00