swiss-seismological-service / REIA-web

Frontend report generation for results of the near real time event specific loss calculations.
GNU Affero General Public License v3.0
0 stars 1 forks source link

Update DataLoader to get the Latest RiskAssessment for the Event #49

Closed schmidni closed 4 months ago

schmidni commented 5 months ago

User Story

As a visitor of the Website, I would like to always see the latest published and preferred RIA for the current event, no matter if it is calculated for an older "iteration" of the event or not.

Acceptance Criteria

Instead of using the reiaws/riskassessment endpoint, use the new reiaws/v1/origin/{originid}/riskassessments endpoint which is being implemented here: https://github.com/swiss-seismological-service/REIA-ws/issues/21