Skip to content

Settings editor: select inuring priorities for net (ri) and reinsurer's loss (rl) outputs #61

Backlog

Description

@benhayes21

Follow-up from OasisLMF/OasisLMF#1495 (reinsurance output options in the UI).

On fix/workflow-bugs (PR #55) the settings editor already supports the Reinsurance Loss (rl) perspective: rl_output / rl_summaries, summary levels and reports, and the results view shows outputs split by inuring priority (rl_IP1_S1_*, ri_IP1_S1_*). What is still missing is the ability to request outputs at intermediate inuring priorities.

Missing

  1. No control for ri_inuring_priorities / rl_inuring_priorities. oasislmf supports these analysis settings (net loss and reinsurer's loss at selected OED InuringPriority values, mapped via input/ri_inuring_priority_output_levels.json), and both are in the ODS_Tools analysis settings schema, but the editor has no way to set them.
  2. Template values are silently dropped. The editor rebuilds settings from the template but filters out every key starting with a perspective prefix (pages/components/settings_editor.py:527-530, not any(k.startswith(f'{p}_') for p in PERSPECTIVES)), then only writes back *_output / *_summaries. So ri_inuring_priorities / rl_inuring_priorities set in a template are lost when the analysis is saved.

Suggested work

  • Add a multi-select for the inuring priorities, shown under the RI and RL perspectives when they are enabled. The options come from the InuringPriority values in the portfolio's reinsurance info file (client.get_reinsurance_info_file).
  • Keep ri_inuring_priorities / rl_inuring_priorities from the template, or have the editor manage them explicitly.
  • Add tests in tests/test_settings_editor.py. Cover template round-trip of both keys, and the selector only appearing when the portfolio has RI files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions