You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,21 @@ Change Log
15
15
Unreleased
16
16
~~~~~~~~~~
17
17
18
+
[3.12.0] - 2020-11-17
19
+
~~~~~~~~~~~~~~~~~~~~~
20
+
21
+
Added
22
+
_____
23
+
24
+
* Added set_code_owner_attribute decorator for use with celery tasks.
25
+
* Added set_code_owner_attribute_from_module as an alternative to the decorator.
26
+
27
+
Updated
28
+
_______
29
+
30
+
* Cleaned up some of the code owner middleware code. In doing so, renamed custom attribute code_owner_path_module to code_owner_module. This may affect monitoring dashboards. Also slightly changed when error custom attributes are set.
Copy file name to clipboardExpand all lines: edx_django_utils/monitoring/docs/how_tos/add_code_owner_custom_attribute_to_an_ida.rst
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,25 @@ Setting up the Middleware
21
21
22
22
You simply need to add ``edx_django_utils.monitoring.CodeOwnerMonitoringMiddleware`` as described in the README to make this functionality available. Then it is ready to be configured.
23
23
24
+
Handling celery tasks
25
+
---------------------
26
+
27
+
Celery tasks require use of a special decorator to set the ``code_owner`` custom attribute because no middleware will be run.
28
+
29
+
Here is an example::
30
+
31
+
@task()
32
+
@set_code_owner_attribute
33
+
def example_task():
34
+
...
35
+
36
+
If the task is not compatible with additional decorators, you can use the following alternative::
0 commit comments