删除附件分组时通过 Reconciler 去删除附件 #2710
Labels
area/core
Issues or PRs related to the Halo Core
kind/improvement
Categorizes issue or PR as related to a improvement.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Your current Halo version
2.0.0-alpha.4
Describe this feature
目前删除附件的逻辑是 Console 端处理的:
但调用API去删除分组下面的附件,附件过多时删除分组将会导致页面卡死或崩溃。
期望在 Group 中加上 finalizer,如果删除 Group 则在 reconciler 中先删除其下的所有附件,再移除 finalizer。
如果需要让用户决定是否级联删除附件,可以在 Group 中加上 spec.cascadeDelete=false 字段。
更多信息参考:
Additional information
/kind improvement
/area core
/label priority/critical-urgent
The text was updated successfully, but these errors were encountered: