Commit graph

318 commits

Author SHA1 Message Date
Christopher Hoskin
202ad40fb0 Bump settings to v1.1.0 2019-01-05 07:46:03 +00:00
Christopher Hoskin
f94754d041 Remove grunt 2019-01-05 07:44:30 +00:00
Christopher Hoskin
e3e99a6214 Bump logger to v1.5.9 2019-01-03 16:30:36 +00:00
Christopher Hoskin
2c154d93b0 Add app.js.map to .gitignore 2019-01-03 15:28:33 +00:00
Christopher Hoskin
0f74fc5a1f Add dev to npm-shrinkwrap 2019-01-03 15:19:14 +00:00
Christopher Hoskin
2f15f5d6f0 Bump logger to v1.5.8 2019-01-03 10:09:43 +00:00
Christopher Hoskin
3e9d2b9656 Bump build scripts to 1.1.10 2019-01-03 10:06:42 +00:00
Christopher Hoskin
f73856064b Switch to v2 metrics 2019-01-03 10:03:49 +00:00
Christopher Hoskin
d5017f41fe Fix npm-shrinkwrap 2019-01-03 09:45:27 +00:00
Henry Oswald
a4eda59189 add getDic 2019-01-02 15:23:40 +00:00
Henry Oswald
de051ceebc make cache read and writeable 2018-10-04 10:42:43 +01:00
Henry Oswald
6d1f4db12e make cache dir 2018-10-04 10:15:32 +01:00
Henry Oswald
493e4fe693 bump mocha 2018-10-03 15:32:50 +01:00
Henry Oswald
836c77616f update build scripts to 1.1.9 2018-10-03 15:19:45 +01:00
Henry Oswald
faedd31957 update config to use more env vars 2018-10-03 15:18:53 +01:00
Henry Oswald
3dd8513015 try pointing it to gcr.io/csh-gcdm-test 2018-05-22 12:31:16 +01:00
Henry Oswald
aada9417ea dockerised for k8, update build scripts to 1.1.3 2018-05-22 12:26:36 +01:00
James Allen
b2ca5c993f Add custom Dockerfile with aspell packages 2017-12-29 08:16:19 +00:00
James Allen
4ab7f7212d Provide hosts as environment settings and add npm run start script 2017-12-29 08:16:04 +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
Joe Green
84ff55cf14 Update Jenkinsfile 2017-10-16 14:11:57 +01:00
Joe Green
225b265e34 only alert on master 2017-10-12 16:58:19 +01:00
Joe Green
a483976b35 build.txt 2017-09-04 14:54:54 +01:00
Joe Green
b1b0acc4b3 use aspell utility image 2017-08-14 09:14:13 +01:00
Joe Green
094f3b0168 use node 6.9.5 2017-08-11 14:33:57 +01:00
Joe Green
266fbd0e6d Create Jenkinsfile 2017-08-11 14:28:45 +01:00
Shane Kilkelly
ca293bdd8c upgrade to node 6.9.5 2017-06-27 13:29:27 +01: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
b7f79699fc Pin sinon version 2017-06-22 10:09:20 +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
0229794616 Add a .nvmrc file 2017-03-27 14:50:56 +01:00
Shane Kilkelly
8fead43fbe Update to metrics 1.7.1 2017-03-24 15:26:08 +00:00
Shane Kilkelly
6b3e2371c0 Update metrics version to 1.7.0 2017-03-21 13:47:49 +00:00
Shane Kilkelly
31128a2580 update to new api 2017-03-17 15:19:25 +00:00
Shane Kilkelly
54af5fec96 Upgrade metrics 2017-03-16 16:35:51 +00:00
Henry Oswald
33df3346f8 Merge branch 'master' of https://github.com/sharelatex/spelling-sharelatex 2016-12-13 09:14:31 +00:00
Henry Oswald
a695fd33b2 write cache into cache dir 2016-12-13 09:14:09 +00:00
Henry Oswald
e56c4b189a remove a bit of logging which is filling disk up 2016-11-24 18:54:32 +00:00
Brian Gough
f5c31cffd1 added npm shrinkwrap file 2016-03-24 15:44:49 +00:00
Brian Gough
bf2e1dfbfe add sentry logging 2016-03-23 13:47:28 +00:00
Brian Gough
0a94d1e475 avoid null callback 2016-03-23 13:44:29 +00:00
Brian Gough
8239bcd0b5 dump the cache every 30 minutes and load at startup 2016-03-04 11:58:37 +00:00
Brian Gough
fdd9357a42 upgrade lru-cache module to avoid performance regression with node 4.2
Fix performance regression on Node 4x #55
https://github.com/isaacs/node-lru-cache/pull/55
2016-03-04 11:33:35 +00:00
Henry Oswald
ef133cbf9a fix bad res.send 2016-03-01 13:22:51 +00:00
Henry Oswald
b872fbee32 add error check into health check 2016-03-01 13:20:20 +00:00
Henry Oswald
872612a8d3 added null check to health check controller 2016-02-29 12:50:37 +00:00
Henry Oswald
a427634cbb lock down metrics and spelling 2015-09-17 10:42:36 +01:00
Brian Gough
af21e0aec6 add metrics for memory and gc 2015-08-18 12:31:35 +01:00
Brian Gough
518dc17fdc upgrade to mongojs 1.3.0 (use mongodb-core driver)
also add garbage collection
2015-08-18 09:56:05 +01:00
Henry Oswald
b32064e2d5 bump logger-sharelatex 2015-06-08 13:10:53 +01:00
Henry Oswald
d0b6a4157f Merge branch 'master' of https://github.com/sharelatex/spelling-sharelatex 2015-06-07 11:43:51 +01:00
Henry Oswald
c3c5d8720a update mongojs driver 2015-06-07 11:43:43 +01:00
Brian
9a41def921 increase time allowed for exiting ASpellWorker test from 100ms to 1s 2015-05-20 20:42:49 +01:00
Brian
81fb8de1db allow mocha timeout to be specified on grunt command line 2015-05-20 20:41:51 +01:00
Brian Gough
f70476284b move callback _.once down to Worker, add handler for process close event
should fix timeout errors in tests
2015-05-20 11:53:28 +01:00
Brian Gough
6a241cba28 add grep option to grunt test:unit 2015-05-20 11:45:32 +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
Henry Oswald
800666fcb5 make startup message consistent 2015-04-30 15:05:49 +01:00
James Allen
f3338f621e Release version 0.1.4 2015-03-20 15:25:59 +00:00
James Allen
f7e0f0c54b Add comment about tests on OS X 2015-03-20 15:02:26 +00:00
Brian Gough
01d5322ef3 fix end of stream marker to handle languages like en_GB
when using language like 'en_GB' aspell reports it as 'en' in response
to $$l
2015-03-12 14:41:23 +00:00
Brian Gough
a91faaf55c use the language code $$l as the end of stream marker
cannot use a custom word in the session dictionary due to language
restrictions on allowed characters, e.g. armenian 'hy' does not allow
latin characters
2015-03-12 12:33:45 +00:00
Brian Gough
86d1092f85 include log line for each spell check 2015-03-12 11:43:09 +00:00
Brian Gough
e4a3e63ff7 remove unused parameter 2015-03-12 11:42:59 +00:00
Brian Gough
c9771272df include log message for process timeout 2015-03-12 11:24:04 +00:00
Brian Gough
821f4b9a24 clean up timers when Aspell process exits 2015-03-12 11:13:58 +00:00
Brian Gough
00153e61ad trim output when error occurs 2015-03-12 11:12:46 +00:00
Brian Gough
3bbd0d49a9 don't let error events overwrite exit event
(not sure if this can happen but it would be bad if it did)
2015-03-12 10:27:50 +00:00
Brian Gough
c8103a4f35 don't run the idle shutdown timer if the process has errored 2015-03-12 10:27:11 +00:00
Brian Gough
3da42df92c log when a worker is removed from the pool 2015-03-12 10:26:52 +00:00
Brian Gough
3542918941 add logging for ASpell worker errors 2015-03-12 09:55:15 +00:00
Brian Gough
7936269804 add metrics for ASpell workers 2015-03-12 09:54:57 +00:00
Brian Gough
ed33cd59b7 show hit rate to 2dp only 2015-03-12 09:53:58 +00:00
Brian Gough
b684ed0837 put a unique end of stream marker in the session dictionary 2015-03-11 16:58:22 +00:00
Brian Gough
a655041bdd fix typo in iterator for cache object 2015-03-11 15:57:33 +00:00
Brian
31f6013172 increase delay for timeout in test 2015-03-11 15:38:19 +00:00
Brian
080f33335a added stress test example 2015-03-11 15:37:18 +00:00
Brian
c3a70b6184 fix bug in worker cleanup 2015-03-11 14:53:06 +00:00
Brian
220f82a395 store suggestions as language:word instead of word
avoid words like 'constructor' from accessing properties of
suggestions object.
2015-03-11 14:52:06 +00:00
Brian
9bb534707f shutdown workers when idle 2015-03-10 13:33:05 +00:00
Brian
9c0272445f extend worker to include request count 2015-03-10 13:32:42 +00:00
Brian
5ba5fd5533 fix caching logic to include valid words, as well as mispellings
include logging of cache hits
2015-03-10 13:31:06 +00:00
Brian
10c3d3eb70 replace deprecated res.send(code) with res.sendStatus(code) 2015-03-09 15:56:49 +00:00
Brian
21c664b28c fix variable mismatch in error handler 2015-03-09 15:52:25 +00:00
Brian Gough
a36d14f4cc fix caching of suggestions 2015-03-04 17:00:19 +00:00
Brian Gough
c549d29d8e test that Aspell is killed by timeout 2015-03-04 16:44:13 +00:00
Brian Gough
a49f80cb21 support Aspell worker pool 2015-03-04 16:43:59 +00:00
Henry Oswald
726afb6b90 use sendstatus not send 2015-03-03 15:20:05 +00:00
Henry Oswald
a7185c412c use res.sendStatus not re.send 2015-03-03 14:45:32 +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
Henry Oswald
72ce615641 added lru cache 2015-03-03 13:57:16 +00:00
Henry Oswald
3212866e82 increase json size to 2mb 2015-03-03 13:57:05 +00:00
Henry Oswald
c8ec6451ce removed the reset of restify 2015-03-03 08:10:47 +00:00
Henry Oswald
7bbce79ff6 convert app to use express not restifiy so it works with metrics-sharelatex 2015-03-02 18:13:28 +00:00
Brian Gough
876ea130b9 check the words in batches, to avoid blocking the event loop 2015-03-02 16:58:10 +00:00
Henry Oswald
86416775fc added flame graph 2015-03-02 15:49:12 +00:00
Henry Oswald
57d214e2dd fix metrics key name 2015-03-02 14:59:30 +00:00
Henry Oswald
bf3e568db9 add timeout for health check 2015-03-01 12:56:31 +00:00
Henry Oswald
1d98d45320 fix port for health check 2015-03-01 12:53:10 +00:00
Henry Oswald
48badde67a Merge branch 'master' of https://github.com/sharelatex/spelling-sharelatex 2015-03-01 12:48:13 +00:00
Henry Oswald
eb193c24ae added health check endpoint 2015-03-01 12:45:14 +00:00
James Allen
920d498ff4 Release version 0.1.3 2015-02-26 11:36:08 +00:00
James Allen
22a1f8fdaf Release version 0.1.2 2015-02-10 13:17:34 +00:00
James Allen
aa7ab83ddf Lock down module versions 2014-08-19 14:13:24 +01:00
James Allen
86eb3b63d7 Release version 0.1.0 2014-08-19 13:54:48 +01:00
James Allen
6856a19b11 Update README.md 2014-08-15 12:37:17 +01:00
James Allen
103553bef1 Create LICENSE 2014-08-15 12:35:06 +01:00
James Allen
239f397067 Create README.md 2014-08-15 12:34:36 +01:00
James Allen
ce1177abe0 Create .travis.yml 2014-08-15 12:33:29 +01:00
James Allen
5c002bc9b1 Use ShareLaTeX conventions 2014-08-15 12:25:54 +01:00
James Allen
421647ff63 Initial open source commit 2014-08-15 12:13:35 +01:00