Commit graph

42 commits

Author SHA1 Message Date
Eric Mc Sween
f6c1e2738d Merge pull request #10938 from overleaf/em-esm-spelling
Migrate spelling to ES modules

GitOrigin-RevId: 4a200c8d1c28be44027cc8a3097e42575ab6593f
2022-12-21 09:03:55 +00:00
Jakob Ackermann
2465a32451 Merge pull request #6234 from overleaf/jpa-web-owns-spelling-preferences
[misc] move ownership of spellingPreferences collection to web

GitOrigin-RevId: f2584a1119a578c3df15371c6798923a4f2d15ae
2022-01-07 09:03:11 +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
58eafb1583 [misc] run format_fix and lint:fix 2021-07-13 12:04:47 +01:00
Jakob Ackermann
053a0f6333 [misc] switch from settings-sharelatex to @overleaf/settings 2021-07-12 17:47:20 +01:00
Eric Mc Sween
11261a0cb9 Add global test setup
Configure SanboxedModule and chai in a central place. Configure
SandboxedModule globals that are needed in Node 12.
2021-03-19 16:04:30 -04:00
Jakob Ackermann
9afdb32689 [misc] bump metrics module to 3.4.1
- renamed package from `metrics-sharelatex` to `@overleaf/metrics`
- drop support for statsd backend
- decaffeinate
- compress `/metrics` response using gzip
- bump debugging agents to latest versions
- expose prometheus interfaces for custom metrics (custom tags)
- cleanup of open sockets metrics
- fix deprecation warnings for header access
2020-11-25 11:57:24 +00:00
Jakob Ackermann
033af5091f [SpellingAPIManager] get the list of ignored misspellings from settings
The settings will allow overrides via the environment variable
 `IGNORED_MISSPELLINGS`.
2020-10-08 09:36:47 +01:00
Jakob Ackermann
cb4a7516ac [misc] migrate the app to the native mongo driver, drop mongojs 2020-09-07 12:21:48 +01:00
Jakob Ackermann
c722a79e93 [misc] bump the dev-env to 3.3.2 2020-08-10 17:23:15 +01:00
Miguel Serrano
803ed1607c format:fix 2020-06-03 10:52:36 +02:00
Tim Alby
72d16c7c1f filter out duplicates learned words 2020-02-18 10:58:03 -05:00
Tim Alby
1d405914fd don't learn the same word twice 2020-02-18 09:22:50 -05:00
Jakob Ackermann
90d12cc602 [test/unit] misc: cleanup a pending interval 2020-02-11 19:01:11 +01:00
Brian Gough
672d03eae6 formatting fixes 2019-10-03 09:41:16 +01:00
Brian Gough
c7a7887d67 remove decaff comments 2019-10-02 16:47:36 +01:00
Brian Gough
0e14ad50db fix eslint check 2019-10-02 16:34:15 +01:00
Brian Gough
1f861a6772 fix regex and add AspellWorker unit tests 2019-10-02 16:29:18 +01:00
Simon Detheridge
7105ee58d3 Cleanup decaffienation in LearnedWordsManagerTests 2019-07-22 12:14:30 +01:00
Simon Detheridge
e7ab9f79a9 Add endpoint to remove learned words 2019-07-20 14:04:08 +01:00
Miguel Serrano
134ff0b29d Removed concurrent aspell works within the same request (#32) 2019-07-16 08:51:15 +02:00
Miguel Serrano
74c9a3c095 updated API Manager to call aspell in batches (#30) 2019-07-11 12:29:00 +02:00
Miguel Serrano
0eba057cef Initial decaffeination (#24) 2019-07-03 13:41:01 +01:00
Henry Oswald
b89db17ea6 reduce logging 2019-01-09 15:41:52 +00:00
Henry Oswald
8da92907b1 fix unit test 2017-11-02 11:24:01 +00:00
Henry Oswald
31d62c3359 added delete dic endpoint 2017-10-30 16:57:34 +00:00
Shane Kilkelly
a03bfbc020 Use post-filtering for whitelist, like learnedWords 2017-06-23 10:00:47 +01:00
Shane Kilkelly
407283ee3c Fix a daft mistake, blank out whitelisted words, rather than remove
This had caused an issue whereby spelling-mistakes would be highlighted
on the wrong word in the client. This was a function of how many whitelisted
words had already occured in the sequence. An off-by-n error.
2017-06-23 09:14:39 +01:00
Shane Kilkelly
00358aa14b Use more robust checking of error values 2017-06-22 10:09:30 +01:00
Shane Kilkelly
e19806cf8b Mock out metrics in test 2017-06-22 09:24:08 +01:00
Shane Kilkelly
7842bcd24f Add a whitelist of words which should not be spellchecked 2017-06-22 09:23:47 +01:00
Shane Kilkelly
54af5fec96 Upgrade metrics 2017-03-16 16:35:51 +00:00
Brian
9a41def921 increase time allowed for exiting ASpellWorker test from 100ms to 1s 2015-05-20 20:42:49 +01:00
Brian Gough
6e0d72a3b1 timeout does not need async test here 2015-05-20 11:45:17 +01:00
Brian Gough
da7250c6f2 disable logger in tests 2015-05-20 11:44:54 +01:00
James Allen
f7e0f0c54b Add comment about tests on OS X 2015-03-20 15:02:26 +00:00
Brian
31f6013172 increase delay for timeout in test 2015-03-11 15:38:19 +00:00
Brian Gough
c549d29d8e test that Aspell is killed by timeout 2015-03-04 16:44:13 +00:00
Henry Oswald
5b0f69a50d added cache to learn words manager 2015-03-03 14:28:47 +00:00
Henry Oswald
536e014600 remove js tests 2015-03-03 14:27:55 +00:00
Henry Oswald
35254be989 fix up the aspell tests 2015-03-03 14:25:54 +00:00
James Allen
5c002bc9b1 Use ShareLaTeX conventions 2014-08-15 12:25:54 +01:00