Skip to content

Comments

[Incident Management] [Related dashboards api] Handle missing lens attributes gracefully #223619

Merged
dominiqueclarke merged 5 commits intoelastic:mainfrom
dominiqueclarke:fix/related-dashboard-api-gracefully-handle-lens-attributes
Jun 12, 2025
Merged

[Incident Management] [Related dashboards api] Handle missing lens attributes gracefully #223619
dominiqueclarke merged 5 commits intoelastic:mainfrom
dominiqueclarke:fix/related-dashboard-api-gracefully-handle-lens-attributes

Conversation

@dominiqueclarke
Copy link
Contributor

@dominiqueclarke dominiqueclarke commented Jun 12, 2025

Summary

Relates to #212125

When a Lens panel is saved to a dashboards, it is either saved by value or by reference. If it's saved by reference, the attributes will not be available. This was creating a reference error when attempting to inspect the lens configuration to make suggestions.

This PR confirms that the attributes are available.

A follow up PR will fetch the values for the references to include them in the evaluation.

@dominiqueclarke dominiqueclarke added Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. backport:version Backport to applied version labels v9.1.0 v8.19.0 release_note:skip Skip the PR/issue when compiling release notes labels Jun 12, 2025
@dominiqueclarke dominiqueclarke marked this pull request as ready for review June 12, 2025 17:42
@dominiqueclarke dominiqueclarke requested a review from a team as a code owner June 12, 2025 17:42
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Jun 12, 2025
@dominiqueclarke dominiqueclarke force-pushed the fix/related-dashboard-api-gracefully-handle-lens-attributes branch from e22f3a0 to 9aa8c39 Compare June 12, 2025 17:44
Copy link
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@dominiqueclarke dominiqueclarke merged commit f6da3f2 into elastic:main Jun 12, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15622920552

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [Incident Management] [Suggested dashboards] Deduplicated linked dashboards from list of linked dashboards (#221972)

Manual backport

To create the backport manually run:

node scripts/backport --pr 223619

Questions ?

Please refer to the Backport tool documentation

iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
…tributes gracefully (elastic#223619)

## Summary

Relates to elastic#212125

When a Lens panel is saved to a dashboards, it is either saved by value
or by reference. If it's saved by reference, the attributes will not be
available. This was creating a reference error when attempting to
inspect the lens configuration to make suggestions.

This PR confirms that the attributes are available. 

A follow up PR will fetch the values for the references to include them
in the evaluation.
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 16, 2025
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 223619 locally
cc: @dominiqueclarke

2 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 223619 locally
cc: @dominiqueclarke

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 223619 locally
cc: @dominiqueclarke

dominiqueclarke added a commit to dominiqueclarke/kibana that referenced this pull request Jun 19, 2025
…tributes gracefully (elastic#223619)

## Summary

Relates to elastic#212125

When a Lens panel is saved to a dashboards, it is either saved by value
or by reference. If it's saved by reference, the attributes will not be
available. This was creating a reference error when attempting to
inspect the lens configuration to make suggestions.

This PR confirms that the attributes are available.

A follow up PR will fetch the values for the references to include them
in the evaluation.

(cherry picked from commit f6da3f2)
@dominiqueclarke
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

dominiqueclarke added a commit that referenced this pull request Jun 19, 2025
…lens attributes gracefully (#223619) (#224545)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Incident Management] [Related dashboards api] Handle missing lens
attributes gracefully
(#223619)](#223619)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dominique
Clarke","email":"dominique.clarke@elastic.co"},"sourceCommit":{"committedDate":"2025-06-12T23:32:34Z","message":"[Incident
Management] [Related dashboards api] Handle missing lens attributes
gracefully (#223619)\n\n## Summary\n\nRelates to
https://github.com/elastic/kibana/issues/212125\n\nWhen a Lens panel is
saved to a dashboards, it is either saved by value\nor by reference. If
it's saved by reference, the attributes will not be\navailable. This was
creating a reference error when attempting to\ninspect the lens
configuration to make suggestions.\n\nThis PR confirms that the
attributes are available. \n\nA follow up PR will fetch the values for
the references to include them\nin the
evaluation.","sha":"f6da3f2cbc604c73b9d756306cf0226865b544d8","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management"],"title":"[Incident
Management] [Related dashboards api] Handle missing lens attributes
gracefully
","number":223619,"url":"https://github.com/elastic/kibana/pull/223619","mergeCommit":{"message":"[Incident
Management] [Related dashboards api] Handle missing lens attributes
gracefully (#223619)\n\n## Summary\n\nRelates to
https://github.com/elastic/kibana/issues/212125\n\nWhen a Lens panel is
saved to a dashboards, it is either saved by value\nor by reference. If
it's saved by reference, the attributes will not be\navailable. This was
creating a reference error when attempting to\ninspect the lens
configuration to make suggestions.\n\nThis PR confirms that the
attributes are available. \n\nA follow up PR will fetch the values for
the references to include them\nin the
evaluation.","sha":"f6da3f2cbc604c73b9d756306cf0226865b544d8"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/223619","number":223619,"mergeCommit":{"message":"[Incident
Management] [Related dashboards api] Handle missing lens attributes
gracefully (#223619)\n\n## Summary\n\nRelates to
https://github.com/elastic/kibana/issues/212125\n\nWhen a Lens panel is
saved to a dashboards, it is either saved by value\nor by reference. If
it's saved by reference, the attributes will not be\navailable. This was
creating a reference error when attempting to\ninspect the lens
configuration to make suggestions.\n\nThis PR confirms that the
attributes are available. \n\nA follow up PR will fetch the values for
the references to include them\nin the
evaluation.","sha":"f6da3f2cbc604c73b9d756306cf0226865b544d8"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:obs-ux-management PRs authored by the obs ux management team backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants