Skip to content

Comments

[Synthetics] Fixed edit private location with no monitors assigned#227411

Merged
cesco-f merged 1 commit intoelastic:mainfrom
cesco-f:fix-edit-private-location
Jul 10, 2025
Merged

[Synthetics] Fixed edit private location with no monitors assigned#227411
cesco-f merged 1 commit intoelastic:mainfrom
cesco-f:fix-edit-private-location

Conversation

@cesco-f
Copy link
Contributor

@cesco-f cesco-f commented Jul 10, 2025

This PR fixes a bug that was found when editing the label of a private location with no monitors assigned.

When checking the user privileges the following error was thrown:
[plugins.synthetics] Error: Can't check saved object privileges for 0 namespaces

@cesco-f cesco-f requested a review from a team as a code owner July 10, 2025 10:42
@botelastic botelastic bot added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Jul 10, 2025
@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 Jul 10, 2025
@cesco-f cesco-f force-pushed the fix-edit-private-location branch from a21fe7d to ad6b1b1 Compare July 10, 2025 11:00
@cesco-f cesco-f enabled auto-merge (squash) July 10, 2025 12:20
@cesco-f cesco-f merged commit a946911 into elastic:main Jul 10, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@cesco-f cesco-f deleted the fix-edit-private-location branch July 10, 2025 13:28
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 10, 2025
…lastic#227411)

This PR fixes a bug that was found when editing the label of a private
location with no monitors assigned.

When checking the user privileges the following error was thrown:
`[plugins.synthetics] Error: Can't check saved object privileges for 0
namespaces`

(cherry picked from commit a946911)
@kibanamachine
Copy link
Contributor

@cesco-f
Copy link
Contributor Author

cesco-f commented Jul 10, 2025

💚 All backports created successfully

Status Branch Result
9.1

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

Questions ?

Please refer to the Backport tool documentation

cesco-f added a commit to cesco-f/kibana that referenced this pull request Jul 10, 2025
…lastic#227411)

This PR fixes a bug that was found when editing the label of a private
location with no monitors assigned.

When checking the user privileges the following error was thrown:
`[plugins.synthetics] Error: Can't check saved object privileges for 0
namespaces`

(cherry picked from commit a946911)

# Conflicts:
#	x-pack/solutions/observability/test/api_integration_deployment_agnostic/apis/synthetics/edit_private_location.ts
kibanamachine added a commit that referenced this pull request Jul 10, 2025
…gned (#227411) (#227447)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Synthetics] Fixed edit private location with no monitors assigned
(#227411)](#227411)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Francesco
Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-07-10T13:25:05Z","message":"[Synthetics]
Fixed edit private location with no monitors assigned (#227411)\n\nThis
PR fixes a bug that was found when editing the label of a
private\nlocation with no monitors assigned.\n\nWhen checking the user
privileges the following error was thrown:\n`[plugins.synthetics] Error:
Can't check saved object privileges for
0\nnamespaces`","sha":"a946911347f8d80c1fc4116ea4592827031a196c","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Synthetics]
Fixed edit private location with no monitors
assigned","number":227411,"url":"https://github.com/elastic/kibana/pull/227411","mergeCommit":{"message":"[Synthetics]
Fixed edit private location with no monitors assigned (#227411)\n\nThis
PR fixes a bug that was found when editing the label of a
private\nlocation with no monitors assigned.\n\nWhen checking the user
privileges the following error was thrown:\n`[plugins.synthetics] Error:
Can't check saved object privileges for
0\nnamespaces`","sha":"a946911347f8d80c1fc4116ea4592827031a196c"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227411","number":227411,"mergeCommit":{"message":"[Synthetics]
Fixed edit private location with no monitors assigned (#227411)\n\nThis
PR fixes a bug that was found when editing the label of a
private\nlocation with no monitors assigned.\n\nWhen checking the user
privileges the following error was thrown:\n`[plugins.synthetics] Error:
Can't check saved object privileges for
0\nnamespaces`","sha":"a946911347f8d80c1fc4116ea4592827031a196c"}}]}]
BACKPORT-->

Co-authored-by: Francesco Fagnani <fagnani.francesco@gmail.com>
cesco-f added a commit that referenced this pull request Jul 10, 2025
…ned (#227411) (#227451)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Synthetics] Fixed edit private location with no monitors assigned
(#227411)](#227411)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Francesco
Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-07-10T13:25:05Z","message":"[Synthetics]
Fixed edit private location with no monitors assigned (#227411)\n\nThis
PR fixes a bug that was found when editing the label of a
private\nlocation with no monitors assigned.\n\nWhen checking the user
privileges the following error was thrown:\n`[plugins.synthetics] Error:
Can't check saved object privileges for
0\nnamespaces`","sha":"a946911347f8d80c1fc4116ea4592827031a196c","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Synthetics]
Fixed edit private location with no monitors
assigned","number":227411,"url":"https://github.com/elastic/kibana/pull/227411","mergeCommit":{"message":"[Synthetics]
Fixed edit private location with no monitors assigned (#227411)\n\nThis
PR fixes a bug that was found when editing the label of a
private\nlocation with no monitors assigned.\n\nWhen checking the user
privileges the following error was thrown:\n`[plugins.synthetics] Error:
Can't check saved object privileges for
0\nnamespaces`","sha":"a946911347f8d80c1fc4116ea4592827031a196c"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227447","number":227447,"state":"OPEN"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227411","number":227411,"mergeCommit":{"message":"[Synthetics]
Fixed edit private location with no monitors assigned (#227411)\n\nThis
PR fixes a bug that was found when editing the label of a
private\nlocation with no monitors assigned.\n\nWhen checking the user
privileges the following error was thrown:\n`[plugins.synthetics] Error:
Can't check saved object privileges for
0\nnamespaces`","sha":"a946911347f8d80c1fc4116ea4592827031a196c"}}]}]
BACKPORT-->
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…lastic#227411)

This PR fixes a bug that was found when editing the label of a private
location with no monitors assigned.

When checking the user privileges the following error was thrown:
`[plugins.synthetics] Error: Can't check saved object privileges for 0
namespaces`
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:fix Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants