from opal.core.search import urls
from opal.core import plugins


from opal.core import celery  # NOQA


class SearchPlugin(plugins.OpalPlugin):
    """
    The plugin entrypoint for OPAL's core search functionality
    """
    urls = urls.urlpatterns
    javascripts = {
        'opal.services': [
            'js/search/services/filter.js',
            'js/search/services/filters_loader.js',
            'js/search/services/filter_resource.js',
            "js/search/services/paginator.js",
        ],
        'opal.controllers': [
            'js/search/controllers/search.js',
            'js/search/controllers/extract.js',
            "js/search/controllers/save_filter.js",
        ]
    }

plugins.register(SearchPlugin)

from opal.core import celery  # NOQA
from opal.core.search import plugin

Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor
Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor

+ from opal.core import celery  # NOQA
- from opal.core.search import urls
+ from opal.core.search import plugin
- from opal.core import plugins
  
- 
- from opal.core import celery  # NOQA
- 
- 
- class SearchPlugin(plugins.OpalPlugin):
-     """
-     The plugin entrypoint for OPAL's core search functionality
-     """
-     urls = urls.urlpatterns
-     javascripts = {
-         'opal.services': [
-             'js/search/services/filter.js',
-             'js/search/services/filters_loader.js',
-             'js/search/services/filter_resource.js',
-             "js/search/services/paginator.js",
-         ],
-         'opal.controllers': [
-             'js/search/controllers/search.js',
-             'js/search/controllers/extract.js',
-             "js/search/controllers/save_filter.js",
-         ]
-     }
- 
- plugins.register(SearchPlugin)
- 
Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor
## Code Before:
from opal.core.search import urls
from opal.core import plugins


from opal.core import celery  # NOQA


class SearchPlugin(plugins.OpalPlugin):
    """
    The plugin entrypoint for OPAL's core search functionality
    """
    urls = urls.urlpatterns
    javascripts = {
        'opal.services': [
            'js/search/services/filter.js',
            'js/search/services/filters_loader.js',
            'js/search/services/filter_resource.js',
            "js/search/services/paginator.js",
        ],
        'opal.controllers': [
            'js/search/controllers/search.js',
            'js/search/controllers/extract.js',
            "js/search/controllers/save_filter.js",
        ]
    }

plugins.register(SearchPlugin)

## Instruction:
Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor
## Code After:
from opal.core import celery  # NOQA
from opal.core.search import plugin
