Add base classes and registry for new actions framework.

Review Request #12752 — Created Dec. 7, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

The actions framework is in the process of being rewritten to give us
better consistency across all the different types of actions, a real
registry, and new features and capabilities.

This change introduces the actions app with the action base classes and
registry, along with a JavaScript-side stub model/view, template tags
for rendering the actions on pages, and the beginnings of some unit
tests.

  • Ran unit tests.
  • Used this with other changes that start porting existing actions over
    to the new framework.

Diff Revision 14 (Latest)

orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14

Commits

First Last Summary ID Author
Add base classes and registry for new actions framework.
The actions framework is in the process of being rewritten to give us better consistency across all the different types of actions, a real registry, and new features and capabilities. This change introduces the actions app with the action base classes and registry, along with a JavaScript-side stub model/view, template tags for rendering the actions on pages, and the beginnings of some unit tests. Testing Done: - Ran unit tests. - Used this with other changes that start porting existing actions over to the new framework.
01b769a7cc9607bfc94beb3a36869df6ea02e434 David Trowbridge
reviewboard/settings.py
reviewboard/actions/__init__.py
reviewboard/actions/base.py
reviewboard/actions/errors.py
reviewboard/actions/registry.py
reviewboard/actions/templatetags/__init__.py
reviewboard/actions/templatetags/actions.py
reviewboard/actions/tests/__init__.py
reviewboard/actions/tests/test_registry.py
reviewboard/static/rb/js/common/index.ts
reviewboard/static/rb/js/common/actions/index.ts
reviewboard/static/rb/js/common/actions/models/action.ts
reviewboard/static/rb/js/common/actions/models/menuAction.ts
reviewboard/static/rb/js/common/actions/views/actionView.ts
reviewboard/static/rb/js/common/actions/views/menuActionView.ts
reviewboard/static/rb/js/pages/views/basePageView.es6.js
reviewboard/static/rb/js/ui/views/menuView.es6.js
reviewboard/templates/base.html
reviewboard/templates/actions/action.html
reviewboard/templates/actions/action.js
reviewboard/templates/actions/menu_action.html
Loading...