| commit | 6c444c83eb809236a994558166f5a59fe945d25b | [log] [tgz] |
|---|---|---|
| author | Fabio Ponciroli <ponch78@gmail.com> | Wed Nov 12 18:35:58 2025 +0100 |
| committer | Fabio Ponciroli <ponch78@gmail.com> | Tue Nov 18 04:19:29 2025 -0800 |
| tree | 17be9ac12934b577988c633063f7df8559a9d989 | |
| parent | cd7f488a7954fd6e68a7c8b5153b8fc615c25d3a [diff] |
Bound trash folder deletion with configurable timeout Large sites could spend too long scanning and deleting trash folders, leading to prolonged intensive I/O and increased system load. This change introduces a time cap for the deletion. A new configuration key, `deleteTrashFoldersMaxAllowedTime` (default: 10 min), bounds the execution time of the trash-folder sweep. This keeps long runs from monopolizing the worker while preserving the existing behavior within the allotted time window. Subsequent runs handle any remaining trash folders. Change-Id: I964c52ff74da7dba268128063a68d57cdf39a8df
A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.
For running unit tests execute:
bazel test //plugins/delete-project/web:web_test_runner
For checking or fixing eslint formatter problems run:
bazel test //plugins/delete-project/web:lint_test bazel run //plugins/delete-project/web:lint_bin -- --fix "$(pwd)/plugins/delete-project/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/ folder:
bazel build //plugins/delete-project/web:gr-delete-repo cp -f bazel-bin/plugins/delete-project/web/gr-delete-repo.js plugins/
and let the Dev Helper redirect from .+/plugins/delete-project/static/gr-delete-repo.js to http://localhost:8081/plugins_/gr-delete-repo.js.