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.