mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #5648 from overleaf/em-revert-gcp-logging-web
Revert "Improve GCP logging for web" GitOrigin-RevId: 92d446baf62108da1df92146eec12a2fe69d30ee
This commit is contained in:
parent
641b10cceb
commit
e5676a9643
129 changed files with 287 additions and 572 deletions
|
@ -12,7 +12,7 @@
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
metrics.initialize(process.env.METRICS_APP_NAME || 'web')
|
metrics.initialize(process.env.METRICS_APP_NAME || 'web')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const PlansLocator = require('./app/src/Features/Subscription/PlansLocator')
|
const PlansLocator = require('./app/src/Features/Subscription/PlansLocator')
|
||||||
logger.initialize(process.env.METRICS_APP_NAME || 'web')
|
logger.initialize(process.env.METRICS_APP_NAME || 'web')
|
||||||
logger.logger.serializers.user = require('./app/src/infrastructure/LoggerSerializers').user
|
logger.logger.serializers.user = require('./app/src/infrastructure/LoggerSerializers').user
|
||||||
|
|
|
@ -6,7 +6,7 @@ const Queues = require('../../infrastructure/Queues')
|
||||||
const uuid = require('uuid')
|
const uuid = require('uuid')
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
const { expressify } = require('../../util/promises')
|
const { expressify } = require('../../util/promises')
|
||||||
const { logger } = require('@overleaf/logger')
|
const { logger } = require('logger-sharelatex')
|
||||||
|
|
||||||
const analyticsEventsQueue = Queues.getQueue('analytics-events')
|
const analyticsEventsQueue = Queues.getQueue('analytics-events')
|
||||||
const analyticsEditingSessionsQueue = Queues.getQueue(
|
const analyticsEditingSessionsQueue = Queues.getQueue(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const AnalyticsRegistrationSourceHelper = require('./AnalyticsRegistrationSourceHelper')
|
const AnalyticsRegistrationSourceHelper = require('./AnalyticsRegistrationSourceHelper')
|
||||||
const SessionManager = require('../../Features/Authentication/SessionManager')
|
const SessionManager = require('../../Features/Authentication/SessionManager')
|
||||||
|
|
|
@ -4,7 +4,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const LoginRateLimiter = require('../Security/LoginRateLimiter')
|
const LoginRateLimiter = require('../Security/LoginRateLimiter')
|
||||||
const UserUpdater = require('../User/UserUpdater')
|
const UserUpdater = require('../User/UserUpdater')
|
||||||
const Metrics = require('@overleaf/metrics')
|
const Metrics = require('@overleaf/metrics')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const querystring = require('querystring')
|
const querystring = require('querystring')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const basicAuth = require('basic-auth-connect')
|
const basicAuth = require('basic-auth-connect')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const AuthorizationManager = require('./AuthorizationManager')
|
const AuthorizationManager = require('./AuthorizationManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { ObjectId } = require('mongodb')
|
const { ObjectId } = require('mongodb')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const HttpErrorHandler = require('../Errors/HttpErrorHandler')
|
const HttpErrorHandler = require('../Errors/HttpErrorHandler')
|
||||||
|
|
|
@ -2,7 +2,7 @@ const BetaProgramHandler = require('./BetaProgramHandler')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
|
|
||||||
const BetaProgramController = {
|
const BetaProgramController = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const { URL } = require('url')
|
const { URL } = require('url')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const V1Api = require('../V1/V1Api')
|
const V1Api = require('../V1/V1Api')
|
||||||
const sanitizeHtml = require('sanitize-html')
|
const sanitizeHtml = require('sanitize-html')
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
let CaptchaMiddleware
|
let CaptchaMiddleware
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
|
|
||||||
module.exports = CaptchaMiddleware = {
|
module.exports = CaptchaMiddleware = {
|
||||||
|
|
|
@ -8,7 +8,7 @@ const SessionManager = require('../Authentication/SessionManager')
|
||||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||||
const TagsHandler = require('../Tags/TagsHandler')
|
const TagsHandler = require('../Tags/TagsHandler')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { expressify } = require('../../util/promises')
|
const { expressify } = require('../../util/promises')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
@ -3,7 +3,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const ProjectHelper = require('../Project/ProjectHelper')
|
const ProjectHelper = require('../Project/ProjectHelper')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const ContactManager = require('../Contacts/ContactManager')
|
const ContactManager = require('../Contacts/ContactManager')
|
||||||
const PrivilegeLevels = require('../Authorization/PrivilegeLevels')
|
const PrivilegeLevels = require('../Authorization/PrivilegeLevels')
|
||||||
const TpdsProjectFlusher = require('../ThirdPartyDataStore/TpdsProjectFlusher')
|
const TpdsProjectFlusher = require('../ThirdPartyDataStore/TpdsProjectFlusher')
|
||||||
|
|
|
@ -19,7 +19,7 @@ const LimitationsManager = require('../Subscription/LimitationsManager')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const CollaboratorsGetter = require('./CollaboratorsGetter')
|
const CollaboratorsGetter = require('./CollaboratorsGetter')
|
||||||
const CollaboratorsInviteHandler = require('./CollaboratorsInviteHandler')
|
const CollaboratorsInviteHandler = require('./CollaboratorsInviteHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const EmailHelper = require('../Helpers/EmailHelper')
|
const EmailHelper = require('../Helpers/EmailHelper')
|
||||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*/
|
*/
|
||||||
const { ProjectInvite } = require('../../models/ProjectInvite')
|
const { ProjectInvite } = require('../../models/ProjectInvite')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const CollaboratorsEmailHandler = require('./CollaboratorsEmailHandler')
|
const CollaboratorsEmailHandler = require('./CollaboratorsEmailHandler')
|
||||||
const CollaboratorsHandler = require('./CollaboratorsHandler')
|
const CollaboratorsHandler = require('./CollaboratorsHandler')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
|
|
|
@ -21,7 +21,7 @@ if (Settings.redis.clsi_cookie_secondary != null) {
|
||||||
rclient_secondary = RedisWrapper.client('clsi_cookie_secondary')
|
rclient_secondary = RedisWrapper.client('clsi_cookie_secondary')
|
||||||
}
|
}
|
||||||
const Cookie = require('cookie')
|
const Cookie = require('cookie')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Metrics = require('@overleaf/metrics')
|
const Metrics = require('@overleaf/metrics')
|
||||||
|
|
||||||
const clsiCookiesEnabled =
|
const clsiCookiesEnabled =
|
||||||
|
|
|
@ -3,7 +3,7 @@ const Settings = require('@overleaf/settings')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { URL } = require('url')
|
const { URL } = require('url')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
let ClsiStateManager
|
let ClsiStateManager
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ const Metrics = require('@overleaf/metrics')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const CompileManager = require('./CompileManager')
|
const CompileManager = require('./CompileManager')
|
||||||
const ClsiManager = require('./ClsiManager')
|
const ClsiManager = require('./ClsiManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
|
|
|
@ -16,7 +16,7 @@ let ContactsController
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const ContactManager = require('./ContactManager')
|
const ContactManager = require('./ContactManager')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Modules = require('../../infrastructure/Modules')
|
const Modules = require('../../infrastructure/Modules')
|
||||||
|
|
||||||
module.exports = ContactsController = {
|
module.exports = ContactsController = {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
let CooldownManager
|
let CooldownManager
|
||||||
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
||||||
const rclient = RedisWrapper.client('cooldown')
|
const rclient = RedisWrapper.client('cooldown')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
const COOLDOWN_IN_SECONDS = 60 * 10
|
const COOLDOWN_IN_SECONDS = 60 * 10
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
let CooldownMiddleware
|
let CooldownMiddleware
|
||||||
const CooldownManager = require('./CooldownManager')
|
const CooldownManager = require('./CooldownManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = CooldownMiddleware = {
|
module.exports = CooldownMiddleware = {
|
||||||
freezeProject(req, res, next) {
|
freezeProject(req, res, next) {
|
||||||
|
|
|
@ -2,7 +2,7 @@ const { promisify } = require('util')
|
||||||
const { promisifyMultiResult } = require('../../util/promises')
|
const { promisifyMultiResult } = require('../../util/promises')
|
||||||
const request = require('request').defaults({ jar: false })
|
const request = require('request').defaults({ jar: false })
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const { promisify } = require('util')
|
const { promisify } = require('util')
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const ProjectLocator = require('../Project/ProjectLocator')
|
const ProjectLocator = require('../Project/ProjectLocator')
|
||||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||||
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
|
|
||||||
function getDocument(req, res, next) {
|
function getDocument(req, res, next) {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
let ProjectDownloadsController
|
let ProjectDownloadsController
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Metrics = require('@overleaf/metrics')
|
const Metrics = require('@overleaf/metrics')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const ProjectZipStreamManager = require('./ProjectZipStreamManager')
|
const ProjectZipStreamManager = require('./ProjectZipStreamManager')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
let ProjectZipStreamManager
|
let ProjectZipStreamManager
|
||||||
const archiver = require('archiver')
|
const archiver = require('archiver')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const FileStoreHandler = require('../FileStore/FileStoreHandler')
|
const FileStoreHandler = require('../FileStore/FileStoreHandler')
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* DS207: Consider shorter variations of null checks
|
* DS207: Consider shorter variations of null checks
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const Metrics = require('@overleaf/metrics')
|
const Metrics = require('@overleaf/metrics')
|
||||||
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
||||||
|
|
|
@ -14,7 +14,7 @@ const Errors = require('../Errors/Errors')
|
||||||
const HttpErrorHandler = require('../Errors/HttpErrorHandler')
|
const HttpErrorHandler = require('../Errors/HttpErrorHandler')
|
||||||
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
||||||
const DocstoreManager = require('../Docstore/DocstoreManager')
|
const DocstoreManager = require('../Docstore/DocstoreManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { expressify } = require('../../util/promises')
|
const { expressify } = require('../../util/promises')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const nodemailer = require('nodemailer')
|
const nodemailer = require('nodemailer')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
let ErrorController
|
let ErrorController
|
||||||
const Errors = require('./Errors')
|
const Errors = require('./Errors')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const SamlLogHandler = require('../SamlLog/SamlLogHandler')
|
const SamlLogHandler = require('../SamlLog/SamlLogHandler')
|
||||||
const HttpErrorHandler = require('./HttpErrorHandler')
|
const HttpErrorHandler = require('./HttpErrorHandler')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
|
|
||||||
function renderJSONError(res, message, info = {}) {
|
function renderJSONError(res, message, info = {}) {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
const ExportsHandler = require('./ExportsHandler')
|
const ExportsHandler = require('./ExportsHandler')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
exportProject(req, res, next) {
|
exportProject(req, res, next) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ const ProjectHistoryHandler = require('../Project/ProjectHistoryHandler')
|
||||||
const ProjectLocator = require('../Project/ProjectLocator')
|
const ProjectLocator = require('../Project/ProjectLocator')
|
||||||
const ProjectRootDocManager = require('../Project/ProjectRootDocManager')
|
const ProjectRootDocManager = require('../Project/ProjectRootDocManager')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
let settings = require('@overleaf/settings')
|
let settings = require('@overleaf/settings')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
let request = require('request')
|
let request = require('request')
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*/
|
*/
|
||||||
let FileHashManager
|
let FileHashManager
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
const FileStoreHandler = require('./FileStoreHandler')
|
const FileStoreHandler = require('./FileStoreHandler')
|
||||||
const ProjectLocator = require('../Project/ProjectLocator')
|
const ProjectLocator = require('../Project/ProjectLocator')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
||||||
const rclient = RedisWrapper.client('health_check')
|
const rclient = RedisWrapper.client('health_check')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const {
|
const {
|
||||||
SmokeTestFailure,
|
SmokeTestFailure,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
let HistoryController
|
let HistoryController
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
|
|
|
@ -14,7 +14,7 @@ let InactiveProjectManager
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const DocstoreManager = require('../Docstore/DocstoreManager')
|
const DocstoreManager = require('../Docstore/DocstoreManager')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const ProjectUpdateHandler = require('../Project/ProjectUpdateHandler')
|
const ProjectUpdateHandler = require('../Project/ProjectUpdateHandler')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const request = require('requestretry')
|
const request = require('requestretry')
|
||||||
|
|
|
@ -17,7 +17,7 @@ const SessionManager = require('../Authentication/SessionManager')
|
||||||
const EditorController = require('../Editor/EditorController')
|
const EditorController = require('../Editor/EditorController')
|
||||||
const ProjectLocator = require('../Project/ProjectLocator')
|
const ProjectLocator = require('../Project/ProjectLocator')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const LinkedFilesHandler = require('./LinkedFilesHandler')
|
const LinkedFilesHandler = require('./LinkedFilesHandler')
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -15,7 +15,7 @@ let MetaController
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||||
const MetaHandler = require('./MetaHandler')
|
const MetaHandler = require('./MetaHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = MetaController = {
|
module.exports = MetaController = {
|
||||||
getMetadata(req, res, next) {
|
getMetadata(req, res, next) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const Mailchimp = require('mailchimp-api-v3')
|
const Mailchimp = require('mailchimp-api-v3')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
|
|
||||||
const notificationsApi = _.get(settings, ['apis', 'notifications', 'url'])
|
const notificationsApi = _.get(settings, ['apis', 'notifications', 'url'])
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const ProjectDetailsHandler = require('./ProjectDetailsHandler')
|
const ProjectDetailsHandler = require('./ProjectDetailsHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
getProjectDetails(req, res, next) {
|
getProjectDetails(req, res, next) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { ObjectId } = require('mongodb')
|
const { ObjectId } = require('mongodb')
|
||||||
const ProjectDeleter = require('./ProjectDeleter')
|
const ProjectDeleter = require('./ProjectDeleter')
|
||||||
const ProjectDuplicator = require('./ProjectDuplicator')
|
const ProjectDuplicator = require('./ProjectDuplicator')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -5,7 +5,7 @@ const { callbackify } = require('util')
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const { DeletedProject } = require('../../models/DeletedProject')
|
const { DeletedProject } = require('../../models/DeletedProject')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
||||||
const TagsHandler = require('../Tags/TagsHandler')
|
const TagsHandler = require('../Tags/TagsHandler')
|
||||||
const ProjectHelper = require('./ProjectHelper')
|
const ProjectHelper = require('./ProjectHelper')
|
||||||
|
|
|
@ -2,7 +2,7 @@ const _ = require('underscore')
|
||||||
const ProjectGetter = require('./ProjectGetter')
|
const ProjectGetter = require('./ProjectGetter')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const TpdsUpdateSender = require('../ThirdPartyDataStore/TpdsUpdateSender')
|
const TpdsUpdateSender = require('../ThirdPartyDataStore/TpdsUpdateSender')
|
||||||
const PublicAccessLevels = require('../Authorization/PublicAccessLevels')
|
const PublicAccessLevels = require('../Authorization/PublicAccessLevels')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const { callbackifyMultiResult } = require('../../util/promises')
|
const { callbackifyMultiResult } = require('../../util/promises')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { ObjectId } = require('mongodb')
|
const { ObjectId } = require('mongodb')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const Path = require('path')
|
const Path = require('path')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
|
@ -4,7 +4,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const { promisifyAll } = require('../../util/promises')
|
const { promisifyAll } = require('../../util/promises')
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const LockManager = require('../../infrastructure/LockManager')
|
const LockManager = require('../../infrastructure/LockManager')
|
||||||
const { DeletedProject } = require('../../models/DeletedProject')
|
const { DeletedProject } = require('../../models/DeletedProject')
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const ProjectDetailsHandler = require('./ProjectDetailsHandler')
|
const ProjectDetailsHandler = require('./ProjectDetailsHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const HistoryManager = require('../History/HistoryManager')
|
const HistoryManager = require('../History/HistoryManager')
|
||||||
const ProjectEntityUpdateHandler = require('./ProjectEntityUpdateHandler')
|
const ProjectEntityUpdateHandler = require('./ProjectEntityUpdateHandler')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const ProjectGetter = require('./ProjectGetter')
|
const ProjectGetter = require('./ProjectGetter')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const { Project } = require('../../models/Project')
|
const { Project } = require('../../models/Project')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
markAsUpdated(projectId, lastUpdatedAt, lastUpdatedBy, callback) {
|
markAsUpdated(projectId, lastUpdatedAt, lastUpdatedBy, callback) {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
let PublishersGetter
|
let PublishersGetter
|
||||||
const UserMembershipsHandler = require('../UserMembership/UserMembershipsHandler')
|
const UserMembershipsHandler = require('../UserMembership/UserMembershipsHandler')
|
||||||
const UserMembershipEntityConfigs = require('../UserMembership/UserMembershipEntityConfigs')
|
const UserMembershipEntityConfigs = require('../UserMembership/UserMembershipEntityConfigs')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
|
|
||||||
module.exports = PublishersGetter = {
|
module.exports = PublishersGetter = {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
let ReferencesController
|
let ReferencesController
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const ReferencesHandler = require('./ReferencesHandler')
|
const ReferencesHandler = require('./ReferencesHandler')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
let ReferencesHandler
|
let ReferencesHandler
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const Features = require('../../infrastructure/Features')
|
const Features = require('../../infrastructure/Features')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const { SamlLog } = require('../../models/SamlLog')
|
const { SamlLog } = require('../../models/SamlLog')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
function log(providerId, sessionId, data) {
|
function log(providerId, sessionId, data) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const RateLimiter = require('../../infrastructure/RateLimiter')
|
const RateLimiter = require('../../infrastructure/RateLimiter')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const LoginRateLimiter = require('./LoginRateLimiter')
|
const LoginRateLimiter = require('./LoginRateLimiter')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
|
|
||||||
const TEN_SECONDS = 1000 * 10
|
const TEN_SECONDS = 1000 * 10
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
let UniversityController
|
let UniversityController
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
|
|
||||||
module.exports = UniversityController = {
|
module.exports = UniversityController = {
|
||||||
|
|
|
@ -6,7 +6,7 @@ const SubscriptionLocator = require('./SubscriptionLocator')
|
||||||
const UserFeaturesUpdater = require('./UserFeaturesUpdater')
|
const UserFeaturesUpdater = require('./UserFeaturesUpdater')
|
||||||
const FeaturesHelper = require('./FeaturesHelper')
|
const FeaturesHelper = require('./FeaturesHelper')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const ReferalFeatures = require('../Referal/ReferalFeatures')
|
const ReferalFeatures = require('../Referal/ReferalFeatures')
|
||||||
const V1SubscriptionManager = require('./V1SubscriptionManager')
|
const V1SubscriptionManager = require('./V1SubscriptionManager')
|
||||||
const InstitutionsFeatures = require('../Institutions/InstitutionsFeatures')
|
const InstitutionsFeatures = require('../Institutions/InstitutionsFeatures')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const SubscriptionLocator = require('./SubscriptionLocator')
|
const SubscriptionLocator = require('./SubscriptionLocator')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
function ensurePlansAreSetupCorrectly() {
|
function ensurePlansAreSetupCorrectly() {
|
||||||
Settings.plans.forEach(plan => {
|
Settings.plans.forEach(plan => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const recurly = require('recurly')
|
const recurly = require('recurly')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ const crypto = require('crypto')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const xml2js = require('xml2js')
|
const xml2js = require('xml2js')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Async = require('async')
|
const Async = require('async')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const SubscriptionErrors = require('./Errors')
|
const SubscriptionErrors = require('./Errors')
|
||||||
|
|
|
@ -5,7 +5,7 @@ const SubscriptionViewModelBuilder = require('./SubscriptionViewModelBuilder')
|
||||||
const LimitationsManager = require('./LimitationsManager')
|
const LimitationsManager = require('./LimitationsManager')
|
||||||
const RecurlyWrapper = require('./RecurlyWrapper')
|
const RecurlyWrapper = require('./RecurlyWrapper')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const GeoIpLookup = require('../../infrastructure/GeoIpLookup')
|
const GeoIpLookup = require('../../infrastructure/GeoIpLookup')
|
||||||
const FeaturesUpdater = require('./FeaturesUpdater')
|
const FeaturesUpdater = require('./FeaturesUpdater')
|
||||||
const planFeatures = require('./planFeatures')
|
const planFeatures = require('./planFeatures')
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*/
|
*/
|
||||||
const SubscriptionGroupHandler = require('./SubscriptionGroupHandler')
|
const SubscriptionGroupHandler = require('./SubscriptionGroupHandler')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SubscriptionLocator = require('./SubscriptionLocator')
|
const SubscriptionLocator = require('./SubscriptionLocator')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
|
|
|
@ -21,7 +21,7 @@ const SubscriptionLocator = require('./SubscriptionLocator')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const { Subscription } = require('../../models/Subscription')
|
const { Subscription } = require('../../models/Subscription')
|
||||||
const LimitationsManager = require('./LimitationsManager')
|
const LimitationsManager = require('./LimitationsManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler')
|
const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler')
|
||||||
const EmailHandler = require('../Email/EmailHandler')
|
const EmailHandler = require('../Email/EmailHandler')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -3,7 +3,7 @@ const { promisify } = require('util')
|
||||||
const RecurlyWrapper = require('./RecurlyWrapper')
|
const RecurlyWrapper = require('./RecurlyWrapper')
|
||||||
const RecurlyClient = require('./RecurlyClient')
|
const RecurlyClient = require('./RecurlyClient')
|
||||||
const { User } = require('../../models/User')
|
const { User } = require('../../models/User')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SubscriptionUpdater = require('./SubscriptionUpdater')
|
const SubscriptionUpdater = require('./SubscriptionUpdater')
|
||||||
const LimitationsManager = require('./LimitationsManager')
|
const LimitationsManager = require('./LimitationsManager')
|
||||||
const EmailHandler = require('../Email/EmailHandler')
|
const EmailHandler = require('../Email/EmailHandler')
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
const { promisify } = require('util')
|
const { promisify } = require('util')
|
||||||
const { Subscription } = require('../../models/Subscription')
|
const { Subscription } = require('../../models/Subscription')
|
||||||
const { DeletedSubscription } = require('../../models/DeletedSubscription')
|
const { DeletedSubscription } = require('../../models/DeletedSubscription')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
require('./GroupPlansData') // make sure dynamic group plans are loaded
|
require('./GroupPlansData') // make sure dynamic group plans are loaded
|
||||||
|
|
||||||
const SubscriptionLocator = {
|
const SubscriptionLocator = {
|
||||||
|
|
|
@ -7,7 +7,7 @@ const FeaturesUpdater = require('./FeaturesUpdater')
|
||||||
const FeaturesHelper = require('./FeaturesHelper')
|
const FeaturesHelper = require('./FeaturesHelper')
|
||||||
const AnalyticsManager = require('../Analytics/AnalyticsManager')
|
const AnalyticsManager = require('../Analytics/AnalyticsManager')
|
||||||
const { DeletedSubscription } = require('../../models/DeletedSubscription')
|
const { DeletedSubscription } = require('../../models/DeletedSubscription')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change the admin of the given subscription.
|
* Change the admin of the given subscription.
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const TeamInvitesHandler = require('./TeamInvitesHandler')
|
const TeamInvitesHandler = require('./TeamInvitesHandler')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const SubscriptionLocator = require('./SubscriptionLocator')
|
const SubscriptionLocator = require('./SubscriptionLocator')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let TeamInvitesHandler
|
let TeamInvitesHandler
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ const path = require('path')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const TemplatesManager = require('./TemplatesManager')
|
const TemplatesManager = require('./TemplatesManager')
|
||||||
const ProjectHelper = require('../Project/ProjectHelper')
|
const ProjectHelper = require('../Project/ProjectHelper')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = TemplatesController = {
|
module.exports = TemplatesController = {
|
||||||
getV1Template(req, res) {
|
getV1Template(req, res) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ const FileWriter = require('../../infrastructure/FileWriter')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const util = require('util')
|
const util = require('util')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
const requestPromise = require('request-promise-native')
|
const requestPromise = require('request-promise-native')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
saveTemplateDataInSession(req, res, next) {
|
saveTemplateDataInSession(req, res, next) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ let parseParams
|
||||||
const TpdsUpdateHandler = require('./TpdsUpdateHandler')
|
const TpdsUpdateHandler = require('./TpdsUpdateHandler')
|
||||||
const UpdateMerger = require('./UpdateMerger')
|
const UpdateMerger = require('./UpdateMerger')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Path = require('path')
|
const Path = require('path')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const NotificationsBuilder = require('../Notifications/NotificationsBuilder')
|
const NotificationsBuilder = require('../Notifications/NotificationsBuilder')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
||||||
const ProjectGetter = require('../Project/ProjectGetter')
|
const ProjectGetter = require('../Project/ProjectGetter')
|
||||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const UpdateMerger = require('./UpdateMerger')
|
const UpdateMerger = require('./UpdateMerger')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const NotificationsBuilder = require('../Notifications/NotificationsBuilder')
|
const NotificationsBuilder = require('../Notifications/NotificationsBuilder')
|
||||||
const ProjectCreationHandler = require('../Project/ProjectCreationHandler')
|
const ProjectCreationHandler = require('../Project/ProjectCreationHandler')
|
||||||
const ProjectDeleter = require('../Project/ProjectDeleter')
|
const ProjectDeleter = require('../Project/ProjectDeleter')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const { ObjectId } = require('mongodb')
|
const { ObjectId } = require('mongodb')
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const request = require('request-promise-native')
|
const request = require('request-promise-native')
|
||||||
|
|
|
@ -16,7 +16,7 @@ const OError = require('@overleaf/o-error')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const EditorController = require('../Editor/EditorController')
|
const EditorController = require('../Editor/EditorController')
|
||||||
const FileTypeManager = require('../Uploads/FileTypeManager')
|
const FileTypeManager = require('../Uploads/FileTypeManager')
|
||||||
const FileWriter = require('../../infrastructure/FileWriter')
|
const FileWriter = require('../../infrastructure/FileWriter')
|
||||||
|
|
|
@ -2,7 +2,7 @@ const AuthenticationController = require('../Authentication/AuthenticationContro
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const TokenAccessHandler = require('./TokenAccessHandler')
|
const TokenAccessHandler = require('./TokenAccessHandler')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const { expressify } = require('../../util/promises')
|
const { expressify } = require('../../util/promises')
|
||||||
|
|
|
@ -3,7 +3,7 @@ const PublicAccessLevels = require('../Authorization/PublicAccessLevels')
|
||||||
const PrivilegeLevels = require('../Authorization/PrivilegeLevels')
|
const PrivilegeLevels = require('../Authorization/PrivilegeLevels')
|
||||||
const { ObjectId } = require('mongodb')
|
const { ObjectId } = require('mongodb')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const V1Api = require('../V1/V1Api')
|
const V1Api = require('../V1/V1Api')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const { promisifyAll } = require('../../util/promises')
|
const { promisifyAll } = require('../../util/promises')
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* DS207: Consider shorter variations of null checks
|
* DS207: Consider shorter variations of null checks
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
|
@ -5,7 +5,7 @@ const EditorController = require('../Editor/EditorController')
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const FileTypeManager = require('./FileTypeManager')
|
const FileTypeManager = require('./FileTypeManager')
|
||||||
const SafePath = require('../Project/SafePath')
|
const SafePath = require('../Project/SafePath')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
addEntity: callbackify(addEntity),
|
addEntity: callbackify(addEntity),
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
let ProjectUploadController
|
let ProjectUploadController
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const Path = require('path')
|
const Path = require('path')
|
||||||
|
|
|
@ -14,7 +14,7 @@ const ProjectRootDocManager = require('../Project/ProjectRootDocManager')
|
||||||
const ProjectDetailsHandler = require('../Project/ProjectDetailsHandler')
|
const ProjectDetailsHandler = require('../Project/ProjectDetailsHandler')
|
||||||
const ProjectDeleter = require('../Project/ProjectDeleter')
|
const ProjectDeleter = require('../Project/ProjectDeleter')
|
||||||
const TpdsProjectFlusher = require('../ThirdPartyDataStore/TpdsProjectFlusher')
|
const TpdsProjectFlusher = require('../ThirdPartyDataStore/TpdsProjectFlusher')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
createProjectFromZipArchive: callbackify(createProjectFromZipArchive),
|
createProjectFromZipArchive: callbackify(createProjectFromZipArchive),
|
||||||
|
|
|
@ -8,7 +8,7 @@ const SubscriptionLocator = require('../Subscription/SubscriptionLocator')
|
||||||
const UserAuditLogHandler = require('../User/UserAuditLogHandler')
|
const UserAuditLogHandler = require('../User/UserAuditLogHandler')
|
||||||
const UserGetter = require('../User/UserGetter')
|
const UserGetter = require('../User/UserGetter')
|
||||||
const UserUpdater = require('../User/UserUpdater')
|
const UserUpdater = require('../User/UserUpdater')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const { User } = require('../../models/User')
|
const { User } = require('../../models/User')
|
||||||
|
|
||||||
async function _addAuditLogEntry(
|
async function _addAuditLogEntry(
|
||||||
|
|
|
@ -4,7 +4,7 @@ const EmailHandler = require(`${APP_ROOT}/Features/Email/EmailHandler`)
|
||||||
const EmailOptionsHelper = require(`${APP_ROOT}/Features/Email/EmailOptionsHelper`)
|
const EmailOptionsHelper = require(`${APP_ROOT}/Features/Email/EmailOptionsHelper`)
|
||||||
const Errors = require('../Errors/Errors')
|
const Errors = require('../Errors/Errors')
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const { User } = require(`${APP_ROOT}/models/User`)
|
const { User } = require(`${APP_ROOT}/models/User`)
|
||||||
|
|
|
@ -4,7 +4,7 @@ const UserGetter = require('./UserGetter')
|
||||||
const { User } = require('../../models/User')
|
const { User } = require('../../models/User')
|
||||||
const NewsletterManager = require('../Newsletter/NewsletterManager')
|
const NewsletterManager = require('../Newsletter/NewsletterManager')
|
||||||
const UserRegistrationHandler = require('./UserRegistrationHandler')
|
const UserRegistrationHandler = require('./UserRegistrationHandler')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const AuthenticationManager = require('../Authentication/AuthenticationManager')
|
const AuthenticationManager = require('../Authentication/AuthenticationManager')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const util = require('util')
|
const util = require('util')
|
||||||
const { AffiliationError } = require('../Errors/Errors')
|
const { AffiliationError } = require('../Errors/Errors')
|
||||||
const Features = require('../../infrastructure/Features')
|
const Features = require('../../infrastructure/Features')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const moment = require('moment')
|
const moment = require('moment')
|
||||||
const { User } = require('../../models/User')
|
const { User } = require('../../models/User')
|
||||||
const { DeletedUser } = require('../../models/DeletedUser')
|
const { DeletedUser } = require('../../models/DeletedUser')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const UserGetter = require('./UserGetter')
|
const UserGetter = require('./UserGetter')
|
||||||
const UserUpdater = require('./UserUpdater')
|
const UserUpdater = require('./UserUpdater')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const { callbackify } = require('util')
|
const { callbackify } = require('util')
|
||||||
const { db } = require('../../infrastructure/mongodb')
|
const { db } = require('../../infrastructure/mongodb')
|
||||||
const metrics = require('@overleaf/metrics')
|
const metrics = require('@overleaf/metrics')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const moment = require('moment')
|
const moment = require('moment')
|
||||||
const settings = require('@overleaf/settings')
|
const settings = require('@overleaf/settings')
|
||||||
const { promisifyAll } = require('../../util/promises')
|
const { promisifyAll } = require('../../util/promises')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const UserGetter = require('./UserGetter')
|
const UserGetter = require('./UserGetter')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const UserSessionsManager = require('./UserSessionsManager')
|
const UserSessionsManager = require('./UserSessionsManager')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const AuthenticationController = require('../Authentication/AuthenticationController')
|
const AuthenticationController = require('../Authentication/AuthenticationController')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
|
|
|
@ -4,7 +4,7 @@ const UserGetter = require('./UserGetter')
|
||||||
const AuthenticationManager = require('../Authentication/AuthenticationManager')
|
const AuthenticationManager = require('../Authentication/AuthenticationManager')
|
||||||
const NewsletterManager = require('../Newsletter/NewsletterManager')
|
const NewsletterManager = require('../Newsletter/NewsletterManager')
|
||||||
const async = require('async')
|
const async = require('async')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
const EmailHandler = require('../Email/EmailHandler')
|
const EmailHandler = require('../Email/EmailHandler')
|
||||||
const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler')
|
const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const Settings = require('@overleaf/settings')
|
const Settings = require('@overleaf/settings')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const Async = require('async')
|
const Async = require('async')
|
||||||
const _ = require('underscore')
|
const _ = require('underscore')
|
||||||
const { promisify } = require('util')
|
const { promisify } = require('util')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('logger-sharelatex')
|
||||||
const OError = require('@overleaf/o-error')
|
const OError = require('@overleaf/o-error')
|
||||||
const { db } = require('../../infrastructure/mongodb')
|
const { db } = require('../../infrastructure/mongodb')
|
||||||
const { normalizeQuery } = require('../Helpers/Mongo')
|
const { normalizeQuery } = require('../Helpers/Mongo')
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue