Create a new extension hook for hiding built-in actions.

Review Request #12963 — Created April 20, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

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

First Last Summary ID Author
Create a new extension hook for hiding built-in actions.
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. Testing Done: - 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.
e1a0300f402989648f1adca79293dc1670a998c1 David Trowbridge
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
Loading...