WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Oct 16, 2025

Summary

These two endpoints are added to provide bit more control around the sync task functionality, they are currently not being used in UI.

Following two endpoints have been added to be used internally !!

/internal/synthetics/sync_global_params

This will trigger syncing of global params to private locations.

`PUT /internal/synthetics/sync_global_params/_settings`
{
	enable: false
}

This can be used to disable/enable the task which performs auto syncing of global params to private locations.

@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Oct 16, 2025
@shahzad31 shahzad31 added release_note:feature Makes this part of the condensed release notes backport:version Backport to applied version labels v9.2.0 v8.19.6 labels Oct 16, 2025
@shahzad31 shahzad31 marked this pull request as ready for review October 16, 2025 09:05
@shahzad31 shahzad31 requested a review from a team as a code owner October 16, 2025 09:05
@botelastic botelastic bot added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Oct 16, 2025
@elasticmachine
Copy link
Contributor

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

@shahzad31 shahzad31 marked this pull request as draft October 16, 2025 09:28
@shahzad31 shahzad31 marked this pull request as ready for review October 17, 2025 16:20
Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

LGTM - I tested this by modifying values on the server and calling the API routes. Did have one super nit callout.

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.0MB 1.0MB +145.0B

History

@shahzad31 shahzad31 merged commit d40cdc4 into elastic:main Dec 9, 2025
12 checks passed
@shahzad31 shahzad31 deleted the sync-api branch December 9, 2025 08:45
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.2

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 9, 2025
## Summary

These two endpoints are added to provide bit more control around the
sync task functionality, they are currently not being used in UI.

Following two endpoints have been added to be used internally !!

`/internal/synthetics/sync_global_params`

This will trigger syncing of global params to private locations.

```
`PUT /internal/synthetics/sync_global_params/_settings`
{
	enable: false
}
```

This can be used to disable/enable the task which performs auto syncing
of global params to private locations.

---------

Co-authored-by: Dominique Clarke <[email protected]>
Co-authored-by: Justin Kambic <[email protected]>
(cherry picked from commit d40cdc4)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.2

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 239284

Questions ?

Please refer to the Backport tool documentation

@shahzad31
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

shahzad31 added a commit to shahzad31/kibana that referenced this pull request Dec 9, 2025
## Summary

These two endpoints are added to provide bit more control around the
sync task functionality, they are currently not being used in UI.

Following two endpoints have been added to be used internally !!

`/internal/synthetics/sync_global_params`

This will trigger syncing of global params to private locations.

```
`PUT /internal/synthetics/sync_global_params/_settings`
{
	enable: false
}
```

This can be used to disable/enable the task which performs auto syncing
of global params to private locations.

---------

Co-authored-by: Dominique Clarke <[email protected]>
Co-authored-by: Justin Kambic <[email protected]>
(cherry picked from commit d40cdc4)

# Conflicts:
#	x-pack/solutions/observability/plugins/synthetics/server/tasks/sync_private_locations_monitors_task.test.ts
shahzad31 added a commit that referenced this pull request Dec 9, 2025
…245601)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Synthetics] Add global params sync internal API !!
(#239284)](#239284)

<!--- Backport version: 10.2.0 -->

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

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-12-09T08:45:43Z","message":"[Synthetics]
Add global params sync internal API !! (#239284)\n\n## Summary\n\nThese
two endpoints are added to provide bit more control around the\nsync
task functionality, they are currently not being used in
UI.\n\nFollowing two endpoints have been added to be used internally
!!\n\n`/internal/synthetics/sync_global_params`\n\nThis will trigger
syncing of global params to private locations. \n\n\n```\n`PUT
/internal/synthetics/sync_global_params/_settings`\n{\n\tenable:
false\n}\n```\n\nThis can be used to disable/enable the task which
performs auto syncing\nof global params to private
locations.\n\n---------\n\nCo-authored-by: Dominique Clarke
<[email protected]>\nCo-authored-by: Justin Kambic
<[email protected]>","sha":"d40cdc43feac6995a0036c0b80d59584fea874be","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:feature","Team:actionable-obs","backport:version","author:obs-ux-management","v8.19.6","Team:obs-ux-management","v9.2.3","v8.19.9"],"title":"[Synthetics]
Add global params sync internal API
!!","number":239284,"url":"https://github.com/elastic/kibana/pull/239284","mergeCommit":{"message":"[Synthetics]
Add global params sync internal API !! (#239284)\n\n## Summary\n\nThese
two endpoints are added to provide bit more control around the\nsync
task functionality, they are currently not being used in
UI.\n\nFollowing two endpoints have been added to be used internally
!!\n\n`/internal/synthetics/sync_global_params`\n\nThis will trigger
syncing of global params to private locations. \n\n\n```\n`PUT
/internal/synthetics/sync_global_params/_settings`\n{\n\tenable:
false\n}\n```\n\nThis can be used to disable/enable the task which
performs auto syncing\nof global params to private
locations.\n\n---------\n\nCo-authored-by: Dominique Clarke
<[email protected]>\nCo-authored-by: Justin Kambic
<[email protected]>","sha":"d40cdc43feac6995a0036c0b80d59584fea874be"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/245599","number":245599,"state":"OPEN"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <[email protected]>
kibanamachine added a commit that referenced this pull request Dec 9, 2025
…245599)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Synthetics] Add global params sync internal API !!
(#239284)](#239284)

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

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

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-12-09T08:45:43Z","message":"[Synthetics]
Add global params sync internal API !! (#239284)\n\n## Summary\n\nThese
two endpoints are added to provide bit more control around the\nsync
task functionality, they are currently not being used in
UI.\n\nFollowing two endpoints have been added to be used internally
!!\n\n`/internal/synthetics/sync_global_params`\n\nThis will trigger
syncing of global params to private locations. \n\n\n```\n`PUT
/internal/synthetics/sync_global_params/_settings`\n{\n\tenable:
false\n}\n```\n\nThis can be used to disable/enable the task which
performs auto syncing\nof global params to private
locations.\n\n---------\n\nCo-authored-by: Dominique Clarke
<[email protected]>\nCo-authored-by: Justin Kambic
<[email protected]>","sha":"d40cdc43feac6995a0036c0b80d59584fea874be","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:feature","Team:actionable-obs","backport:version","author:obs-ux-management","v8.19.6","Team:obs-ux-management","v9.2.3","v8.19.9"],"title":"[Synthetics]
Add global params sync internal API
!!","number":239284,"url":"https://github.com/elastic/kibana/pull/239284","mergeCommit":{"message":"[Synthetics]
Add global params sync internal API !! (#239284)\n\n## Summary\n\nThese
two endpoints are added to provide bit more control around the\nsync
task functionality, they are currently not being used in
UI.\n\nFollowing two endpoints have been added to be used internally
!!\n\n`/internal/synthetics/sync_global_params`\n\nThis will trigger
syncing of global params to private locations. \n\n\n```\n`PUT
/internal/synthetics/sync_global_params/_settings`\n{\n\tenable:
false\n}\n```\n\nThis can be used to disable/enable the task which
performs auto syncing\nof global params to private
locations.\n\n---------\n\nCo-authored-by: Dominique Clarke
<[email protected]>\nCo-authored-by: Justin Kambic
<[email protected]>","sha":"d40cdc43feac6995a0036c0b80d59584fea874be"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.2"],"targetPullRequestStates":[{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Shahzad <[email protected]>
Co-authored-by: Dominique Clarke <[email protected]>
Co-authored-by: Justin Kambic <[email protected]>
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:feature Makes this part of the condensed release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. Team:obs-ux-management v8.19.6 v8.19.9 v9.2.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants