Merge pull request #30418 from overleaf/mfb-improve-handling-of-debug-copies-of-user-projects
Add isDebugCopyOf property to project, add Debug tag to debug project. GitOrigin-RevId: e3d17de05c6f31db16b861d1adae333211dff018
This commit is contained in:
committed by
Copybot
parent
5829a7fe43
commit
a591f2eb7a
@@ -259,8 +259,8 @@ const _ProjectController = {
|
||||
res.setTimeout(5 * 60 * 1000) // allow extra time for the copy to complete
|
||||
metrics.inc('cloned-project')
|
||||
const projectId = req.params.Project_id
|
||||
const { projectName, tags } = req.body
|
||||
logger.debug({ projectId, projectName }, 'cloning project')
|
||||
const { projectName, isDebugCopy, tags } = req.body
|
||||
logger.debug({ projectId, projectName, isDebugCopy }, 'cloning project')
|
||||
if (!SessionManager.isUserLoggedIn(req.session)) {
|
||||
return res.json({ redir: '/register' })
|
||||
}
|
||||
@@ -271,7 +271,8 @@ const _ProjectController = {
|
||||
currentUser,
|
||||
projectId,
|
||||
projectName,
|
||||
tags
|
||||
tags,
|
||||
isDebugCopy
|
||||
)
|
||||
ProjectAuditLogHandler.addEntryIfManagedInBackground(
|
||||
projectId,
|
||||
|
||||
Reference in New Issue
Block a user