Giter Club home page Giter Club logo

oq-platform2's People

Contributors

antonioettorre avatar daniviga avatar hascar avatar nastasi-oq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oq-platform2's Issues

Applications not using master

All applications used for the platform with another branch instead of master:

oq-platform-building-class branch: oq-platform2
oq-platform-taxtweb: oq-platform2
git+git://github.com/gem/django-chained-selectbox.git@pla26#egg=django-chained-selectbox-0.2.3
git+git://github.com/gem/django-nested-inlines.git@pla26#egg=django-nested-inlines-0.1.4
git+git://github.com/gem/django-chained-multi-checkboxes.git@pla26#egg=django-chained-multi-checkboxes-0.4.1
git+git://github.com/gem/wadofstuff-django-serializers.git@pla26#egg=wadofstuff-django-serializers-1.1.2

Filter does not work for new vulnerability functions using newer version of GEM taxonomy

How to reproduce:
Open the "Vulnerability" tab in the Physical Vulnerability web app.
Note that there are many functions in the list including "CR+CIP/LPB", "CR/LRINF+DNO" etc.
Select Material "Concrete, reinforced" and press the "filter" button - an empty list is shown.

Cause
The newly added "Silva and Martins" functions have a name field corresponding to a new taxonomy string, but the "taxonomy gem" field is empty. At least some of the new models make use features from version 3 of the GEM taxonomy such as "DUM" and so are not compatible with the vulnerability DB software.

Related
This issue is related to gem/oq-platform-taxtweb#28; in both cases our software needs to be updated to handle the new version of the taxonomy.

Remove hard dependency from tilestream

We discovered that the platform has an hard dependency on tilestream which is a very fragile service (unmaintained software on an unsupported os, known to crash after X days).

We should, if possible, remove the tight dependency on Tilestream: if it is not available we should just be unable to load its layers, it should not prevent the platform and other maps to work if those layers aren't required/loaded.

The applications affected : Map's visualization, GeoExplorer, Grv

Supplemental imformation is truncated

The supplemental information filed on objects is truncated after few words. This is hiding from the user some important information like the copyright.

It's a regression since in the old platform we were showing all of its content.

import isc and ghec programmatically

GENERAL

  • add geoserver management to verifier-guest.sh
  • geofence mgmt (add, list, drop rules in oq-gs-builder.sh) to allow custom oqplatform workspace
  • add 'geonode' workspace to our imported geoserver structure

SLD

  • set_maximum_form_content for jetty (to use big sld files)

ISC

  • isc sql import (using migrations)
  • isc dev data import

GHEC

  • ghec sql import (using migrations)
  • ghec dev data import

Add django-requests to platform2

In the old platform we were using django-request to get some access statistics. It looks not available in platform2.

The released version of django-request is a bit old and does not play very well with proxies: we have now a fork with some fixes made for GeoViewer which runs on maps.openquake and SERA (https://github.com/gem/django-request).

It can be installed via:

pip install https://github.com/gem/django-request/releases/download/1.5.5%2Bgem/django_request-1.5.5+gem-py2-none-any.whl

an example of configuration is

settings.INSTALLED_APPS.append('request')
settings.MIDDLEWARE.append('request.middleware.RequestMiddleware')

REQUEST_IGNORE_IP = ['127.0.0.1']
REQUEST_IGNORE_PATHS = (
    r'^admin/',
)

Search test

Implement a test to check if works correctly the search on the platform

Tomcat log flooded by GeoFence errors

The tomcat log in production is full (more than 1/s) of errors like

29 Aug 10:07:04 WARN [geofence.internal] - GeoFence was not able to find any matching user on Security Context amd Services.
Aug 29, 2019 10:07:04 AM org.geoserver.security.GeoServerRestRoleService connectToRESTEndpoint
WARNING: null
org.apache.http.conn.HttpHostConnectException: Connect to localhost:8000 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

The log, which has been rotated less than 3 hrs ago is already almost 90MB big.

It looks like that tomcat is trying to contact a non existing service (localhost:8000)

Import style layer from qgis plugin

For the import project from IRMT (plugin qgis) to platform there is a problem with import the style.
To reproduce this problem:

Install Platform from branch pla26-irv and start
Open qgis
Connect to platform (IRMT settings (settings icon) -> create connection to platform)
Menu IRMT -> oq platform -> Load socioeconomic data -> get indicator -> select indicators and countries
Save project
Click weight data (balance icon) and save
Menu IRMT -> oq platform -> upload project to platform

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.