Skip to content

Commit

Permalink
[Fixes #7852] Update catalog and background layers url configuration …
Browse files Browse the repository at this point in the history
…in settings.py and related files (#9950) (#10129)

* -[Fixes #7852] Update catalog and background layers url configuration in settings.py and related files

* - update geoid url

Co-authored-by: NAGGINDA MARTHA <marthamareal@gmail.com>
  • Loading branch information
github-actions[bot] and marthamareal committed Oct 12, 2022
1 parent 0773bb9 commit 4df71f6
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 66 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team via alessio.fabiani@geo-solutions.it . All
reported by contacting the project team via alessio.fabiani@geosolutionsgroup.com . All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
2 changes: 1 addition & 1 deletion celery-cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# A configurable celery command.
# Luca Pasquali <luca.pasquali@geo-solutions.it>
# Luca Pasquali <luca.pasquali@geosolutionsgroup.com>
CELERY_BIN=${CELERY_BIN:-"$(which celery||echo celery)"}
CELERY_APP=${CELERY_APP:-"geonode.celery_app:app"}
CELERY__STATE_DB=${CELERY__STATE_DB:-"/mnt/volumes/statics/worker.state"}
Expand Down
24 changes: 13 additions & 11 deletions geonode/local_settings.py.geoserver.sample
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,6 @@ if GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY == 'mapstore':

GEONODE_CATALOGUE_SERVICE = get_geonode_catalogue_service()

MAPSTORE_CATALOGUE_SERVICES = {}

MAPSTORE_CATALOGUE_SELECTED_SERVICE = ""

if GEONODE_CATALOGUE_SERVICE:
MAPSTORE_CATALOGUE_SERVICES[list(GEONODE_CATALOGUE_SERVICE.keys())[0]] = GEONODE_CATALOGUE_SERVICE[list(GEONODE_CATALOGUE_SERVICE.keys())[0]]
MAPSTORE_CATALOGUE_SELECTED_SERVICE = list(GEONODE_CATALOGUE_SERVICE.keys())[0]

DEFAULT_MS2_BACKGROUNDS = [
{
"type": "tileprovider",
Expand Down Expand Up @@ -377,10 +369,20 @@ if GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY == 'mapstore':
"format": "image/jpeg",
"id": "s2cloudless",
"name": "s2cloudless:s2cloudless",
"url": "https://maps.geo-solutions.it/geoserver/wms",
"url": [
"https://maps1.geosolutionsgroup.com/geoserver/wms",
"https://maps2.geosolutionsgroup.com/geoserver/wms",
"https://maps3.geosolutionsgroup.com/geoserver/wms",
"https://maps4.geosolutionsgroup.com/geoserver/wms",
"https://maps5.geosolutionsgroup.com/geoserver/wms",
"https://maps6.geosolutionsgroup.com/geoserver/wms"
],
"group": "background",
"thumbURL": "%sstatic/mapstorestyle/img/s2cloudless-s2cloudless.png" % SITEURL,
"visibility": False
"thumbURL": f"{SITEURL}static/mapstorestyle/img/s2cloudless-s2cloudless.png",
"visibility": False,
"credits": {
"title": "<a class=\"a-light\" xmlns:dct=\"http://purl.org/dc/terms/\" href=\"https://s2maps.eu\" property=\"dct:title\">Sentinel-2 cloudless 2016</a> by <a class=\"a-light\" xmlns:cc=\"http://creativecommons.org/ns#\" href=\"https://eox.at\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">EOX IT Services GmbH</a>"
}
},
{
"source": "ol",
Expand Down
2 changes: 1 addition & 1 deletion geonode/locale/it/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# Antonio <anto.opro@gmail.com>, 2013
# Paolo Corti <pcorti@gmail.com>, 2013
# Stefano Menegon <ste.menegon@gmail.com>, 2015
# Alessio Fabiani <alessio.fabiani@geo-solutions.it>, 2021
# Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com>, 2021
msgid ""
msgstr ""
"Project-Id-Version: GeoNode\n"
Expand Down
2 changes: 1 addition & 1 deletion geonode/maps/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def test_create_map(self):
},
{
"id": "s2cloudless",
"url": "https://maps.geo-solutions.it/geoserver/wms",
"url": "https://maps.geosolutionsgroup.com.it/geoserver/wms",
"name": "s2cloudless:s2cloudless",
"type": "wms",
"group": "background",
Expand Down
4 changes: 2 additions & 2 deletions geonode/monitoring/tests/resources/req.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
</remoteUserAgent>
<remoteLat>0.0</remoteLat>
<remoteLon>0.0</remoteLon>
<host>demo.geo-solutions.it</host>
<host>demo.geosolutionsgroup.com</host>
<internalHost>ks390295.kimsufi.com</internalHost>
<service>WMS</service>
<operation>GetMap</operation>
Expand All @@ -33,7 +33,7 @@ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
<responseContentType>image/png</responseContentType>
<responseStatus>200</responseStatus>
<httpReferer>
http://dev.mapstore2.geo-solutions.it/mapstore/examples/api/?map=Prueba
http://dev.mapstore2.geosolutionsgroup.com/mapstore/examples/api/?map=Prueba
</httpReferer>
<bbox class="org.geotools.geometry.jts.ReferencedEnvelope">
<minx>-45.00000000000001</minx>
Expand Down
4 changes: 2 additions & 2 deletions geonode/monitoring/tests/resources/req_err.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<remoteUserAgent>Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36</remoteUserAgent>
<remoteLat>0.0</remoteLat>
<remoteLon>0.0</remoteLon>
<host>demo.geo-solutions.it</host>
<host>demo.geosolutionsgroup.com</host>
<internalHost>ks390295.kimsufi.com</internalHost>
<service>WMS</service>
<operation>GetMap</operation>
Expand Down Expand Up @@ -443,7 +443,7 @@
<exceptionText/>
</error>
<responseStatus>200</responseStatus>
<httpReferer>http://mapstore2.geo-solutions.it/mapstore/</httpReferer>
<httpReferer>http://mapstore2.geosolutionsgroup.com/mapstore/</httpReferer>
<bbox class="org.geotools.geometry.jts.ReferencedEnvelope">
<minx>-56.25000000000001</minx>
<maxx>-45.00000000000001</maxx>
Expand Down
2 changes: 1 addition & 1 deletion geonode/services/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def setUpClass(cls):
reg_url = reverse('register_service')
cls.client.get(reg_url)

url = 'https://demo.geo-solutions.it/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
url = 'https://demo.geosolutionsgroup.com/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
service_type = enumerations.WMS
form_data = {
'url': url,
Expand Down
8 changes: 4 additions & 4 deletions geonode/services/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def test_local_user_cant_delete_service(self):
self.client.logout()
response = self.client.get(reverse('register_service'))
self.assertEqual(response.status_code, 302)
url = 'https://demo.geo-solutions.it/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
url = 'https://maps.geosolutionsgroup.com/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
# url = "http://fake"
service_type = enumerations.WMS
form_data = {
Expand Down Expand Up @@ -858,14 +858,14 @@ def test_local_user_cant_delete_service(self):
@flaky(max_runs=3)
def test_add_duplicate_remote_service_url(self):
form_data = {
'url': 'https://demo.geo-solutions.it/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities',
'url': 'https://demo.geosolutionsgroup.com/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities',
'type': enumerations.WMS
}

self.client.login(username='serviceowner', password='somepassword')

# Add the first resource
url = 'https://demo.geo-solutions.it/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
url = 'https://demo.geosolutionsgroup.com/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
# url = "http://fake"
service_type = enumerations.WMS
form_data = {
Expand Down Expand Up @@ -911,7 +911,7 @@ def setUpClass(cls):
reg_url = reverse('register_service')
cls.client.get(reg_url)

url = 'https://demo.geo-solutions.it/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
url = 'https://demo.geosolutionsgroup.com/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities'
service_type = enumerations.WMS
form_data = {
'url': url,
Expand Down
10 changes: 1 addition & 9 deletions geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,14 +1463,6 @@ def get_geonode_catalogue_service():

GEONODE_CATALOGUE_SERVICE = get_geonode_catalogue_service()

MAPSTORE_CATALOGUE_SERVICES = {}

MAPSTORE_CATALOGUE_SELECTED_SERVICE = ""

if GEONODE_CATALOGUE_SERVICE:
MAPSTORE_CATALOGUE_SERVICES[list(list(GEONODE_CATALOGUE_SERVICE.keys()))[0]] = GEONODE_CATALOGUE_SERVICE[list(list(GEONODE_CATALOGUE_SERVICE.keys()))[0]] # noqa
MAPSTORE_CATALOGUE_SELECTED_SERVICE = list(list(GEONODE_CATALOGUE_SERVICE.keys()))[0]

DEFAULT_MS2_BACKGROUNDS = [
{
"type": "osm",
Expand All @@ -1493,7 +1485,7 @@ def get_geonode_catalogue_service():
"format": "image/jpeg",
"id": "s2cloudless",
"name": "s2cloudless:s2cloudless",
"url": "https://maps.geo-solutions.it/geoserver/wms",
"url": "https://maps.geosolutionsgroup.com/geoserver/wms",
"group": "background",
"thumbURL": f"{SITEURL}static/mapstorestyle/img/s2cloudless-s2cloudless.png",
"visibility": False
Expand Down
4 changes: 2 additions & 2 deletions geonode/thumbs/tests/fixtures/map_dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"map":1002,
"name":"s2cloudless:s2cloudless",
"store":null,
"ows_url":"https://maps.geo-solutions.it/geoserver/wms",
"ows_url":"https://maps.geosolutionsgroup.com/geoserver/wms",
"extra_params":{
"msId":"s2cloudless"
},
Expand Down Expand Up @@ -105,7 +105,7 @@
"map":1009,
"name":"s2cloudless:s2cloudless",
"store":null,
"ows_url":"https://maps.geo-solutions.it/geoserver/wms",
"ows_url":"https://maps.geosolutionsgroup.com/geoserver/wms",
"extra_params":{
"msId":"s2cloudless"
},
Expand Down
2 changes: 1 addition & 1 deletion geonode/thumbs/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_datasets_locations_simple_map(self):
map=map,
name="Meteorite_Landings_from_NASA_Open_Data_Portal1",
current_style="test_style",
ows_url="https://maps.geo-solutions.it/geoserver/wms",
ows_url="https://maps.geosolutionsgroup.com/geoserver/wms",
).save()
locations, bbox = thumbnails._datasets_locations(map)

Expand Down
40 changes: 20 additions & 20 deletions package/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -694,13 +694,13 @@ geonode (2.10.0+rc4) bionic; urgency=high
* [07549481d] 2018-01-16 - (Alessio Fabiani ) [Fixes #3568] - Fix, improve and adapt Backup/Restore Scripts to GeoNode 2.6+ (#3571)
* [da4b12b92] 2018-01-15 - (Ricardo Garcia ..) added support for KML and KMZ with GroundOverlay

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Tue, 21 Aug 2018 16:47:18 +0200
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Tue, 21 Aug 2018 16:47:18 +0200

geonode (2.8.0+thefinal1) xenial; urgency=high
* [514196] Update README
* [f6dd15] Constrain pip to 9.0.3

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Thu, 26 Apr 2018 12:44:14 +0200
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Thu, 26 Apr 2018 12:44:14 +0200

geonode (2.8.0+thefinal0) xenial; urgency=high
[ afabiani ]
Expand Down Expand Up @@ -729,7 +729,7 @@ geonode (2.8.0+thefinal0) xenial; urgency=high
[ Alessio Fabiani ]
* [48eea1] Release 2.8.0

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Tue, 03 Apr 2018 10:40:23 +0200
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Tue, 03 Apr 2018 10:40:23 +0200

geonode (2.8.0+rc12) xenial; urgency=high
[ Alessio Fabiani ]
Expand Down Expand Up @@ -785,57 +785,57 @@ geonode (2.8.0+rc12) xenial; urgency=high

[ Alessio Fabiani ]

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Fri, 30 Mar 2018 11:55:49 +0200
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Fri, 30 Mar 2018 11:55:49 +0200

geonode (2.8.0+rc10) xenial; urgency=high

* [c8abc4] GeoNode 2.7.5.dev20180123130714

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Wed, 24 Jan 2018 16:41:05 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Wed, 24 Jan 2018 16:41:05 +0100

geonode (2.7.5+dev20180123112419) xenial; urgency=high
* [dd4a19] [Fixes #3568] - Fix, improve and adapt Backup/Restore Scripts to GeoNode 2.6+ (#3571)
* [c8bd21] [Fixes #3565 #3566] Topic Category is no more visible on the Layer summary list / If a Resource belongs to a Group, it should be also visible on the summary list

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Tue, 23 Jan 2018 14:06:12 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Tue, 23 Jan 2018 14:06:12 +0100

geonode (2.8.0+rc9) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Mon, 22 Jan 2018 17:00:01 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Mon, 22 Jan 2018 17:00:01 +0100

geonode (2.8.0+rc8) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Mon, 22 Jan 2018 16:07:49 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Mon, 22 Jan 2018 16:07:49 +0100

geonode (2.8.0+rc7) xenial; urgency=high

* [d4e678] - GeoNode Releasing 2.8.0rc3
* [f61c3a] - GeoNode 2.8rc6
* [82927b] - GeoNode 2.8

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Mon, 22 Jan 2018 15:12:04 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Mon, 22 Jan 2018 15:12:04 +0100

geonode (2.8.0+rc6) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Fri, 19 Jan 2018 02:42:42 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Fri, 19 Jan 2018 02:42:42 +0100

geonode (2.8.0+rc5) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Fri, 19 Jan 2018 01:59:18 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Fri, 19 Jan 2018 01:59:18 +0100

geonode (2.8.0+rc4) xenial; urgency=high

* [b92c19] - GeoNode Releasing 2.8.0rc3

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Fri, 19 Jan 2018 01:17:22 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Fri, 19 Jan 2018 01:17:22 +0100

geonode (2.8.0+rc3) xenial; urgency=high

Expand All @@ -845,25 +845,25 @@ geonode (2.8.0+rc3) xenial; urgency=high
[ Alessio Fabiani ]
* [f8b945] - GeoNode Releasing

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Thu, 18 Jan 2018 20:39:58 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Thu, 18 Jan 2018 20:39:58 +0100

geonode (2.8.0+rc2) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Thu, 18 Jan 2018 11:34:09 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Thu, 18 Jan 2018 11:34:09 +0100

geonode (2.8.0+rc1) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Wed, 17 Jan 2018 18:50:18 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Wed, 17 Jan 2018 18:50:18 +0100

geonode (2.8.0+rc0) xenial; urgency=high

* UNRELEASED

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Wed, 17 Jan 2018 18:45:44 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Wed, 17 Jan 2018 18:45:44 +0100

geonode (2.8.0+rc0) xenial; urgency=high

Expand All @@ -875,7 +875,7 @@ geonode (2.8.0+rc0) xenial; urgency=high
* [27db87] - Fix GeoNode 2.6.3 to 2.7.x+ Migration (#3547)
* [a1ed92] [2.7.x] - Prepare for 28x (#3551)

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Mon, 15 Jan 2018 09:56:20 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Mon, 15 Jan 2018 09:56:20 +0100

geonode (2.7.4+dev20171114153121) xenial; urgency=high

Expand Down Expand Up @@ -1479,7 +1479,7 @@ geonode (2.7.4+dev20171114153121) xenial; urgency=high
[ Alessio Fabiani ]
* [20f27a] Allow sending messages to multiple users and groups

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Tue, 14 Nov 2017 17:13:40 +0100
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Tue, 14 Nov 2017 17:13:40 +0100

geonode (2.7.1+dev20171013111656) xenial; urgency=high

Expand Down Expand Up @@ -1662,7 +1662,7 @@ geonode (2.7.1+dev20171013111656) xenial; urgency=high
* [66d4b0] - Improved Thumbnail Feedbacks
* [8bf09a] Merge with master

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Fri, 13 Oct 2017 17:14:40 +0200
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Fri, 13 Oct 2017 17:14:40 +0200

geonode (2.7.0+thefinal0) xenial; urgency=high

Expand Down Expand Up @@ -2347,7 +2347,7 @@ geonode (2.7.0+thefinal0) xenial; urgency=high
* [b3f938] - Returns referencing infos on Layers Upload
* [b5a775] bump to version 2.7.0

-- Alessio Fabiani <alessio.fabiani@geo-solutions.it> Tue, 05 Sep 2017 16:43:18 +0200
-- Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com> Tue, 05 Sep 2017 16:43:18 +0200

geonode (2.6.0+thefinal0) trusty; urgency=high

Expand Down
2 changes: 1 addition & 1 deletion package/debian/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: geonode
Maintainer: Alessio Fabiani <alessio.fabiani@geo-solutions.it>
Maintainer: Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com>
Section: python
Priority: optional
Standards-Version: 3.9.1
Expand Down

0 comments on commit 4df71f6

Please sign in to comment.