Commit graph

39 commits

Author SHA1 Message Date
Jakob Ackermann
918cd0bfbe [misc] mongodb: use the new db connector by default
mongojs was enabling it by default as well.
2020-09-10 10:09:30 +01:00
Jakob Ackermann
f6083a2d51 [misc] mongodb: refactor the process of setting up the db construct
Co-Authored-By: John Lees-Miller <jdleesmiller@gmail.com>
2020-09-10 10:08:30 +01:00
Jakob Ackermann
0cf5cad3b8 [misc] mongodb: drop the getCollection helper 2020-09-10 10:08:30 +01:00
Jakob Ackermann
4080784310 [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:
REF: 586706a9439c3591fc9613dc877f055096ca073a
REF: d026569d2eb4123e30c771a55a001b42d5ade72f
2020-09-10 10:08:30 +01:00
Jakob Ackermann
a52c0fe9fb [misc] mongodb: drop intermediate dbPromise
It would confuse the logic of a follow-up commit.
2020-09-10 10:08:23 +01:00
Brian Gough
e08865646f upgrade from metrics-sharelatex to @overleaf/metrics 2020-09-09 10:37:56 +01:00
Jakob Ackermann
39ea30355e [misc] simplify the naming around waiting for a mongo connection
Co-Authored-By: Eric Mc Sween <eric.mcsween@overleaf.com>
Co-Authored-By: Miguel Serrano <mserranom@gmail.com>
Co-Authored-By: Simon Detheridge <s@sd.ai>
2020-08-24 17:41:03 +01:00
Jakob Ackermann
0c8f04a011 [misc] migrate to native mongo driver 2020-08-19 13:04:47 +01:00
Jakob Ackermann
e992166680 [misc] bump the dev-env to 3.3.2 2020-08-10 17:01:11 +01:00
Ersun Warncke
686f0f0102 [misc] fix express deprecations
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-04-15 18:43:23 +02:00
mserranom
6f90684fa6 Removed morgan logger 2020-03-17 17:23:17 +01:00
mserranom
2afc0894bc updated to express 4 2020-03-06 19:33:17 +01:00
mserranom
d5e3f9b4c8 make format_fix 2020-03-06 19:17:40 +01:00
mserranom
3eb217402b fixed mongodb 3.x change requiring 2020-03-06 19:15:21 +01:00
mserranom
d27275a3ab fixed linting 2020-03-06 17:03:17 +01:00
mserranom
c70a6bb92b Removed V8 profiler 2019-07-18 09:42:38 +00:00
Shane Kilkelly
f5f83854eb format fix 2019-06-27 10:47:27 +01:00
Henry Oswald
8d74b9e2ec call app chat not chat-sharelatex 2019-02-05 18:50:57 +00:00
Christopher Hoskin
03f7982bae Switch to v2 metrics 2019-01-04 11:37:48 +00:00
Nate Stemen
03093dc283 Prettier: convert app/js decaffeinated files to Prettier format 2018-12-20 14:13:59 -05:00
Nate Stemen
976d1675e6 Rename app/coffee dir to app/js 2018-12-20 14:13:56 -05:00
decaffeinate
45f865ebbb decaffeinate: Run post-processing cleanups on MessageFormatter.coffee and 6 other files 2018-12-20 14:13:56 -05:00
decaffeinate
0a12cee071 decaffeinate: Convert MessageFormatter.coffee and 6 other files to JS 2018-12-20 14:13:53 -05:00
decaffeinate
36a9f79d11 decaffeinate: Rename MessageFormatter.coffee and 6 other files from .coffee to .js 2018-12-20 14:13:50 -05:00
Shane Kilkelly
619e49ab04 update to new api 2017-03-17 15:16:38 +00:00
Shane Kilkelly
f58f256864 upgrade metrics 2017-03-16 16:08:57 +00:00
James Allen
2f30732011 Don't read from comment thread if no global message thread exists 2017-02-24 16:20:06 +01:00
James Allen
dfe16d28a5 Add in guard for long messages 2017-02-14 11:43:50 +01:00
James Allen
7cf5db4c63 No need to return message after editing 2017-01-25 14:47:45 +01:00
James Allen
fa63eb6947 Allow editing/deleting of comments and threads 2017-01-24 15:44:32 +01:00
James Allen
3cf58083d4 Add profiling end point 2017-01-18 14:34:28 +01:00
James Allen
0e928a9aeb Don't fill user details 2017-01-06 14:14:47 +01:00
James Allen
1ff920e1b5 Add endpoints for resolving and reopening threads 2017-01-04 14:58:08 +01:00
James Allen
cb88e1e41b Add in support for threads for comments 2016-12-16 16:52:50 +00:00
James Allen
6ac2aa77a8 Clean up dead code and add acceptance tests 2016-12-14 17:38:14 +00:00
Xavier Trochu
0323787a64 Remove the internal metrics module.
The internal metrics module is unneeded as metrics-sharelatex does the
same function.
2015-11-19 17:00:12 +01:00
James Allen
5a58c8247e API/service layout deprecation warning 2015-10-07 13:44:57 +01:00
Henry Oswald
7af2fc4635 fix bug in chat with null messages 2015-06-23 21:18:08 +01:00
James Allen
8cb71e8fad Initial Open Source commit 2014-08-15 10:50:36 +01:00