Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge remote-tracking branch 'origin/2.3' #3961

Merged
merged 34 commits into from
Aug 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b4e9898
remove index-url to pypi.camptocamp.net, as server is no longer maint…
jwkaltz Jul 17, 2018
d3ab4e9
Merge pull request #3920 from camptocamp/1_6_without_pypi_camptocamp
jwkaltz Jul 18, 2018
9bf7830
disable tests with postgres etc. (version used by c2cgeoportal 1.6 is…
jwkaltz Jul 24, 2018
481e53b
review feedback
jwkaltz Jul 25, 2018
71a030a
need facter for make build
jwkaltz Jul 25, 2018
78eba35
need another package for msgfmt (used by build)
jwkaltz Jul 25, 2018
ed06d42
Merge pull request #3934 from camptocamp/1_6_fix_travis
jwkaltz Jul 25, 2018
6845b3c
Do release 1.6.14
jwkaltz Jul 25, 2018
473d526
small precisions about update process
jwkaltz Jul 26, 2018
8804639
Merge pull request #3935 from camptocamp/doc_1_6
jwkaltz Jul 26, 2018
695d425
Better solution
sbrunner Jun 21, 2018
65ebd32
Be able to automatically get the gmfSearchGroups
sbrunner Jul 27, 2018
16048ee
Merge pull request #3938 from camptocamp/fts-dynamic
sbrunner Jul 27, 2018
a0ccc50
Fix the Git branch on Travis
sbrunner Jul 27, 2018
1575250
Merge pull request #3940 from camptocamp/docker-run-download
sbrunner Jul 30, 2018
3836914
Add a lock on getting the autoloaded table
sbrunner Jul 30, 2018
49cff54
Merge pull request #3941 from camptocamp/layer-edit-lock
sbrunner Jul 30, 2018
c46e9a5
small fix
jwkaltz Jul 30, 2018
0faab17
Merge pull request #3944 from camptocamp/1_6_doc_small_fix
jwkaltz Jul 30, 2018
2e51eec
Add customOpenLayersOptions metadata
sbrunner Jul 30, 2018
35ed004
Merge pull request #3946 from camptocamp/wms-custom-parameters
sbrunner Jul 31, 2018
ec06f86
Merge pull request #3937 from camptocamp/rmhack
sbrunner Jul 31, 2018
dc251f4
Update to mapserver 7.2
sbrunner Aug 2, 2018
6107d52
Fix stange test
sbrunner Aug 2, 2018
d116fee
Merge pull request #3949 from camptocamp/mapserver-7.2
sbrunner Aug 2, 2018
162dc63
Improve tinyows logs on Docker
Aug 3, 2018
3d03f3a
Merge pull request #3954 from camptocamp/tinyows_logs
Aug 3, 2018
9d16cf9
Merge remote-tracking branch 'origin/1.6' into 2.1
sbrunner Aug 3, 2018
f6e9958
Merge pull request #3958 from camptocamp/merge16
sbrunner Aug 3, 2018
cc4bb69
Merge remote-tracking branch 'origin/2.1' into 2.2
sbrunner Aug 3, 2018
0116e53
Merge pull request #3959 from camptocamp/merge21
sbrunner Aug 3, 2018
e81d890
Merge remote-tracking branch 'origin/2.2' into 2.3
sbrunner Aug 3, 2018
4ae632d
Merge pull request #3960 from camptocamp/merge22b
sbrunner Aug 3, 2018
e55b985
Merge remote-tracking branch 'origin/2.3'
sbrunner Aug 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ def main():
if is_windows else dir_path[1:].replace("/", "-")

try:
git_branch = subprocess.check_output([
"git", "rev-parse", "--abbrev-ref", "HEAD"
]).decode("utf-8").strip()
git_branch = \
os.environ['TRAVIS_BRANCH'] if 'TRAVIS_BRANCH' in os.environ else \
subprocess.check_output([
"git", "rev-parse", "--abbrev-ref", "HEAD"
]).decode("utf-8").strip()
git_hash = subprocess.check_output([
"git", "rev-parse", "HEAD"
]).decode("utf-8").strip()
Expand Down
2 changes: 1 addition & 1 deletion docker/test-mapserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM camptocamp/mapserver:7.0
FROM camptocamp/mapserver:7.2
LABEL maintainer Camptocamp "info@camptocamp.com"
COPY *.map /etc/mapserver/
19 changes: 11 additions & 8 deletions geoportal/c2cgeoportal_geoportal/lib/dbreflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
# The views and conclusions contained in the software and documentation are those
# of the authors and should not be interpreted as representing official policies,
# either expressed or implied, of the FreeBSD Project.


import threading
import warnings
from typing import Dict, Tuple # noqa, pylint: disable=unused-import

Expand Down Expand Up @@ -125,6 +124,9 @@ def _get_schema(tablename):
return tablename, schema


_get_table_lock = threading.RLock()


def get_table(tablename, schema=None, session=None, primary_key=None):
if schema is None:
tablename, schema = _get_schema(tablename)
Expand All @@ -148,12 +150,13 @@ def get_table(tablename, schema=None, session=None, primary_key=None):
if primary_key is not None:
# Ensure we have a primary key to be able to edit views
args.append(Column(primary_key, Integer, primary_key=True))
table = Table(
*args,
schema=schema,
autoload=True,
autoload_with=engine
)
with _get_table_lock:
table = Table(
*args,
schema=schema,
autoload=True,
autoload_with=engine
)
return table


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
image: ${docker_base}-config:${docker_tag}

mapserver:
image: camptocamp/mapserver:7.0
image: camptocamp/mapserver:7.2
volumes_from:
- config:rw
${service_defaults('mapserver', 80)}\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ${service_defaults('config')}\
${service_defaults('print', 8080)}\

mapserver:
image: camptocamp/mapserver:7.0
image: camptocamp/mapserver:7.2
user: www-data
volumes_from:
- config:rw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tinyows
online_resource="${web_protocol}://${host}${entry_point}tinyows_proxy"
schema_dir="/usr/share/tinyows/schema/"
log="tinyows.log"
log="/var/log/tinyows.log"
log_level="1"
check_schema="0">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ vars:
constants: &constants
defaultTheme: Demo
defaultLang: en
gmfSearchGroups: [osm, district]
gmfSearchActions:
- action: add_theme
title: Add a theme
Expand Down Expand Up @@ -66,6 +65,9 @@ vars:
mobile:
<<: *interface
redirect_interface: desktop
constants:
<<: *constants
gmfSearchGroups: []
mobile_alt:
<<: *interface
constants:
Expand All @@ -76,6 +78,9 @@ vars:
<<: *interface
redirect_interface: mobile
do_redirect: True
constants:
<<: *constants
gmfSearchGroups: []
routes:
<<: *routes
gmfProfileJsonUrl: profile.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ vars:
constants: &constants
defaultTheme: Demo
defaultLang: en
gmfSearchGroups: [osm, district]
gmfSearchActions:
- action: add_theme
title: Add a theme
Expand Down Expand Up @@ -66,6 +65,9 @@ vars:
mobile:
<<: *interface
redirect_interface: desktop
constants:
<<: *constants
gmfSearchGroups: []
mobile_alt:
<<: *interface
constants:
Expand All @@ -76,6 +78,9 @@ vars:
<<: *interface
redirect_interface: mobile
do_redirect: True
constants:
<<: *constants
gmfSearchGroups: []
routes:
<<: *routes
gmfProfileJsonUrl: profile.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ vars:
TINYOWS_URL: http://tinyows:8080/
MAPSERVER_URL: http://mapserver:8080/
PRINT_URL: http://print:8080/print/
DEVSERVER_URL: http://webpack-dev-server:8080${entry_point}
DEVSERVER_HOST: webpack-dev-server:8080
REDIS_HOST: redis
REDIS_PORT: 6379
C2C_REDIS_URL: redis://redis:6379
Expand Down Expand Up @@ -272,6 +272,8 @@ vars:
- name: geometryValidation # V1
type: boolean
- name: excludeProperties # not yet used
- name: customOpenLayersOptions
type: json
# WMS
- name: directedFilterAttributes
type: list
Expand Down Expand Up @@ -399,7 +401,7 @@ vars:
print_url: '{PRINT_URL}'
mapserver_url: '{MAPSERVER_URL}'
mapcache_url: '{MAPCACHE_URL}'
devserver_url: '{DEVSERVER_URL}'
devserver_url: http://{DEVSERVER_HOST}{entry_point}
memcached_host: '{MEMCACHED_HOST}'
memcached_port: '{MEMCACHED_PORT}'
tilegeneration_sqs_queue: '{TILEGENERATION_SQS_QUEUE}'
Expand Down Expand Up @@ -596,8 +598,8 @@ runtime_environment:
default: http://print:8080/print/
- name: MAPCACHE_URL
default: http://mapcache:8080/
- name: DEVSERVER_URL
default: http://webpack-dev-server:8080/
- name: DEVSERVER_HOST
default: webpack-dev-server:8080
- name: REDIS_HOST
default: redis
- name: REDIS_PORT
Expand Down
3 changes: 3 additions & 0 deletions geoportal/c2cgeoportal_geoportal/templates/dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ wfs_permalink.update(interface_config.get('wfs_permalink', {}))
% for name, value in interface_config['constants'].items():
module.constant('${name}', ${json.dumps(value) | n})
% endfor
% if 'gmfSearchGroups' not in interface_config['constants']:
module.constant('gmfSearchGroups', ${json.dumps(fulltextsearch_groups) | n});
% endif
module.constant('langUrls', ${json.dumps(lang_urls) | n});
module.constant('cacheVersion', '${get_cache_version()}');
module.constant('ngeoWfsPermalinkOptions', ${json.dumps(wfs_permalink) | n});
Expand Down
3 changes: 0 additions & 3 deletions geoportal/c2cgeoportal_geoportal/views/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from pyramid.httpexceptions import HTTPFound
from pyramid.view import view_config
import re
import os

logger = logging.getLogger(__name__)

Expand All @@ -45,8 +44,6 @@ class Dev(Proxy):
def __init__(self, request):
super().__init__(request)
self.dev_url = self.request.registry.settings['devserver_url']
if 'VISIBLE_ENTRY_POINT' in os.environ:
self.dev_url = self.dev_url.replace('${VISIBLE_ENTRY_POINT}', os.environ['VISIBLE_ENTRY_POINT'])

@view_config(route_name='dev')
def dev(self):
Expand Down
2 changes: 1 addition & 1 deletion geoportal/tests/functional/test_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ def test_layer(self):
"minResolutionHint": 1.76,
"maxResolutionHint": 8.8200000000000003,
"public": True,
"queryable": 0,
"queryable": 1,
"metadataUrls": [{
"url": "http://example.com/wmsfeatures.metadata",
"type": "TC211",
Expand Down
2 changes: 1 addition & 1 deletion travis/docker-compose-build.yaml.mako
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ${service_defaults('db', 5432)}\
${service_defaults('external-db', 5432)}\

mapserver:
image: camptocamp/mapserver:7.0
image: camptocamp/mapserver:7.2
volumes_from:
- config:rw
links:
Expand Down
2 changes: 1 addition & 1 deletion travis/docker-compose.yaml.mako
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ${service_defaults('external-db', 5432)}\
${service_defaults('print', 8080)}\

mapserver:
image: camptocamp/mapserver:7.0
image: camptocamp/mapserver:7.2
user: www-data
volumes_from:
- config:rw
Expand Down