| commit | 626a1b239a6a44185a1bb72b94015e6b73fa7017 | [log] [tgz] |
|---|---|---|
| author | Daniele Sassoli <danielesassoli@gmail.com> | Tue Dec 09 18:44:51 2025 +0000 |
| committer | Daniele Sassoli <danielesassoli@gmail.com> | Thu Dec 18 09:42:33 2025 +0000 |
| tree | 00ce4fe5178155628d6bdb02021a002675e11e8a | |
| parent | ce9fda30683b5b6f4bb5bf503e5a72001e708801 [diff] |
Refactor common logic between Archiving and Deletion flows As archiving of repositories and deletion of trash folders share a lot of common logic, extract common parts in a super class in order to facilitate readability and maintainability. Bug: Issue 461332435 Change-Id: I27deb855b095d8e73d5b09701b67c27fe8c759e5
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.