Antoine Clausse
7f48c67512
Add prefer-node-protocol
ESLint rule ( #21532 )
...
* Add `unicorn/prefer-node-protocol`
* Fix `unicorn/prefer-node-protocol` ESLint errors
* Run `npm run format:fix`
* Add sandboxed-module sourceTransformers in mocha setups
Fix `no such file or directory, open 'node:fs'` in `sandboxed-module`
* Remove `node:` in the SandboxedModule requires
* Fix new linting errors with `node:`
GitOrigin-RevId: 68f6e31e2191fcff4cb8058dd0a6914c14f59926
2024-11-11 09:04:51 +00:00
Brian Gough
9babc70df7
Merge pull request #17362 from overleaf/bg-chai-object-id-tests
...
fix for chai object id tests
GitOrigin-RevId: 98123dbc930c6ee57be3a118177426120482c5f4
2024-07-16 08:04:46 +00:00
Eric Mc Sween
ab2c5bcf2a
Merge pull request #15720 from overleaf/em-remove-docops-code
...
Remove code related to the docOps collection
GitOrigin-RevId: 38c1f752edda1cec4ed7051a0dba18b16ae4c754
2024-01-23 09:03:27 +00:00
Christopher Hoskin
5c70e5c534
Merge pull request #15475 from overleaf/csh-issue-11625-mongo-ug-5-docstore
...
Upgrade mongodb module for docstore from 4.11.0 to 6.2.0
GitOrigin-RevId: 443bdcc80398f7cd21bc78a801af3033d2b8e921
2023-12-14 09:03:21 +00:00
Eric Mc Sween
2cc84488a8
Merge pull request #15693 from overleaf/em-write-version-to-docs
...
Write version directly to docs collection
GitOrigin-RevId: 1133c78368197c3c2b160c224bbeb5bfb46b8729
2023-11-16 09:03:14 +00:00
Eric Mc Sween
bce5a31267
Merge pull request #15741 from overleaf/em-read-version-from-docs
...
Read doc version from the docs collection
GitOrigin-RevId: 1aad4f9d1e1781dae64768938413f36fd2d26703
2023-11-14 09:04:48 +00:00
Eric Mc Sween
f397d79439
Merge pull request #15648 from overleaf/em-promisify-doc-manager
...
Promisify DocManager
GitOrigin-RevId: c9ab368086492900e1617d5d96943d405f25883d
2023-11-09 09:03:10 +00:00
Jakob Ackermann
c1e6b2c990
Merge pull request #12230 from overleaf/jpa-upsert-rev-check
...
[docstore] add rev-check to doc upsert and retry update once
GitOrigin-RevId: 754f005024ed809ae7365ef38f10a961c5546171
2023-03-23 09:05:02 +00:00
Jakob Ackermann
e4efe121da
Merge pull request #12229 from overleaf/jpa-reject-decrement-doc-version
...
[docstore] reject doc updates that decrement the doc version
GitOrigin-RevId: 533cc5ece8d5684c85b2f63fa2a093c68f6b5877
2023-03-22 09:04:55 +00:00
Eric Mc Sween
49f1312b27
Merge pull request #12205 from overleaf/em-camel-case-docstore
...
Camel case variables in docstore
GitOrigin-RevId: e6c2015cfb63ce125fd32ba8b4f904712b2bb9aa
2023-03-17 09:05:12 +00:00
Eric Mc Sween
de4091f955
Merge pull request #7869 from overleaf/em-docstore-archive-lock
...
Add a lock around doc archiving
GitOrigin-RevId: eaf85dbc3b491edd15eeb2c1a84df3a2883fb61d
2022-05-18 08:04:44 +00:00
Jakob Ackermann
7f9fd00bda
Merge pull request #5367 from overleaf/jpa-node-handle-callback-err
...
[misc] fix eslint violations for node/handle-callback-err
GitOrigin-RevId: 83a4900e8861010df1917bff49382bd9c93375bd
2021-10-28 08:03:26 +00:00
Jakob Ackermann
540b52c128
[misc] run format_fix and lint:fix
2021-07-13 12:04:48 +01:00
Jakob Ackermann
2c35adaf48
[misc] switch from settings-sharelatex to @overleaf/settings
2021-07-12 17:47:20 +01:00
Jakob Ackermann
e80d013268
[misc] drop the deleteDoc endpoint -- use patchDoc instead
2021-04-12 17:31:18 +01:00
Eric Mc Sween
5efae3bee6
Add a global test setup file
...
Configure chai and SandboxedModule globally instead of in every test
file. Also add globals that are required for SandboxedModule to work in
Node 12.
2021-03-16 08:41:46 -04:00
Jakob Ackermann
26bc074098
[DocstoreManager] patchDoc: allow updates after deletion
2021-02-17 11:31:01 +00:00
Jakob Ackermann
dd4f4057f4
[misc] add a new endpoint for changing a docs meta data -- incl. deleted
...
- Validate the request payload with joi -- includes acceptance tests.
- Reject updates to docs that have been deleted.
2021-02-15 13:13:48 +00:00
Jakob Ackermann
708bdfd197
[DocManager] optionally flush docs out of mongo when deleting them
2021-02-09 11:17:46 +00:00
Jakob Ackermann
df0747ec48
[misc] migrate the app to the native mongo driver
...
acceptance tests to follow in a separate commit
2020-08-25 09:40:59 +01:00
Simon Detheridge
04ae868fe2
Update unit tests for object-persistor
2020-07-23 19:43:51 +01:00
Tim Alby
c854f1f570
prettier auto-format
2020-05-28 15:20:54 +02:00
Simon Detheridge
088fd29391
prettier: convert test/unit decaffeinated files to Prettier format
2020-02-17 10:49:11 +00:00
Simon Detheridge
75f1245610
decaffeinate: rename test/unit/coffee to test/unit/js
2020-02-17 10:49:08 +00:00