Skip to content

feat(formatters): OSPC-2288: Added affected paths rendering for correlated multipath orders - #7

Open
niti6869 wants to merge 1 commit into
rackerlabs:mainfrom
niti6869:OSPC-2288
Open

niti6869 wants to merge 1 commit into
rackerlabs:mainfrom
niti6869:OSPC-2288

Conversation

@niti6869

@niti6869 niti6869 commented Oct 5, 2026

Copy link
Copy Markdown

Added support for extracting, parsing, and rendering correlated per-path child alert diagnostics into ticket descriptions across all communication providers.

Key changes:

  • Updated _build_fallback_canonical() to extract attached child alert records across payload, context, and metadata layers.
  • Added _build_affected_paths() to extract and format granular per-path diagnostic fields (instance, interface_ip, dm_dev, multipath_id, volume_id) from correlated child alerts.
  • Updated _section_model() to identify multipath root alerts (is_multipath_root) and attach the formatted affected_paths list to the template context.
  • Updated provider renderers (_render_bbcode_sections, _render_adf_sections, _render_markdown_sections, _render_plain_sections, _render_discord_message) to display the structured Affected Paths (N total) section.
  • Added safe fallback message (Detailed path metadata was not attached.) when an aggregated order is dispatched without attached child metadata.
  • Added format_multipath_ticket() helper delegating directly to render_provider_content().

Refs: OSPC-1770

@niti6869
niti6869 requested review from aedan and rackerchris October 5, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant