2021-04-15 05:04:30 -04:00
|
|
|
const { exec } = require('child_process')
|
|
|
|
const { promisify } = require('util')
|
|
|
|
const { expect } = require('chai')
|
2021-11-10 08:40:18 -05:00
|
|
|
const logger = require('@overleaf/logger')
|
2021-05-19 08:07:22 -04:00
|
|
|
const { filterOutput } = require('./helpers/settings')
|
2021-04-15 05:04:30 -04:00
|
|
|
const { db, ObjectId } = require('../../../app/src/infrastructure/mongodb')
|
|
|
|
|
|
|
|
const DUMMY_NAME = 'unknown.tex'
|
|
|
|
const DUMMY_TIME = new Date('2021-04-12T00:00:00.000Z')
|
|
|
|
const ONE_DAY_IN_S = 60 * 60 * 24
|
2021-04-20 08:21:32 -04:00
|
|
|
const BATCH_SIZE = 3
|
2021-04-15 10:23:49 -04:00
|
|
|
|
|
|
|
function getSecondsFromObjectId(id) {
|
|
|
|
return id.getTimestamp().getTime() / 1000
|
|
|
|
}
|
2021-04-15 05:04:30 -04:00
|
|
|
|
|
|
|
function getObjectIdFromDate(date) {
|
|
|
|
const seconds = new Date(date).getTime() / 1000
|
|
|
|
return ObjectId.createFromTime(seconds)
|
|
|
|
}
|
|
|
|
|
|
|
|
describe('BackFillDummyDocMeta', function () {
|
2021-04-15 10:23:49 -04:00
|
|
|
let docIds
|
|
|
|
let projectIds
|
2021-04-15 05:04:30 -04:00
|
|
|
let stopAtSeconds
|
|
|
|
beforeEach('create docs', async function () {
|
2021-04-15 10:23:49 -04:00
|
|
|
docIds = []
|
|
|
|
docIds[0] = getObjectIdFromDate('2021-04-01T00:00:00.000Z')
|
|
|
|
docIds[1] = getObjectIdFromDate('2021-04-02T00:00:00.000Z')
|
|
|
|
docIds[2] = getObjectIdFromDate('2021-04-11T00:00:00.000Z')
|
|
|
|
docIds[3] = getObjectIdFromDate('2021-04-12T00:00:00.000Z')
|
|
|
|
docIds[4] = getObjectIdFromDate('2021-04-13T00:00:00.000Z')
|
|
|
|
docIds[5] = getObjectIdFromDate('2021-04-14T00:00:00.000Z')
|
|
|
|
docIds[6] = getObjectIdFromDate('2021-04-15T00:00:00.000Z')
|
|
|
|
docIds[7] = getObjectIdFromDate('2021-04-16T00:01:00.000Z')
|
|
|
|
docIds[8] = getObjectIdFromDate('2021-04-16T00:02:00.000Z')
|
|
|
|
docIds[9] = getObjectIdFromDate('2021-04-16T00:03:00.000Z')
|
2021-04-20 08:21:32 -04:00
|
|
|
docIds[10] = getObjectIdFromDate('2021-04-16T00:04:00.000Z')
|
|
|
|
docIds[11] = getObjectIdFromDate('2021-04-16T00:05:00.000Z')
|
2021-04-15 05:04:30 -04:00
|
|
|
|
2021-04-15 10:23:49 -04:00
|
|
|
projectIds = []
|
|
|
|
projectIds[0] = getObjectIdFromDate('2021-04-01T00:00:00.000Z')
|
|
|
|
projectIds[1] = getObjectIdFromDate('2021-04-02T00:00:00.000Z')
|
|
|
|
projectIds[2] = getObjectIdFromDate('2021-04-11T00:00:00.000Z')
|
|
|
|
projectIds[3] = getObjectIdFromDate('2021-04-12T00:00:00.000Z')
|
|
|
|
projectIds[4] = getObjectIdFromDate('2021-04-13T00:00:00.000Z')
|
|
|
|
projectIds[5] = getObjectIdFromDate('2021-04-14T00:00:00.000Z')
|
|
|
|
projectIds[6] = getObjectIdFromDate('2021-04-15T00:00:00.000Z')
|
|
|
|
projectIds[7] = getObjectIdFromDate('2021-04-16T00:01:00.000Z')
|
|
|
|
projectIds[8] = getObjectIdFromDate('2021-04-16T00:02:00.000Z')
|
|
|
|
projectIds[9] = getObjectIdFromDate('2021-04-16T00:03:00.000Z')
|
2021-04-20 08:21:32 -04:00
|
|
|
// two docs in the same project
|
|
|
|
projectIds[10] = projectIds[9]
|
|
|
|
projectIds[11] = projectIds[4]
|
2021-04-15 05:04:30 -04:00
|
|
|
|
2021-04-15 10:23:49 -04:00
|
|
|
stopAtSeconds = new Date('2021-04-17T00:00:00.000Z').getTime() / 1000
|
2021-04-15 05:04:30 -04:00
|
|
|
})
|
|
|
|
const now = new Date()
|
|
|
|
beforeEach('insert doc stubs into docs collection', async function () {
|
|
|
|
await db.docs.insertMany([
|
|
|
|
// incomplete, without deletedDocs context
|
2021-04-15 10:23:49 -04:00
|
|
|
{ _id: docIds[0], project_id: projectIds[0], deleted: true },
|
|
|
|
{ _id: docIds[1], project_id: projectIds[1], deleted: true },
|
|
|
|
{ _id: docIds[2], project_id: projectIds[2], deleted: true },
|
|
|
|
{ _id: docIds[3], project_id: projectIds[3], deleted: true },
|
2021-04-15 05:04:30 -04:00
|
|
|
// incomplete, with deletedDocs context
|
2021-04-15 10:23:49 -04:00
|
|
|
{ _id: docIds[4], project_id: projectIds[4], deleted: true },
|
2021-04-15 05:04:30 -04:00
|
|
|
// complete
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[5],
|
|
|
|
project_id: projectIds[5],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: 'foo.tex',
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: now,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
|
|
|
// not deleted
|
2021-04-15 10:23:49 -04:00
|
|
|
{ _id: docIds[6], project_id: projectIds[6] },
|
|
|
|
// multiple in a single batch
|
|
|
|
{ _id: docIds[7], project_id: projectIds[7], deleted: true },
|
|
|
|
{ _id: docIds[8], project_id: projectIds[8], deleted: true },
|
2021-04-20 08:21:32 -04:00
|
|
|
{ _id: docIds[9], project_id: projectIds[9], deleted: true },
|
|
|
|
// two docs in one project
|
|
|
|
{ _id: docIds[10], project_id: projectIds[10], deleted: true },
|
2021-04-27 03:52:58 -04:00
|
|
|
{ _id: docIds[11], project_id: projectIds[11], deleted: true },
|
2021-04-15 05:04:30 -04:00
|
|
|
])
|
|
|
|
})
|
|
|
|
beforeEach('insert deleted project context', async function () {
|
|
|
|
await db.deletedProjects.insertMany([
|
2021-04-15 10:23:49 -04:00
|
|
|
// projectIds[0] and projectIds[1] have no entry
|
2021-04-15 05:04:30 -04:00
|
|
|
|
|
|
|
// hard-deleted
|
2021-04-15 10:23:49 -04:00
|
|
|
{ deleterData: { deletedProjectId: projectIds[2] } },
|
2021-04-15 05:04:30 -04:00
|
|
|
// soft-deleted, no entry for doc
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
deleterData: { deletedProjectId: projectIds[3] },
|
2021-04-27 03:52:58 -04:00
|
|
|
project: { deletedDocs: [] },
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
|
|
|
// soft-deleted, has entry for doc
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
deleterData: { deletedProjectId: projectIds[4] },
|
2021-04-15 05:04:30 -04:00
|
|
|
project: {
|
2021-04-20 08:21:32 -04:00
|
|
|
deletedDocs: [
|
|
|
|
{ _id: docIds[4], name: 'main.tex', deletedAt: now },
|
2021-04-27 03:52:58 -04:00
|
|
|
{ _id: docIds[11], name: 'main.tex', deletedAt: now },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2021-04-15 05:04:30 -04:00
|
|
|
])
|
|
|
|
})
|
|
|
|
|
|
|
|
let options
|
|
|
|
async function runScript(dryRun) {
|
|
|
|
options = {
|
2021-04-15 10:23:49 -04:00
|
|
|
BATCH_SIZE,
|
2021-04-20 08:21:32 -04:00
|
|
|
CACHE_SIZE: 100,
|
2021-04-15 05:04:30 -04:00
|
|
|
DRY_RUN: dryRun,
|
2021-04-15 10:23:49 -04:00
|
|
|
FIRST_PROJECT_ID: projectIds[0].toString(),
|
2021-04-15 05:04:30 -04:00
|
|
|
INCREMENT_BY_S: ONE_DAY_IN_S,
|
|
|
|
STOP_AT_S: stopAtSeconds,
|
|
|
|
// start right away
|
2021-04-27 03:52:58 -04:00
|
|
|
LET_USER_DOUBLE_CHECK_INPUTS_FOR: 1,
|
2021-04-15 05:04:30 -04:00
|
|
|
}
|
|
|
|
let result
|
|
|
|
try {
|
|
|
|
result = await promisify(exec)(
|
|
|
|
Object.entries(options)
|
|
|
|
.map(([key, value]) => `${key}=${value}`)
|
|
|
|
.concat(['node', 'scripts/back_fill_dummy_doc_meta.js'])
|
|
|
|
.join(' ')
|
|
|
|
)
|
|
|
|
} catch (error) {
|
|
|
|
// dump details like exit code, stdErr and stdOut
|
|
|
|
logger.error({ error }, 'script failed')
|
|
|
|
throw error
|
|
|
|
}
|
|
|
|
let { stderr: stdErr, stdout: stdOut } = result
|
|
|
|
stdErr = stdErr.split('\n')
|
2021-05-19 08:07:22 -04:00
|
|
|
stdOut = stdOut.split('\n').filter(filterOutput)
|
2021-04-15 05:04:30 -04:00
|
|
|
|
2021-04-20 08:21:32 -04:00
|
|
|
const oneDayFromProjectId9InSeconds =
|
|
|
|
getSecondsFromObjectId(projectIds[9]) + ONE_DAY_IN_S
|
|
|
|
const oneDayFromProjectId9AsObjectId = getObjectIdFromDate(
|
|
|
|
1000 * oneDayFromProjectId9InSeconds
|
|
|
|
)
|
|
|
|
let overlappingPartStdOut
|
|
|
|
let overlappingPartStdErr
|
|
|
|
if (dryRun) {
|
|
|
|
// In dry-run, the previous id will get processed again as the name has not been updated.
|
|
|
|
overlappingPartStdOut = [
|
|
|
|
`Back filling dummy meta data for ["${docIds[9]}","${docIds[10]}"]`,
|
|
|
|
`Orphaned deleted doc ${docIds[9]} (no deletedProjects entry)`,
|
2021-04-27 03:52:58 -04:00
|
|
|
`Orphaned deleted doc ${docIds[10]} (no deletedProjects entry)`,
|
2021-04-20 08:21:32 -04:00
|
|
|
]
|
|
|
|
overlappingPartStdErr = [
|
2021-04-27 03:52:58 -04:00
|
|
|
`Processed 11 until ${oneDayFromProjectId9AsObjectId}`,
|
2021-04-20 08:21:32 -04:00
|
|
|
]
|
|
|
|
} else {
|
|
|
|
// Outside dry-run, the previous id will not match again as the `name` has been back-filled.
|
|
|
|
overlappingPartStdOut = [
|
|
|
|
`Back filling dummy meta data for ["${docIds[10]}"]`,
|
2021-04-27 03:52:58 -04:00
|
|
|
`Orphaned deleted doc ${docIds[10]} (no deletedProjects entry)`,
|
2021-04-20 08:21:32 -04:00
|
|
|
]
|
|
|
|
overlappingPartStdErr = [
|
2021-04-27 03:52:58 -04:00
|
|
|
`Processed 10 until ${oneDayFromProjectId9AsObjectId}`,
|
2021-04-20 08:21:32 -04:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-05-19 08:07:22 -04:00
|
|
|
expect(stdOut.filter(filterOutput)).to.deep.equal([
|
2021-04-15 10:23:49 -04:00
|
|
|
`Back filling dummy meta data for ["${docIds[0]}"]`,
|
|
|
|
`Orphaned deleted doc ${docIds[0]} (no deletedProjects entry)`,
|
|
|
|
`Back filling dummy meta data for ["${docIds[1]}"]`,
|
|
|
|
`Orphaned deleted doc ${docIds[1]} (no deletedProjects entry)`,
|
|
|
|
`Back filling dummy meta data for ["${docIds[2]}"]`,
|
|
|
|
`Orphaned deleted doc ${docIds[2]} (failed hard deletion)`,
|
|
|
|
`Back filling dummy meta data for ["${docIds[3]}"]`,
|
|
|
|
`Missing deletedDoc for ${docIds[3]}`,
|
2021-04-20 08:21:32 -04:00
|
|
|
// two docs in the same project
|
|
|
|
`Back filling dummy meta data for ["${docIds[4]}","${docIds[11]}"]`,
|
2021-04-15 10:23:49 -04:00
|
|
|
`Found deletedDoc for ${docIds[4]}`,
|
2021-04-20 08:21:32 -04:00
|
|
|
`Found deletedDoc for ${docIds[11]}`,
|
2021-04-15 10:23:49 -04:00
|
|
|
// 7,8,9 are on the same day, but exceed the batch size of 2
|
2021-04-20 08:21:32 -04:00
|
|
|
`Back filling dummy meta data for ["${docIds[7]}","${docIds[8]}","${docIds[9]}"]`,
|
2021-04-15 10:23:49 -04:00
|
|
|
`Orphaned deleted doc ${docIds[7]} (no deletedProjects entry)`,
|
|
|
|
`Orphaned deleted doc ${docIds[8]} (no deletedProjects entry)`,
|
|
|
|
`Orphaned deleted doc ${docIds[9]} (no deletedProjects entry)`,
|
2021-04-20 08:21:32 -04:00
|
|
|
// Potential double processing
|
|
|
|
...overlappingPartStdOut,
|
2021-04-27 03:52:58 -04:00
|
|
|
'',
|
2021-04-15 05:04:30 -04:00
|
|
|
])
|
2021-05-19 08:07:22 -04:00
|
|
|
expect(stdErr.filter(filterOutput)).to.deep.equal([
|
2021-08-04 05:34:41 -04:00
|
|
|
`Options: {`,
|
|
|
|
` "dryRun": ${options.DRY_RUN},`,
|
|
|
|
` "cacheSize": ${options.CACHE_SIZE},`,
|
|
|
|
` "firstProjectId": "${options.FIRST_PROJECT_ID}",`,
|
|
|
|
` "incrementByS": ${options.INCREMENT_BY_S},`,
|
|
|
|
` "batchSize": ${options.BATCH_SIZE},`,
|
|
|
|
` "stopAtS": ${options.STOP_AT_S},`,
|
|
|
|
` "letUserDoubleCheckInputsFor": ${options.LET_USER_DOUBLE_CHECK_INPUTS_FOR}`,
|
|
|
|
'}',
|
2021-04-15 05:04:30 -04:00
|
|
|
'Waiting for you to double check inputs for 1 ms',
|
2021-04-20 08:21:32 -04:00
|
|
|
`Processed 1 until ${getObjectIdFromDate('2021-04-02T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-03T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-04T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-05T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-06T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-07T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-08T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-09T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-10T00:00:00.000Z')}`,
|
|
|
|
`Processed 2 until ${getObjectIdFromDate('2021-04-11T00:00:00.000Z')}`,
|
|
|
|
`Processed 3 until ${getObjectIdFromDate('2021-04-12T00:00:00.000Z')}`,
|
|
|
|
`Processed 4 until ${getObjectIdFromDate('2021-04-13T00:00:00.000Z')}`,
|
|
|
|
`Processed 6 until ${getObjectIdFromDate('2021-04-14T00:00:00.000Z')}`,
|
|
|
|
`Processed 6 until ${getObjectIdFromDate('2021-04-15T00:00:00.000Z')}`,
|
|
|
|
`Processed 6 until ${getObjectIdFromDate('2021-04-16T00:00:00.000Z')}`,
|
|
|
|
// 7,8,9,10 are on the same day, but exceed the batch size of 3
|
|
|
|
`Processed 9 until ${projectIds[9]}`,
|
|
|
|
...overlappingPartStdErr,
|
2021-04-15 05:04:30 -04:00
|
|
|
'Done.',
|
2021-04-27 03:52:58 -04:00
|
|
|
'',
|
2021-04-15 05:04:30 -04:00
|
|
|
])
|
|
|
|
}
|
|
|
|
|
|
|
|
describe('DRY_RUN=true', function () {
|
|
|
|
beforeEach('run script', async function () {
|
|
|
|
await runScript(true)
|
|
|
|
})
|
|
|
|
|
|
|
|
it('should leave docs as is', async function () {
|
|
|
|
const docs = await db.docs.find({}).toArray()
|
|
|
|
expect(docs).to.deep.equal([
|
2021-04-15 10:23:49 -04:00
|
|
|
{ _id: docIds[0], project_id: projectIds[0], deleted: true },
|
|
|
|
{ _id: docIds[1], project_id: projectIds[1], deleted: true },
|
|
|
|
{ _id: docIds[2], project_id: projectIds[2], deleted: true },
|
|
|
|
{ _id: docIds[3], project_id: projectIds[3], deleted: true },
|
|
|
|
{ _id: docIds[4], project_id: projectIds[4], deleted: true },
|
2021-04-15 05:04:30 -04:00
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[5],
|
|
|
|
project_id: projectIds[5],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: 'foo.tex',
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: now,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
2021-04-15 10:23:49 -04:00
|
|
|
{ _id: docIds[6], project_id: projectIds[6] },
|
|
|
|
{ _id: docIds[7], project_id: projectIds[7], deleted: true },
|
|
|
|
{ _id: docIds[8], project_id: projectIds[8], deleted: true },
|
2021-04-20 08:21:32 -04:00
|
|
|
{ _id: docIds[9], project_id: projectIds[9], deleted: true },
|
|
|
|
{ _id: docIds[10], project_id: projectIds[10], deleted: true },
|
2021-04-27 03:52:58 -04:00
|
|
|
{ _id: docIds[11], project_id: projectIds[11], deleted: true },
|
2021-04-15 05:04:30 -04:00
|
|
|
])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
describe('DRY_RUN=false', function () {
|
|
|
|
beforeEach('run script', async function () {
|
|
|
|
await runScript(false)
|
|
|
|
})
|
|
|
|
|
|
|
|
it('should back fill name and deletedAt dates into broken docs', async function () {
|
|
|
|
const docs = await db.docs.find({}).toArray()
|
|
|
|
expect(docs).to.deep.equal([
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[0],
|
|
|
|
project_id: projectIds[0],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[1],
|
|
|
|
project_id: projectIds[1],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[2],
|
|
|
|
project_id: projectIds[2],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[3],
|
|
|
|
project_id: projectIds[3],
|
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-15 10:23:49 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_id: docIds[4],
|
|
|
|
project_id: projectIds[4],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: 'main.tex',
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: now,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
|
|
|
{
|
2021-04-15 10:23:49 -04:00
|
|
|
_id: docIds[5],
|
|
|
|
project_id: projectIds[5],
|
2021-04-15 05:04:30 -04:00
|
|
|
deleted: true,
|
|
|
|
name: 'foo.tex',
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: now,
|
2021-04-15 05:04:30 -04:00
|
|
|
},
|
2021-04-15 10:23:49 -04:00
|
|
|
{ _id: docIds[6], project_id: projectIds[6] },
|
|
|
|
{
|
|
|
|
_id: docIds[7],
|
|
|
|
project_id: projectIds[7],
|
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-15 10:23:49 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_id: docIds[8],
|
|
|
|
project_id: projectIds[8],
|
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-15 10:23:49 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_id: docIds[9],
|
|
|
|
project_id: projectIds[9],
|
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-20 08:21:32 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_id: docIds[10],
|
|
|
|
project_id: projectIds[10],
|
|
|
|
deleted: true,
|
|
|
|
name: DUMMY_NAME,
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: DUMMY_TIME,
|
2021-04-20 08:21:32 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_id: docIds[11],
|
|
|
|
project_id: projectIds[11],
|
|
|
|
deleted: true,
|
|
|
|
name: 'main.tex',
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: now,
|
|
|
|
},
|
2021-04-15 05:04:30 -04:00
|
|
|
])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|