stable

Clone or download

Read-only

Limit concurrency when using @tuleap/tlp.fetch::recursiveGet

recursiveGet tries to retrieve all the elements in parallel. When a lot of requests need to be sent, it becomes counterproductive: * server and/or client might suffer from the quantity of requests to process * browsers might decide to throttle the misbehaving script anyway With this contribution, recursiveGet is throttle by default and developers can manage the number of requests they want to sent in parallel if they have the need for it. No functional changes are expected. Part of story #22213: get a document with basic fields Change-Id: I3d7aa23026ac6fb5c73f577f968186965a16a540

Modified Files

Name
M plugins/gitlab/package-lock.json +9 −1 Go to diff View file
M src/scripts/lib/tlp-fetch/package-lock.json +3 −1 Go to diff View file
M src/scripts/lib/tlp-fetch/package.json +5 −2 Go to diff View file
M src/scripts/lib/tlp-fetch/src/fetch-wrapper.test.ts +6 −0 Go to diff View file
M src/scripts/lib/tlp-fetch/src/fetch-wrapper.ts +11 −3 Go to diff View file
M src/scripts/lib/tlp-fetch/vite.config.ts +8 −0 Go to diff View file