Remove navigation handler from alerting public plugin in favour of viewInAppRelativeUrl #149608
Labels
Feature:Alerting/RulesFramework
Issues related to the Alerting Rules Framework
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
technical debt
Improvement of the software architecture and operational architecture
After #148671 merges, we have a single function in the rule type that can generate navigation URLs for a given rule type. This URL will be used in rule action templates via
{{rule.viewInAppUrl}}
and also be provided to the UI via theviewInAppRelativeUrl
field in the rule API response. This relative URL is currently used in the UI as a fallback whenever the view in app functionality cannot find registered context for navigation (see alerting public plugin).From what I saw, only three plugins make use of this public plugin API (ML, ES Query and Astros in example plugin) and can easily move to the new
getViewInAppRelativeUrl
function in the rule type. This will allow us to reduce the codebase used for navigation while also having a source of truth serving the UI and backend.The text was updated successfully, but these errors were encountered: