Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ac97d79
Fix workflow bugs in Analyses, Dashboard and settings form
benhayes21 Nov 5, 2026
095e1f1
Upgrade platform, worker, PiWind and oasislmf to 2.5.9
benhayes21 Nov 5, 2026
6b4612a
Use python3 for api_server healthchecks
benhayes21 Nov 5, 2026
ead8c2c
Fix broken Analyses and login tests
benhayes21 Nov 5, 2026
407008d
Restructure standard UI into Portfolios, Models and Analyses pages
benhayes21 Nov 5, 2026
16a9b83
Results level selection, zip downloads, EP defaults, event progress, …
benhayes21 Nov 5, 2026
25f8a7d
Print resolved certificate paths in generate-certs.sh
benhayes21 Nov 5, 2026
4fa7f59
Restart Traefik when the TLS certificate changes
benhayes21 Nov 5, 2026
68f0c18
Enlarge the sidebar logo
benhayes21 Nov 5, 2026
dc2f745
Analysis settings and results improvements
benhayes21 Nov 5, 2026
96ae222
Add Scenarios, Comparison and User Guide page tests
benhayes21 Nov 5, 2026
51a948a
Respect model output limits; join summary info by default
benhayes21 Nov 5, 2026
67c7666
Fix ruff and PEP8 findings
benhayes21 Nov 5, 2026
c038b28
Add code quality CI (ruff, autopep8, pytest)
benhayes21 Nov 5, 2026
ea61f45
Merge pull request #56 from OasisLMF/feature/code-quality-ci
benhayes21 Nov 5, 2026
4a5f056
Read the service account from the environment
benhayes21 Nov 5, 2026
bdb0b84
Show a message for outputs a run didn't produce; read parquet outputs
benhayes21 Nov 5, 2026
fc8a570
Add the public Scenarios app
benhayes21 Nov 5, 2026
6dfcba0
Deploy the public Scenarios demo with install.sh
benhayes21 Nov 5, 2026
0395506
Wait for all scenario models before loading templates and showcase runs
benhayes21 Nov 5, 2026
ad178f6
Keep scenario runs within a single host's memory
benhayes21 Nov 6, 2026
524b9ca
Don't treat READY as finished for generate-and-run scenario runs
benhayes21 Nov 6, 2026
9558fb7
Treat the READY gap of a generate-and-run as running in the standard UI
benhayes21 Nov 6, 2026
f250f60
Fix two public-demo bugs found in a local rehearsal
benhayes21 Nov 6, 2026
f500ee6
Remove the unused Docker Scenarios UI CI workflow
benhayes21 Nov 6, 2026
957b4ff
Scenario browser, sample results by default, location showcase with maps
benhayes21 Nov 6, 2026
05faded
Show every scenario row without scrolling
benhayes21 Nov 6, 2026
60ea588
Map showcases by country when locations have no coordinates
benhayes21 Nov 6, 2026
2b6a6eb
Only show showcase runs of configured scenarios
benhayes21 Nov 6, 2026
fb056e2
Frame loss maps on the losses; hide the Map tab when there's nothing …
benhayes21 Nov 6, 2026
5d68f06
Take scenario names from the model settings, not the UI config
benhayes21 Nov 6, 2026
aecedb5
Merge pull request #57 from OasisLMF/feature/scenarios-app
benhayes21 Nov 6, 2026
a7c4a41
Add Storm Domingos as its own scenario
benhayes21 Nov 6, 2026
a6c5355
Merge pull request #58 from OasisLMF/feature/euws-domingos
benhayes21 Nov 6, 2026
9dda200
Show each scenario's vulnerability functions
benhayes21 Nov 6, 2026
56a9de6
Merge pull request #59 from OasisLMF/feature/vulnerability-info
benhayes21 Nov 6, 2026
8af8461
Label each bar when breaking AAL/ALT down by a numeric field
benhayes21 Nov 11, 2026
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
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ __pycache__
*.pyd
env
.dockerignore
# Not needed in the image (and secrets must not be baked in)
scenarios/.streamlit
.streamlit/secrets.toml
OasisPiWind
certs
tests
8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ DOCKER_SOCK=/var/run/docker.sock

# Hostname Configuration
OASIS_UI_HOSTNAME=ui.oasis.local
OASIS_PROTOCOL=http
OASIS_PROTOCOL=https

# Authentication Type
API_AUTH_TYPE=keycloak
OASIS_SERVER_ALLOWED_OIDC_AUTH_PROVIDERS=keycloak,authentik

# Image Versions
SERVER_IMG=coreoasis/api_server
VERS_API=2.5
VERS_API=2.5.9
WORKER_IMG=coreoasis/model_worker
VERS_WORKER=2.5
VERS_WORKER=2.5.9
PYTHONUI_IMG=coreoasis/oasispythonui_app
VERS_UI=latest
VERS_PIWIND=stable/2.5.x
VERS_PIWIND=2.5.9

# Database Configuration
OASIS_SERVER_DB_HOST=server-db
Expand Down
8 changes: 4 additions & 4 deletions .env.authentik
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ DOCKER_SOCK=/var/run/docker.sock

# Hostname Configuration
OASIS_UI_HOSTNAME=ui.oasis.local
OASIS_PROTOCOL=http
OASIS_PROTOCOL=https

# Authentication Type
API_AUTH_TYPE=authentik
OASIS_SERVER_ALLOWED_OIDC_AUTH_PROVIDERS=keycloak,authentik

# Image Versions
SERVER_IMG=coreoasis/api_server
VERS_API=2.5
VERS_API=2.5.9
WORKER_IMG=coreoasis/model_worker
VERS_WORKER=2.5
VERS_WORKER=2.5.9
PYTHONUI_IMG=coreoasis/oasispythonui_app
VERS_UI=latest
VERS_PIWIND=stable/2.5.x
VERS_PIWIND=2.5.9

# Database Configuration
OASIS_SERVER_DB_HOST=server-db
Expand Down
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DOCKER_SOCK=/var/run/docker.sock
# - External access URLs

OASIS_UI_HOSTNAME=localhost
OASIS_PROTOCOL=http
OASIS_PROTOCOL=https

# ============================================================================
# AUTHENTICATION CONFIGURATION
Expand Down Expand Up @@ -75,16 +75,16 @@ OASIS_SERVICE_CLIENT_SECRET=serviceNotSoSecret
# ============================================================================

SERVER_IMG=coreoasis/api_server
VERS_API=2.5
VERS_API=2.5.9

WORKER_IMG=coreoasis/model_worker
VERS_WORKER=2.5
VERS_WORKER=2.5.9

PYTHONUI_IMG=coreoasis/oasispythonui_app
VERS_UI=latest

# PiWind model version
VERS_PIWIND=stable/2.5.x
VERS_PIWIND=2.5.9

# ============================================================================
# DATABASE CONFIGURATION
Expand Down
8 changes: 4 additions & 4 deletions .env.keycloak
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ DOCKER_SOCK=/var/run/docker.sock

# Hostname Configuration
OASIS_UI_HOSTNAME=ui.oasis.local
OASIS_PROTOCOL=http
OASIS_PROTOCOL=https

# Authentication Type
API_AUTH_TYPE=keycloak
OASIS_SERVER_ALLOWED_OIDC_AUTH_PROVIDERS=keycloak,authentik

# Image Versions
SERVER_IMG=coreoasis/api_server
VERS_API=2.5
VERS_API=2.5.9
WORKER_IMG=coreoasis/model_worker
VERS_WORKER=2.5
VERS_WORKER=2.5.9
PYTHONUI_IMG=coreoasis/oasispythonui_app
VERS_UI=latest
VERS_PIWIND=stable/2.5.x
VERS_PIWIND=2.5.9

# Database Configuration
OASIS_SERVER_DB_HOST=server-db
Expand Down
85 changes: 85 additions & 0 deletions .env.scenarios
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# ============================================================================
# PUBLIC SCENARIOS DEMO CONFIGURATION
# ============================================================================
# Credential-free Scenarios app (scenarios_app.py): visitors run pre-loaded
# scenarios against pre-loaded exposure and view the results. No uploads, no
# public API. Deploy with:
#
# cp .env.scenarios .env # then change every CHANGE_ME value below
# ./install.sh
#
# The demo uses simple auth with a service account that only the UI and its
# setup/prune services use; visitors never log in.
# ============================================================================

# Public demo: Scenarios app only, no public API/database ports (docker-compose.public.yml)
OASIS_PUBLIC_DEMO=true
MODEL_SET=scenarios
# Directory holding the scenario model data (cloned by get-scenarios.sh if missing)
SCENARIOS_PATH=/home/ubuntu/Scenarios
# Bundled analysis settings used when the platform has no settings template
UI_DEFAULTS=./scenarios/defaults
# Days to keep visitors' runs (showcase runs are always kept)
OASIS_PRUNE_DAYS=7
# Per scenario worker: tasks at a time and memory cap (14 workers share the host)
OASIS_WORKER_CONCURRENCY=1
OASIS_WORKER_MEM_LIMIT=6g
# Set to get a Let's Encrypt certificate for OASIS_UI_HOSTNAME (must be public)
OASIS_ACME_EMAIL=

# Project Configuration
COMPOSE_PROJECT_NAME=oasisscenarios
OASIS_DEBUG=0

# Docker socket path (Docker Desktop uses ~/.docker/desktop/docker.sock)
# Standard Docker: /var/run/docker.sock
DOCKER_SOCK=/var/run/docker.sock

# Hostname Configuration
OASIS_UI_HOSTNAME=oasislmf-scenarios.com
OASIS_PROTOCOL=https

# Authentication Type
API_AUTH_TYPE=simple
OASIS_SERVER_ALLOWED_OIDC_AUTH_PROVIDERS=keycloak,authentik

# Simple Auth Credentials
OASIS_ADMIN_USER=admin
OASIS_ADMIN_PASS=CHANGE_ME

# Image Versions
SERVER_IMG=coreoasis/api_server
VERS_API=2.5.9
WORKER_IMG=coreoasis/model_worker
VERS_WORKER=2.5.9
PYTHONUI_IMG=coreoasis/oasispythonui_app
VERS_UI=latest
VERS_PIWIND=2.5.9

# Database Configuration
OASIS_SERVER_DB_HOST=server-db
OASIS_SERVER_DB_PORT=5432
OASIS_SERVER_DB_NAME=oasis
OASIS_SERVER_DB_USER=oasis
OASIS_SERVER_DB_PASS=CHANGE_ME

OASIS_CELERY_DB_HOST=celery-db
OASIS_CELERY_DB_PORT=5432
OASIS_CELERY_DB_NAME=celery
OASIS_CELERY_DB_USER=celery
OASIS_CELERY_DB_PASS=CHANGE_ME

# Broker & Channel Layer
RABBITMQ_DEFAULT_USER=rabbit
RABBITMQ_DEFAULT_PASS=CHANGE_ME
OASIS_CELERY_BROKER_URL=amqp://rabbit:CHANGE_ME@broker:5672
REDIS_HOST=channel-layer
REDIS_PORT=6379
OASIS_SERVER_CHANNEL_LAYER_SSL=false

# Advanced Configuration
OASIS_PORTFOLIO_UPLOAD_VALIDATION=0
OASIS_OASISLMF_VERSION=
OASIS_ODS_VERSION=
OASIS_ODM_VERSION=
OASIS_OED_SCHEMA_INFO=
8 changes: 4 additions & 4 deletions .env.simple
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DOCKER_SOCK=/var/run/docker.sock

# Hostname Configuration
OASIS_UI_HOSTNAME=ui.oasis.local
OASIS_PROTOCOL=http
OASIS_PROTOCOL=https

# Authentication Type
API_AUTH_TYPE=simple
Expand All @@ -26,12 +26,12 @@ OASIS_ADMIN_PASS=password

# Image Versions
SERVER_IMG=coreoasis/api_server
VERS_API=2.5
VERS_API=2.5.9
WORKER_IMG=coreoasis/model_worker
VERS_WORKER=2.5
VERS_WORKER=2.5.9
PYTHONUI_IMG=coreoasis/oasispythonui_app
VERS_UI=latest
VERS_PIWIND=stable/2.5.x
VERS_PIWIND=2.5.9

# Database Configuration
OASIS_SERVER_DB_HOST=server-db
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Code quality and tests, following OasisLMF's code-quality workflow:
# - ruff: pyflakes checks and docstring style (rules in pyproject.toml)
# - PEP8: fails if autopep8 would change any file
# - tests: the pytest suite
#
# To fix formatting locally:
# autopep8 --in-place --recursive --max-line-length 150 --ignore E402 --exclude OasisPiWind .
# ruff check --fix .

name: Code Quality

on:
pull_request:
push:
branches:
- main
- stable**

env:
max_line_length: 150
python_version: "3.12"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ env.python_version }}

- name: Install code quality tools
run: pip install --upgrade autopep8 ruff

- name: Lint (ruff)
if: ${{ ! cancelled() }}
run: ruff check --output-format full .

- name: Check PEP8 compliance
if: ${{ ! cancelled() }}
run: |
autopep8 --diff --exit-code --recursive --max-line-length ${{ env.max_line_length }} \
--ignore E402 --exclude OasisPiWind .

tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ env.python_version }}
cache: pip
cache-dependency-path: requirements.txt

- name: Install dependencies
run: pip install -r requirements.txt pytest

- name: Run tests
run: python -m pytest -q
42 changes: 0 additions & 42 deletions .github/workflows/scenarios-ui-docker.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,6 @@ cython_debug/

# Generated OIDC configurations
oidc/*/generated/

# Locally generated TLS certificates
certs/
Loading
Loading