Skip to content

Decouple incident rendering from source integrations#515

Open
sukhwinder33445 wants to merge 6 commits into
mainfrom
decouple-incident-rendering-from-source-integrations
Open

Decouple incident rendering from source integrations#515
sukhwinder33445 wants to merge 6 commits into
mainfrom
decouple-incident-rendering-from-source-integrations

Conversation

@sukhwinder33445

@sukhwinder33445 sukhwinder33445 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

This PR introduces the following changes:

  • Show incident.message as the caption in the incidents list (truncated to 1k chars) and in a new, collapsible, copyable "Message" section in the incident detail view (truncated to a configurable limit, default 10k, via the new incident_message_character_limit setting in config.ini)

  • Deprecate ObjectsRendererHook and remove its implementation (ObjectsRenderer); object names now come directly from the object.name column, and object links are built via SourceHook::createObjectLink() (or a fallback link to object.url)

  • Persist the collapse state (across all incidents) for the new Message section.

  • Add ViewModeSwitcher for incident list once Add ViewModeSwitcher control ipl-web#392 is merged.

resolves #493

@sukhwinder33445 sukhwinder33445 self-assigned this Jul 17, 2026
@cla-bot cla-bot Bot added the cla/signed CLA is signed by all contributors of a PR label Jul 17, 2026
@sukhwinder33445
sukhwinder33445 force-pushed the decouple-incident-rendering-from-source-integrations branch from df92f2e to 4bb17bb Compare July 17, 2026 13:54
@sukhwinder33445
sukhwinder33445 requested a review from Copilot July 17, 2026 13:57

This comment was marked as resolved.

@sukhwinder33445
sukhwinder33445 force-pushed the decouple-incident-rendering-from-source-integrations branch 4 times, most recently from 27cc4f8 to 893671d Compare July 20, 2026 07:16
@sukhwinder33445
sukhwinder33445 requested a review from Copilot July 20, 2026 07:17

This comment was marked as resolved.

@sukhwinder33445
sukhwinder33445 force-pushed the decouple-incident-rendering-from-source-integrations branch from 893671d to 900c04e Compare July 20, 2026 07:25
- Drop class `ObjectsRenderer`
- Replace `ObjectRendererHook::createObjectLink()` with
  `SourceHook::createObjectLink()`
- Use the existing db column `object.name` for object name.
The message is limited to `1k` chars for list items and `10k` in detail
view.
Persist the collapse state for all incidents that the user chooses.
@sukhwinder33445
sukhwinder33445 force-pushed the decouple-incident-rendering-from-source-integrations branch from 900c04e to 2253cfe Compare July 20, 2026 07:31
- Remove obsolete `view-mode-switcher.less`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decouple incident rendering from source integrations

2 participants