Add base classes and registry for new actions framework.
Review Request #12752 — Created Dec. 7, 2022 and submitted — Latest diff uploaded
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 12
This is not the most recent revision of the diff. The latest diff is revision 14. See what's changed.
orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Commits
Files
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/templates/actions/action.html |
---|
reviewboard/templates/actions/action.js |
---|
reviewboard/templates/actions/menu_action.html |
---|