Create a new extension hook for hiding built-in actions.
Review Request #12963 — Created April 20, 2023 and submitted — Latest diff uploaded
One thing extensions authors like to do on occasion is either hide or
replace built-in functionality. For example, some servers have disabled
the support menu or replaced the quick ship-it action with one that does
some custom behavior first. This change adds an official extension hook
to enable this without having to patch the code.
- Ran unit tests.
- Verified correctness of behavior with a small extension that hid the
support menu and ship-it action. - Built docs and checked the output.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
Commits
docs/manual/extending/index.rst |
---|
docs/manual/extending/extensions/hooks/action-hooks.rst |
---|
reviewboard/actions/base.py |
---|
reviewboard/extensions/hooks/__init__.py |
---|
reviewboard/extensions/hooks/actions.py |
---|
reviewboard/extensions/tests/test_action_hooks.py |
---|