Skip to content

Commit

Permalink
Merge pull request #4434 from GeoNode/GNIP_4311
Browse files Browse the repository at this point in the history
[Closes #4311] GNIP: Contrib apps cleanup on GeoNode
  • Loading branch information
Alessio Fabiani committed May 28, 2019
2 parents 6e5cf59 + 19db650 commit c86a17b
Show file tree
Hide file tree
Showing 478 changed files with 345 additions and 42,642 deletions.
31 changes: 0 additions & 31 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,34 +58,3 @@ reset: down up wait sync
hardreset: pull build reset

develop: pull build up sync

setup_worldmap:
# setup databases for using the worldmap application
export PG_ADMIN_USER=$(PG_ADMIN_USER);
export PG_USERNAME=$(PG_USERNAME);
export PG_PASSWORD=$(PG_PASSWORD);
export PG_WORLDMAP_DJANGO_DB=$(PG_WORLDMAP_DJANGO_DB);
export PG_WORLDMAP_UPLOADS_DB=$(PG_WORLDMAP_UPLOADS_DB);
export OWNER=$(OWNER);
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -c "CREATE USER $(PG_USERNAME) WITH SUPERUSER PASSWORD '$(PG_PASSWORD)';" ;
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -c "CREATE DATABASE $(PG_WORLDMAP_DJANGO_DB) WITH OWNER $(OWNER);"
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -d $(PG_WORLDMAP_DJANGO_DB) -c "CREATE EXTENSION postgis;"
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -d $(PG_WORLDMAP_DJANGO_DB) -c "CREATE EXTENSION dblink;"
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -c "CREATE DATABASE $(PG_WORLDMAP_UPLOADS_DB) WITH OWNER $(OWNER);"
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -d $(PG_WORLDMAP_UPLOADS_DB) -c "CREATE EXTENSION postgis;"
python manage.py migrate --noinput
python manage.py loaddata sample_admin
python manage.py loaddata geonode/base/fixtures/default_oauth_apps_docker.json
python manage.py loaddata geonode/base/fixtures/initial_data.json

remove_worldmap:
# remove databases for using the worldmap application
export PG_ADMIN_USER=$(PG_ADMIN_USER);
export PG_USERNAME=$(PG_USERNAME);
export PG_PASSWORD=$(PG_PASSWORD);
export PG_WORLDMAP_DJANGO_DB=$(PG_WORLDMAP_DJANGO_DB);
export PG_WORLDMAP_UPLOADS_DB=$(PG_WORLDMAP_UPLOADS_DB);
export OWNER=$(OWNER);
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -c "DROP DATABASE $(PG_WORLDMAP_DJANGO_DB);"
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -c "DROP DATABASE $(PG_WORLDMAP_UPLOADS_DB);"
psql -h $(PG_HOST) -U $(PG_ADMIN_USER) -c "DROP ROLE $(PG_USERNAME);"
89 changes: 0 additions & 89 deletions docs/reference/developers/geosites.txt

This file was deleted.

50 changes: 2 additions & 48 deletions docs/reference/developers/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -652,58 +652,12 @@ 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.

GEOTIFF_IO_ENABLED
------------
Default: ``False``

A boolean that specifies whether the GeoTIFF.io contrib feature is enabled. If enabled, an 'Analyze with GeoTIFF.io' button is added to the layer_detail page.

GEOTIFF_IO_BASE_URL
------------
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
FAVORITE_ENABLED
----------------
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"
]
A boolean that specifies ...TODO...

Amazon Web Services Settings
============================
Expand Down
4 changes: 0 additions & 4 deletions docs/reference/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ In this section, you will find information about every component of GeoNode, suc

:ref:`browsers`

:ref:`geosites`

.. toctree::
:hidden:
:maxdepth: 3
Expand All @@ -32,5 +30,3 @@ In this section, you will find information about every component of GeoNode, suc
developers/javascript
developers/settings
browsers
developers/geosites
worldmap
Loading

0 comments on commit c86a17b

Please sign in to comment.