Commit 8da0d88
authored
Bulk delete findings: extension hook (#14740)
* Add bulk delete findings extension hook and optional cascade context
- Split internal bulk delete implementation from entry point that can
delegate via get_custom_method(BULK_DELETE_FINDINGS_METHOD).
- Allow callers to pass optional cascade_root alongside chunk_size for
downstream use when a custom method is configured.
* Fix docstring layout for bulk_delete_findings (Ruff D213)
* Pass product_id into bulk_delete_findings from async delete
- Extend bulk_delete_findings entry point with optional product_id for custom methods.
- async_delete_task: resolve product once for grading and metering; pass product_id
to bulk_delete_findings; skip perform_product_grading when deleting a Product.
* refactor1 parent 842fd2b commit 8da0d88
2 files changed
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
801 | 820 | | |
802 | 821 | | |
803 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2016 | 2016 | | |
2017 | 2017 | | |
2018 | 2018 | | |
2019 | | - | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
2020 | 2022 | | |
2021 | 2023 | | |
2022 | 2024 | | |
| |||
2025 | 2027 | | |
2026 | 2028 | | |
2027 | 2029 | | |
| 2030 | + | |
| 2031 | + | |
2028 | 2032 | | |
2029 | 2033 | | |
2030 | 2034 | | |
| |||
2043 | 2047 | | |
2044 | 2048 | | |
2045 | 2049 | | |
2046 | | - | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
2047 | 2055 | | |
2048 | 2056 | | |
2049 | | - | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
2050 | 2062 | | |
2051 | 2063 | | |
2052 | 2064 | | |
| |||
2062 | 2074 | | |
2063 | 2075 | | |
2064 | 2076 | | |
2065 | | - | |
2066 | | - | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2067 | 2081 | | |
2068 | 2082 | | |
2069 | 2083 | | |
| |||
0 commit comments