Skip to content

Generate impact reports in PDF and PNG formats - #11523

Open
ptormene wants to merge 297 commits into
masterfrom
impact_report
Open

Generate impact reports in PDF and PNG formats#11523
ptormene wants to merge 297 commits into
masterfrom
impact_report

Conversation

@ptormene

@ptormene ptormene commented Jun 5, 2026

Copy link
Copy Markdown
Member

This branch has been there for months and it's time to finalize it.
Now we are busy with other urgent tasks, but I am opening this PR as a draft, so we can start reviewing the code.

The new feature require some additional python packages and I decided to create a separate requirements file specific for impact (and I did the same for aelo).

I finally managed to fix also the UI tests:
https://github.com/gem/oq-engine/actions/runs/32850716659
They had a very strange behavior, working smoothly in headed mode (showing the process in a browser window) but failing in headless mode.

We should double-check that all the files we are using to generate the reports are updated and "usable" (in terms of licenses, etc.).

…the threshold but that country has no loss at all (do not generate the corresponding report)
…xporting to csv and reading from the exported file
…ded by the risk team with different column names
…nt; refine the styling of some markers and labels
…'Show impact table' -> 'Show full impact table'
… summary impact table' -> 'Show impact summary table'
…g 'Exposed value' and not displaying the last column with nans
…al intercepting pointer events on a click (it should prevent race conditions in UI tests)"

This reverts commit 34953b8.
…dal intercepting pointer events on a click (it should prevent race conditions in UI tests)"

This reverts commit eb566aa.
…t Bootstrap modal backdrop timeouts"

This reverts commit 051b50d.
@ptormene ptormene changed the title Generate impact report in PDF and PNG formats Generate impact reports in PDF and PNG formats Aug 24, 2026
… depends from the impact approach used in the job
…e' button in UI tests (should prevent race conditions
…r the random name of the temporary internal copy of the rupture file
… outputs (grouping all outputs together instead)
…roach using the finite-fault model from the USGS
…ete before subsequent interactions (like clicking download buttons or remove actions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants