Merge pull request #21554 from overleaf/ae-delete-spelling

Remove the spelling service

GitOrigin-RevId: ca7c17160e79d84740f32bbe9c73bc74c2714ffc
This commit is contained in:
Christopher Hoskin 2024-11-12 09:31:49 +00:00 committed by Copybot
parent da9de7fd9c
commit 4324c4a089
8 changed files with 1 additions and 75 deletions

View file

@ -13,7 +13,6 @@ NOTIFICATIONS_HOST=notifications
PROJECT_HISTORY_HOST=project-history PROJECT_HISTORY_HOST=project-history
REALTIME_HOST=real-time REALTIME_HOST=real-time
REDIS_HOST=redis REDIS_HOST=redis
SPELLING_HOST=spelling
WEBPACK_HOST=webpack WEBPACK_HOST=webpack
WEB_API_PASSWORD=overleaf WEB_API_PASSWORD=overleaf
WEB_API_USER=overleaf WEB_API_USER=overleaf

View file

@ -8,7 +8,6 @@ volumes:
mongo-data: mongo-data:
redis-data: redis-data:
sharelatex-data: sharelatex-data:
spelling-cache:
web-data: web-data:
history-v1-buckets: history-v1-buckets:
@ -124,15 +123,6 @@ services:
volumes: volumes:
- redis-data:/data - redis-data:/data
spelling:
build:
context: ..
dockerfile: services/spelling/Dockerfile
env_file:
- dev.env
volumes:
- spelling-cache:/overleaf/services/spelling/cache
web: web:
build: build:
context: .. context: ..
@ -163,7 +153,6 @@ services:
- notifications - notifications
- project-history - project-history
- real-time - real-time
- spelling
webpack: webpack:
build: build:

40
package-lock.json generated
View file

@ -26,7 +26,6 @@
"services/project-history", "services/project-history",
"services/real-time", "services/real-time",
"services/references", "services/references",
"services/spelling",
"services/templates", "services/templates",
"services/third-party-datastore", "services/third-party-datastore",
"services/third-party-references", "services/third-party-references",
@ -8414,10 +8413,6 @@
"resolved": "libraries/settings", "resolved": "libraries/settings",
"link": true "link": true
}, },
"node_modules/@overleaf/spelling": {
"resolved": "services/spelling",
"link": true
},
"node_modules/@overleaf/stream-utils": { "node_modules/@overleaf/stream-utils": {
"resolved": "libraries/stream-utils", "resolved": "libraries/stream-utils",
"link": true "link": true
@ -40929,6 +40924,7 @@
"services/spelling": { "services/spelling": {
"name": "@overleaf/spelling", "name": "@overleaf/spelling",
"version": "0.1.4", "version": "0.1.4",
"extraneous": true,
"dependencies": { "dependencies": {
"@overleaf/logger": "*", "@overleaf/logger": "*",
"@overleaf/metrics": "*", "@overleaf/metrics": "*",
@ -40951,11 +40947,6 @@
"typescript": "^5.0.4" "typescript": "^5.0.4"
} }
}, },
"services/spelling/node_modules/underscore": {
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz",
"integrity": "sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g=="
},
"services/templates": { "services/templates": {
"name": "@overleaf/templates", "name": "@overleaf/templates",
"dependencies": { "dependencies": {
@ -50605,35 +50596,6 @@
"typescript": "^5.0.4" "typescript": "^5.0.4"
} }
}, },
"@overleaf/spelling": {
"version": "file:services/spelling",
"requires": {
"@overleaf/logger": "*",
"@overleaf/metrics": "*",
"@overleaf/o-error": "*",
"@overleaf/settings": "*",
"async": "^3.2.5",
"body-parser": "^1.20.3",
"bunyan": "^1.8.15",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"esmock": "^2.6.3",
"express": "^4.21.0",
"lru-cache": "^5.1.1",
"mocha": "^10.2.0",
"request": "^2.88.2",
"sinon": "^9.2.4",
"typescript": "^5.0.4",
"underscore": "1.13.1"
},
"dependencies": {
"underscore": {
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz",
"integrity": "sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g=="
}
}
},
"@overleaf/stream-utils": { "@overleaf/stream-utils": {
"version": "file:libraries/stream-utils", "version": "file:libraries/stream-utils",
"requires": { "requires": {

View file

@ -64,7 +64,6 @@
"services/project-history", "services/project-history",
"services/real-time", "services/real-time",
"services/references", "services/references",
"services/spelling",
"services/templates", "services/templates",
"services/third-party-datastore", "services/third-party-datastore",
"services/third-party-references", "services/third-party-references",

View file

@ -1,12 +0,0 @@
#!/bin/bash
NODE_PARAMS=""
if [ "$DEBUG_NODE" == "true" ]; then
echo "running debug - spelling"
NODE_PARAMS="--inspect=0.0.0.0:30050"
fi
source /etc/overleaf/env.sh
export LISTEN_ADDRESS=127.0.0.1
exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/spelling/app.js >> /var/log/overleaf/spelling.log 2>&1

View file

@ -20,9 +20,6 @@ module.exports = [
{ {
name: 'chat', name: 'chat',
}, },
{
name: 'spelling',
},
{ {
name: 'contacts', name: 'contacts',
}, },

View file

@ -225,10 +225,6 @@ module.exports = {
'127.0.0.1' '127.0.0.1'
}:3003`, }:3003`,
}, },
spelling: {
url: `http://${process.env.SPELLING_HOST || '127.0.0.1'}:3005`,
host: process.env.SPELLING_HOST,
},
docstore: { docstore: {
url: `http://${process.env.DOCSTORE_HOST || '127.0.0.1'}:3016`, url: `http://${process.env.DOCSTORE_HOST || '127.0.0.1'}:3016`,
pubUrl: `http://${process.env.DOCSTORE_HOST || '127.0.0.1'}:3016`, pubUrl: `http://${process.env.DOCSTORE_HOST || '127.0.0.1'}:3016`,

View file

@ -55,10 +55,6 @@ module.exports = {
documentupdater: { documentupdater: {
url: 'http://127.0.0.1:23003', url: 'http://127.0.0.1:23003',
}, },
spelling: {
url: 'http://127.0.0.1:23005',
host: '127.0.0.1',
},
docstore: { docstore: {
url: 'http://127.0.0.1:23016', url: 'http://127.0.0.1:23016',
pubUrl: 'http://127.0.0.1:23016', pubUrl: 'http://127.0.0.1:23016',