Allow Admin Widget Integration through ReviewBoard Extensions
Review Request #6573 — Created Nov. 9, 2014 and submitted
There's now a AdminWidgetHook that extensions can use to register administartion widgets. This handles registering, and unregistering Admin widgets.
Unit tests have been written to make sure the AdminWidgetHook properly registers and unregisters widgets. A third unit test checks that the Widget subclass being registered ends up in primary_widgets list, when primary is set to True in the hook initalization.
Description | From | Last Updated |
---|---|---|
This test should verify that the widget is correctly registered (not just checking that there are no exceptions) |
david | |
If you want to test something that something doesn't throw an exception, wrap it in a try..except, like so: try: … |
brennie | |
This test should verify that the widget is correctly unregistered (not just checking that there are no exceptions) |
david | |
This test should verify that the widget is correctly registered (not just checking that there are no exceptions) |
david | |
There's really no reason to mark this string for translation. |
david | |
Can you swap the order of these two methods? |
david | |
No blank line here. |
chipx86 | |
"adding a new widget ..." |
chipx86 | |
This would be better using assertIn(TestWidget, secondary_widgets). Same below. |
chipx86 | |
Should be a ValueError. |
chipx86 | |
Col: 24 E128 continuation line under-indented for visual indent |
reviewbot |
- Description:
-
~ There's now a SCMToolHook that extensions can use to register source code management tools. This handles registering, unregistering, and retriving the SCM tools.
~ There's now a AdminWidget that extensions can use to register administartion widgets. This handles registering, and unregistering Admin widgets.
TODO:
Write unit tests. Make sure the hook is properly intergrated.
- Summary:
-
[WIP] Allow Admin Widget Integration through ReviewBoard ExtensionsAllow Admin Widget Integration through ReviewBoard Extensions
- Description:
-
There's now a AdminWidget that extensions can use to register administartion widgets. This handles registering, and unregistering Admin widgets.
- - TODO:
- Write unit tests. - Make sure the hook is properly intergrated. - Testing Done:
-
+ Unit tests have been written to make sure the AdminWidgetHook properly registers and unregisters widgets. A third unit test checks that the Widget subclass being registered ends up in primary_widgets list, when primary is set to True in the hook initalization.
- Commit:
-
38aa8b31200697ac90f53b26d152a3cd77405795f7fb7a39a798e297c1639e8b5cd6a8b3b0d451bd
-
Tool: Pyflakes Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Tool: PEP8 Style Checker Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py
-
-
This test should verify that the widget is correctly registered (not just checking that there are no exceptions)
-
This test should verify that the widget is correctly unregistered (not just checking that there are no exceptions)
-
This test should verify that the widget is correctly registered (not just checking that there are no exceptions)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Tool: Pyflakes Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py
- Description:
-
~ There's now a AdminWidget that extensions can use to register administartion widgets. This handles registering, and unregistering Admin widgets.
~ There's now a AdminWidgetHook that extensions can use to register administartion widgets. This handles registering, and unregistering Admin widgets.
- Commit:
-
c855823040fdad84485ca7bf302f04583b6edb2c8095d0a9c496490a8b9cbab58f7d891c332286a4
-
Tool: Pyflakes Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Tool: PEP8 Style Checker Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py
-
Tool: Pyflakes Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Tool: PEP8 Style Checker Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py
-
Tool: Pyflakes Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py Tool: PEP8 Style Checker Processed Files: reviewboard/admin/widgets.py reviewboard/extensions/hooks.py reviewboard/extensions/tests.py
-