Skip to content

Commit 59124ab

Browse files
Merge branch 'main' into chile
2 parents 19f629c + def6016 commit 59124ab

File tree

166 files changed

+5372
-6346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+5372
-6346
lines changed

CHANGELOG.md

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,65 @@
66
Reason: d3 cannot handle dom-nodes that dont exist yet.
77
For the new d3-graphs we need a dynamicPopupComponent.
88
And for a dynamicPopupComponent we need to return a ProductCustomLayer, not a VectorLayerProduct.
9-
- Integrate new, comparison-based frontend
109
- Integrate backend for content-redaction
1110
- Old frontend: modularize
12-
- Dockerize whole architecture, provide redundancy
11+
- Cache: move from file-cache to geoserver-cache
12+
- Backend: known race-condition
13+
- backend is being sent some state for an execute-request
14+
- that state contains a reference to data that has by now expired
15+
- so the backend can't resolve that data
16+
- Solution:
17+
- backtrack: from the data-reference, find out what state was used to create the data, and reproduce it
18+
- do this recursively
19+
- requires database with metadata about the references
20+
- Compare frontend:
21+
- Problem: user needs to define order of composites the same in wizard-converter and in map-converter.
22+
- Otherwise the top layer on map is not the top layer in layercontrol
23+
- That's because map-converters and wizard-converters are completele independent.
1324

14-
# [2.0.5]
25+
26+
# [2.0.7]
27+
28+
- Ongoing:
29+
30+
- Upcoming:
31+
- hide right side under modal unil available
32+
- legends and layers in same tab
33+
- redo-button
34+
35+
36+
# [2.0.6](https://github.com/riesgos/dlr-riesgos-frontend/releases/tag/2.0.5) (Jun 11 2023) Compare prototype working
1537

1638
## Features
1739
- Overall:
1840
- all components of architecture now dockerized
41+
- Backend
42+
- all ScenarioFactories can now register async conditions which must be fulfilled before the scenario may be used.
43+
- Execute: failing fast if data is outdated.
1944
- Compare frontend
2045
- link click on eqSelection with form
2146
- mirrorClick rule now allows `include` and `exclude` of `compositeId`s
2247
- styles feature differently on click
2348
- Custom converter for wizard/eqSim
2449
- exposure now displayed
25-
- Ongoing
26-
- Upcoming
27-
- create a docker-compose.yml for backend, frontends and monitor
28-
- translation service
29-
- steps: show errors
30-
- auto-pilot: configurable start-strategy
50+
- exposure wizard now configurable
51+
- exposure legend and styling
52+
- errors displayed in ui
53+
- on error: retry
54+
- simplified error-handling: backend-client retuns a Maybe, doesn't throw.
55+
- update autopilot:
56+
- needs not use that "first-step" condition anymore
57+
- can define on per-step-basis if autopilot required
58+
- auto-piloted steps are no longer interactive
59+
- layer control, syncing visibility between wizard and map
60+
- Icons
61+
- translation service
62+
- Map component: manually triggering change detection after adding dynamic component
63+
- Exposure barchart: fixed hover effect
64+
- Wizard: progress bar
65+
- Fix: Popups in `compare-two-scenarios`: if one side cannot create a popup, a `closePopup` action is no longer dispatched to global
66+
- eq dmg econ popup
67+
- eq sim popup and legend
3168

3269
## Bug fixes
3370
- Compare frontend

backend/Dockerfile

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16
1+
FROM node:18
22

33
WORKDIR backend
44

@@ -9,12 +9,28 @@ RUN npm run build:prod
99

1010
# config
1111
ENV maxStoreLifeTimeMinutes "1440"
12-
# adminEmails: comma separated list
13-
ENV adminEmails ""
14-
ENV sourceEmail "info@test.com"
15-
ENV port "8008"
12+
13+
ENV port 8008
14+
ENV logDir "./data/logs"
15+
ENV storeDir "./data/store"
16+
ENV maxStoreLifeTimeMinutes 60
17+
ENV sender "info@test.com"
18+
ENV sendMailTo ""
19+
ENV maxLogAgeMinutes 1440
20+
ENV verbosity "verbose"
21+
ENV EqCatalogUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
22+
ENV EqSimUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
23+
ENV FragilityUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
24+
ENV ExposureUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
25+
ENV DeusUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
26+
ENV NeptunusUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
27+
ENV VolcanusUrl "https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
28+
ENV TsunamiUrl "https://riesgos.52north.org/wps"
29+
ENV SysrelUrl "https://riesgos.52north.org/javaps/service"
30+
ENV SysrelEcuadorUrl "https://riesgos.52north.org/javaps/service"
31+
ENV LaharUrl "https://riesgos.52north.org/geoserver/ows"
1632

1733

1834
# running
1935
EXPOSE ${port}
20-
CMD ["node", "dist/main.js"]
36+
CMD ["./initContainer.sh"]

backend/initContainer.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#! /bin/bash
2+
3+
set -o errexit # abort on nonzero exitstatus
4+
set -o nounset # abort on unbound variable
5+
set -o pipefail # don't hide errors within pipes
6+
# set -x
7+
8+
cp ./src/config.template.json ./dist
9+
10+
declare -A vars
11+
vars[port]=8008
12+
vars[logDir]="./data/logs"
13+
vars[storeDir]="./data/store"
14+
vars[maxStoreLifeTimeMinutes]=60
15+
vars[sender]="info@test.com"
16+
vars[sendMailTo]=""
17+
vars[maxLogAgeMinutes]=1440
18+
vars[verbosity]="verbose"
19+
vars[EqCatalogUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
20+
vars[EqSimUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
21+
vars[FragilityUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
22+
vars[ExposureUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
23+
vars[DeusUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
24+
vars[NeptunusUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
25+
vars[VolcanusUrl]="https://rz-vm140.gfz-potsdam.de/wps/WebProcessingService"
26+
vars[TsunamiUrl]="https://riesgos.52north.org/wps"
27+
vars[SysrelUrl]="https://riesgos.52north.org/javaps/service"
28+
vars[SysrelEcuadorUrl]="https://riesgos.52north.org/javaps/service"
29+
vars[LaharUrl]="https://riesgos.52north.org/geoserver/ows"
30+
31+
for variableName in "${!vars[@]}"; do
32+
33+
if [[ -z $(printenv "$variableName") ]]; then
34+
variableVal="${vars[$variableName]}"
35+
echo "Using default value for $variableName: $variableVal"
36+
else
37+
variableVal=$(printenv "$variableName")
38+
echo "Setting value for $variableName: $variableVal"
39+
fi
40+
41+
sed -i "s|${variableName}Placeholder|${variableVal}|" dist/config.template.json
42+
done
43+
44+
45+
rm -f ./dist/config.json
46+
mv ./dist/config.template.json ./dist/config.json
47+
echo "Successfully created config-file"
48+
cat ./dist/config.json
49+
50+
node dist/main.js

0 commit comments

Comments
 (0)