Skip to content

ssi: migrate dashboard navigation to using links panel widgets #15075

@efd6

Description

@efd6

Kibana now provides a links panel widget for handling navigation links. Using this widget ensures that navigation styling is consistent across integration dashboards and also prevents issues with breaking links on serverless.

The security-service-integrations dashboards make heavy use of markdown-based navigation panels. These should be migrated to using links panels.

List of integrations obtained with

for p in $(
  yq -o=json 'select(
    .owner.github == "elastic/security-service-integrations"
  )|{
    "name":.name,
    "policy":.policy_templates
  }|.name' packages/*/manifest.yml|jq -r
); do
  quatch -l "- [ ] ${p}" -p '{
      "attributes": {
          "panelsJSON": {
              "embeddableConfig": {
                  "savedVis": {
                      "params": {
                          "markdown": [
                              {
                                  "wildcard": "*Navigation*"
                              }
                          ]
                      }
                  }
              }
          }
      }
  }' < packages/${p}/kibana/dashboard/*.json            
done 2>/dev/null

This query makes the assumption that all navigation panels will use the word "Navigation", which is probably a good starting point.

second variant:

for p in $(
  yq -o=json 'select(
    .owner.github == "elastic/security-service-integrations"
  )|{
    "name":.name,
    "policy":.policy_templates
  }|.name' packages/*/manifest.yml|jq -r
); do
  quatch -l "- [ ] ${p}" -p '{
      "attributes": {
          "panelsJSON": {
              "title": [
                  {
                      "wildcard": "*Navigation*"
                  }
              ]
          }
      }
  }' < packages/${p}/kibana/dashboard/*.json
done 2>/dev/null

quatch

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Security-Service IntegrationsSecurity Service Integrations team [elastic/security-service-integrations]Team:Sit-CrestCrest developers on the Security Integrations team [elastic/sit-crest-contractors]dashboardRelates to a Kibana dashboard bug, enhancement, or modification.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions