Page MenuHomePhorge

Add a Before-Destruction Engine
Needs ReviewPublic

Authored by valerio.bozzolan on Mon, May 19, 21:48.

Details

Summary

Allow extensions to run hooks *before* an object is destroyed.

This would easily allow to do things like:

  • before you actually destroy a profile picture, find its active usages and set the builtin profile image (T16074)
  • before you actually destroy something at midnight, allow extensions to throw violently and effectively impede destruction saying "please go to sleep first" in the exception message, visible from command line.

Closes T16079
Ref T16074

Test Plan

Try to destroy something (./bin/remove destroy). Absolutely no regressions.

Diff Detail

Repository
rP Phorge
Branch
before-destruction-engine
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1996
Build 1996: arc lint + arc unit