mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
don't archive project in track changes for moment
This commit is contained in:
parent
79a694b5c8
commit
d9734953a6
2 changed files with 11 additions and 11 deletions
|
@ -52,7 +52,7 @@ module.exports = InactiveProjectManager =
|
|||
logger.log project_id:project_id, "deactivating inactive project"
|
||||
jobs = [
|
||||
(cb)-> DocstoreManager.archiveProject project_id, cb
|
||||
(cb)-> TrackChangesManager.archiveProject project_id, cb
|
||||
# (cb)-> TrackChangesManager.archiveProject project_id, cb
|
||||
(cb)-> ProjectUpdateHandler.markAsInactive project_id, cb
|
||||
]
|
||||
async.series jobs, (err)->
|
||||
|
|
|
@ -75,7 +75,7 @@ describe "InactiveProjectManager", ->
|
|||
|
||||
@InactiveProjectManager.deactivateProject @project_id, (err)=>
|
||||
@DocstoreManager.archiveProject.calledWith(@project_id).should.equal true
|
||||
@TrackChangesManager.archiveProject.calledWith(@project_id).should.equal true
|
||||
# @TrackChangesManager.archiveProject.calledWith(@project_id).should.equal true
|
||||
@ProjectUpdateHandler.markAsInactive.calledWith(@project_id).should.equal true
|
||||
done()
|
||||
|
||||
|
@ -92,14 +92,14 @@ describe "InactiveProjectManager", ->
|
|||
done()
|
||||
|
||||
|
||||
it "should not call markAsInactive if there was a problem archiving in track changes", (done)->
|
||||
@DocstoreManager.archiveProject.callsArgWith(1)
|
||||
@TrackChangesManager.archiveProject.callsArgWith(1, "errorrr")
|
||||
# it "should not call markAsInactive if there was a problem archiving in track changes", (done)->
|
||||
# @DocstoreManager.archiveProject.callsArgWith(1)
|
||||
# @TrackChangesManager.archiveProject.callsArgWith(1, "errorrr")
|
||||
|
||||
@ProjectUpdateHandler.markAsInactive.callsArgWith(1)
|
||||
# @ProjectUpdateHandler.markAsInactive.callsArgWith(1)
|
||||
|
||||
@InactiveProjectManager.deactivateProject @project_id, (err)=>
|
||||
err.should.equal "errorrr"
|
||||
@DocstoreManager.archiveProject.calledWith(@project_id).should.equal true
|
||||
@ProjectUpdateHandler.markAsInactive.calledWith(@project_id).should.equal false
|
||||
done()
|
||||
# @InactiveProjectManager.deactivateProject @project_id, (err)=>
|
||||
# err.should.equal "errorrr"
|
||||
# @DocstoreManager.archiveProject.calledWith(@project_id).should.equal true
|
||||
# @ProjectUpdateHandler.markAsInactive.calledWith(@project_id).should.equal false
|
||||
# done()
|
||||
|
|
Loading…
Reference in a new issue