Move monitoring functionality to util and AppConfig.

This commit is contained in:
John Eskew
2017-11-02 17:28:13 -04:00
parent 65433c9cd4
commit d7bab033f7
7 changed files with 8 additions and 18 deletions

View File

@@ -1006,9 +1006,6 @@ INSTALLED_APPS = [
# Signals
'openedx.core.djangoapps.signals.apps.SignalConfig',
# Monitoring signals
'openedx.core.djangoapps.monitoring',
# Course action state
'course_action_state',

View File

@@ -2199,9 +2199,6 @@ INSTALLED_APPS = [
# Country embargo support
'openedx.core.djangoapps.embargo',
# Monitoring functionality
'openedx.core.djangoapps.monitoring',
# Course action state
'course_action_state',

View File

@@ -1,6 +0,0 @@
This djangoapp is incorrectly named 'monitoring'.
The name is related to old functionality that used to be a part of this app.
TODO: The current contents of this app should be joined with other generic
platform utilities and renamed appropriately.

View File

@@ -1,5 +0,0 @@
"""
Registers signal handlers at startup.
"""
# pylint: disable=unused-import
import openedx.core.djangoapps.monitoring.exceptions

View File

@@ -7,8 +7,15 @@ from django.apps import AppConfig
class UtilConfig(AppConfig):
"""
Let Django know that this is an app with management commands.
Configuration class for the openedx.core.djangoapps.util Django application
"""
label = 'open_edx_util'
name = 'openedx.core.djangoapps.util'
verbose_name = 'Open edX Utilities'
def ready(self):
"""
Registers signal handlers at startup.
"""
# pylint: disable=unused-import
import openedx.core.djangoapps.util.signals