Skip to content

Commit

Permalink
[Ref GeoNode#4311] GNIP: Contrib apps cleanup on GeoNode / favorite,e…
Browse files Browse the repository at this point in the history
…xif,monitoring promoted / slack,nlp,mp removed
  • Loading branch information
afabiani committed May 27, 2019
1 parent 6457f47 commit 6c6f592
Show file tree
Hide file tree
Showing 324 changed files with 268 additions and 32,860 deletions.
48 changes: 7 additions & 41 deletions docs/reference/developers/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,13 @@ Default: ``False``

A boolean that specifies whether the Exif contrib app is enabled. If enabled, metadata is generated from Exif tags when documents are uploaded.

FAVORITE_ENABLED
----------------

Default: ``False``

A boolean that specifies ...TODO...

GEOTIFF_IO_ENABLED
------------
Default: ``False``
Expand All @@ -664,47 +671,6 @@ Default: `https://app.geotiff.io`

A string that specifies what instance of GeoTIFF.io should be opened when the 'Analyze with GeoTIFF.io' button is clicked.

NLP_ENABLED
-----------
Default: ``False``

A boolean that specifies whether the NLP (Natural Language Processing) contrib app is enabled. If enabled, NLP (specifically MITIE) is used to infer additional metadata from uploaded documents to help fill metadata gaps.

NLP_LOCATION_THRESHOLD
----------------------
Default: ``1.0``

A float that specifies the threshold for location matches.

NLP_LIBRARY_PATH
----------------
Default:: ``'/opt/MITIE/mitielib'``

A string that specifies the location of the MITIE library

NLP_MODEL_PATH
--------------
Default:: ``'/opt/MITIE/MITIE-models/english/ner_model.dat'``

A string that specifies the location of the NER (Named Entity Resolver). MITIE comes with English and Spanish NER models. Other models can be trained.

SLACK_ENABLED
-------------
Default: ``False``

A boolean that specifies whether the Slack contrib app is enabled. If enabled, GeoNode will send messages to the slack channels specified in SLACK_WEBHOOK_URLS when a document is uploaded, metadata is updated, etc. Coverage of events is still incomplete.

SLACK_WEBHOOK_URLS
------------------

A list that specifies the URLs to post Slack messages to. Each URL is for a different channel. The default URL should be replaced when slack integration is enabled.

Default::

SLACK_WEBHOOK_URLS = [
"https://hooks.slack.com/services/T000/B000/XX"
]

Amazon Web Services Settings
============================

Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/admin/monitoring/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GeoNode Monitoring
.. contents::
:depth: 4

Internal Monitoring Application (geonode.contrib.monitoring)
Internal Monitoring Application (geonode.monitoring)
------------------------------------------------------------

.. note:: This application requires MaxMind's GeoIP database file.
Expand Down Expand Up @@ -59,8 +59,8 @@ Installation
MONITORING_ENABLED = True
# add following lines to your local settings to enable monitoring
if MONITORING_ENABLED:
INSTALLED_APPS += ('geonode.contrib.monitoring',)
MIDDLEWARE_CLASSES += ('geonode.contrib.monitoring.middleware.MonitoringMiddleware',)
INSTALLED_APPS += ('geonode.monitoring',)
MIDDLEWARE_CLASSES += ('geonode.monitoring.middleware.MonitoringMiddleware',)
MONITORING_CONFIG = None
MONITORING_HOST_NAME = 'localhost'
MONITORING_SERVICE_NAME = 'local-geonode'
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/advanced/geonode_settings/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -875,15 +875,15 @@ MONITORING_ENABLED

Default: ``False``

Enable internal monitoring application (`geonode.contrib.monitoring`). If set to `True`, add following code to your local settings:
Enable internal monitoring application (`geonode.monitoring`). If set to `True`, add following code to your local settings:

.. code::

MONITORING_ENABLED = True
# add following lines to your local settings to enable monitoring
if MONITORING_ENABLED:
INSTALLED_APPS + ('geonode.contrib.monitoring',)
MIDDLEWARE_CLASSES + ('geonode.contrib.monitoring.middleware.MonitoringMiddleware',)
INSTALLED_APPS + ('geonode.monitoring',)
MIDDLEWARE_CLASSES + ('geonode.monitoring.middleware.MonitoringMiddleware',)

See :ref:`geonode_monitoring` for details.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ Upgrade Development Environment
408 MONITORING_ENABLED = True +-
409 # add following lines to your local settings to enable monitoring
410 if MONITORING_ENABLED:
411 INSTALLED_APPS += ('geonode.contrib.monitoring',)
412 MIDDLEWARE_CLASSES += ('geonode.contrib.monitoring.middleware.MonitoringMiddleware',)
411 INSTALLED_APPS += ('geonode.monitoring',)
412 MIDDLEWARE_CLASSES += ('geonode.monitoring.middleware.MonitoringMiddleware',)
413 MONITORING_CONFIG = None
414 MONITORING_SERVICE_NAME = 'local-geonode'
------------------------------------------------------------------------
Expand Down Expand Up @@ -1244,11 +1244,11 @@ Upgrade Development Environment

# add following lines to your local settings to enable monitoring
if MONITORING_ENABLED:
if 'geonode.contrib.monitoring' not in INSTALLED_APPS:
INSTALLED_APPS += ('geonode.contrib.monitoring',)
if 'geonode.contrib.monitoring.middleware.MonitoringMiddleware' not in MIDDLEWARE_CLASSES:
if 'geonode.monitoring' not in INSTALLED_APPS:
INSTALLED_APPS += ('geonode.monitoring',)
if 'geonode.monitoring.middleware.MonitoringMiddleware' not in MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES += \
('geonode.contrib.monitoring.middleware.MonitoringMiddleware',)
('geonode.monitoring.middleware.MonitoringMiddleware',)

GEOIP_PATH = os.path.join(PROJECT_ROOT, 'GeoIPCities.dat')
# If this option is enabled, Resources belonging to a Group won't be
Expand Down
6 changes: 3 additions & 3 deletions geonode/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ def resource_urls(request):
'never'),
USE_GEOSERVER=getattr(settings, 'USE_GEOSERVER', False),
USE_NOTIFICATIONS=has_notifications,
USE_MONITORING='geonode.contrib.monitoring' in settings.INSTALLED_APPS and settings.MONITORING_ENABLED,
USE_MONITORING='geonode.monitoring' in settings.INSTALLED_APPS and settings.MONITORING_ENABLED,
USE_WORLDMAP=settings.USE_WORLDMAP,
DEFAULT_ANONYMOUS_VIEW_PERMISSION=getattr(settings, 'DEFAULT_ANONYMOUS_VIEW_PERMISSION', False),
DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION=getattr(settings, 'DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION', False),
EXIF_ENABLED=getattr(
settings,
"EXIF_ENABLED",
False),
NLP_ENABLED=getattr(
FAVORITE_ENABLED=getattr(
settings,
"NLP_ENABLED",
"FAVORITE_ENABLED",
False),
SEARCH_FILTERS=getattr(
settings,
Expand Down
26 changes: 0 additions & 26 deletions geonode/contrib/dynamic/admin.py

This file was deleted.

Loading

0 comments on commit 6c6f592

Please sign in to comment.