Merge pull request #34992 from overleaf/em-dropbox-rate-limits

[third-party-datastore] Handle Dropbox rate limits and per-project file-count limits during sync

GitOrigin-RevId: 0a3c4a06b6444a70394c35cb404c566ef7e25cef
This commit is contained in:
Eric Mc Sween
2026-09-17 11:20:59 +00:00
committed by Copybot
parent 926b7c534b
commit 6cea8580aa
15 changed files with 39 additions and 207 deletions
@@ -8,8 +8,6 @@ import ProjectGetter from '../Project/ProjectGetter.mjs'
import ProjectHelper from '../Project/ProjectHelper.mjs'
import ProjectRootDocManager from '../Project/ProjectRootDocManager.mjs'
import FileTypeManager from '../Uploads/FileTypeManager.mjs'
import CooldownManager from '../Cooldown/CooldownManager.mjs'
import Errors from '../Errors/Errors.js'
import Modules from '../../infrastructure/Modules.mjs'
async function newUpdate(
@@ -25,13 +23,6 @@ async function newUpdate(
return null
}
const projectIsOnCooldown = await CooldownManager.isProjectOnCooldown(
project._id
)
if (projectIsOnCooldown) {
throw new Errors.TooManyRequestsError('project on cooldown')
}
const shouldIgnore = FileTypeManager.shouldIgnore(path)
if (shouldIgnore) {
return null
@@ -174,13 +165,6 @@ async function createFolder(userId, projectId, projectName, path) {
return null
}
const projectIsOnCooldown = await CooldownManager.isProjectOnCooldown(
project._id
)
if (projectIsOnCooldown) {
throw new Errors.TooManyRequestsError('project on cooldown')
}
const shouldIgnore = FileTypeManager.shouldIgnore(path)
if (shouldIgnore) {
return null