Skip to content

Update task state version after execution.#215559

Merged
ersin-erdal merged 2 commits intoelastic:mainfrom
ersin-erdal:fix-update-state-version
Mar 27, 2025
Merged

Update task state version after execution.#215559
ersin-erdal merged 2 commits intoelastic:mainfrom
ersin-erdal:fix-update-state-version

Conversation

@ersin-erdal
Copy link
Contributor

@ersin-erdal ersin-erdal commented Mar 21, 2025

This PR fixes the missing stateVersion update in the partialUpdate method.

update method already uses the validated task that already has the stateVersion field.

but the partialUpdate misses it.

@ersin-erdal ersin-erdal added release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v9.0.0 backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Mar 21, 2025
@ersin-erdal ersin-erdal requested a review from a team as a code owner March 21, 2025 19:24
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Copy link
Member

@umbopepato umbopepato left a comment

Choose a reason for hiding this comment

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

LGTM!

@ersin-erdal ersin-erdal self-assigned this Mar 27, 2025
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts / Stateful Observability - Deployment-agnostic API integration tests Dataset quality Integrations gets the custom installed integrations returns custom integrations and its datasets map

Metrics [docs]

✅ unchanged

History

cc @ersin-erdal

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@ersin-erdal ersin-erdal merged commit 6373b0c into elastic:main Mar 27, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x, 9.0

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 28, 2025
This PR fixes the missing stateVersion update in the `partialUpdate`
method.

[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)
method already uses the validated task that already has the stateVersion
field.

but the `partialUpdate` misses it.

(cherry picked from commit 6373b0c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 28, 2025
This PR fixes the missing stateVersion update in the `partialUpdate`
method.

[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)
method already uses the validated task that already has the stateVersion
field.

but the `partialUpdate` misses it.

(cherry picked from commit 6373b0c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x
9.0

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

Questions ?

Please refer to the Backport tool documentation

cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
This PR fixes the missing stateVersion update in the `partialUpdate`
method.


[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)
method already uses the validated task that already has the stateVersion
field.

but the `partialUpdate` misses it.
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 1, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

kibanamachine added a commit that referenced this pull request Apr 2, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Update task state version after execution.
(#215559)](#215559)

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

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

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-27T23:58:41Z","message":"Update
task state version after execution. (#215559)\n\nThis PR fixes the
missing stateVersion update in the
`partialUpdate`\nmethod.\n\n\n[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)\nmethod
already uses the validated task that already has the
stateVersion\nfield.\n\nbut the `partialUpdate` misses
it.","sha":"6373b0c65a084088f4ac455c59bdc11e72b1b5d7","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","v9.0.0","backport:version","v9.1.0","v8.19.0"],"title":"Update
task state version after
execution.","number":215559,"url":"https://github.com/elastic/kibana/pull/215559","mergeCommit":{"message":"Update
task state version after execution. (#215559)\n\nThis PR fixes the
missing stateVersion update in the
`partialUpdate`\nmethod.\n\n\n[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)\nmethod
already uses the validated task that already has the
stateVersion\nfield.\n\nbut the `partialUpdate` misses
it.","sha":"6373b0c65a084088f4ac455c59bdc11e72b1b5d7"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215559","number":215559,"mergeCommit":{"message":"Update
task state version after execution. (#215559)\n\nThis PR fixes the
missing stateVersion update in the
`partialUpdate`\nmethod.\n\n\n[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)\nmethod
already uses the validated task that already has the
stateVersion\nfield.\n\nbut the `partialUpdate` misses
it.","sha":"6373b0c65a084088f4ac455c59bdc11e72b1b5d7"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Apr 2, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [Update task state version after execution.
(#215559)](#215559)

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

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

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-27T23:58:41Z","message":"Update
task state version after execution. (#215559)\n\nThis PR fixes the
missing stateVersion update in the
`partialUpdate`\nmethod.\n\n\n[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)\nmethod
already uses the validated task that already has the
stateVersion\nfield.\n\nbut the `partialUpdate` misses
it.","sha":"6373b0c65a084088f4ac455c59bdc11e72b1b5d7","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","v9.0.0","backport:version","v9.1.0","v8.19.0"],"title":"Update
task state version after
execution.","number":215559,"url":"https://github.com/elastic/kibana/pull/215559","mergeCommit":{"message":"Update
task state version after execution. (#215559)\n\nThis PR fixes the
missing stateVersion update in the
`partialUpdate`\nmethod.\n\n\n[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)\nmethod
already uses the validated task that already has the
stateVersion\nfield.\n\nbut the `partialUpdate` misses
it.","sha":"6373b0c65a084088f4ac455c59bdc11e72b1b5d7"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215559","number":215559,"mergeCommit":{"message":"Update
task state version after execution. (#215559)\n\nThis PR fixes the
missing stateVersion update in the
`partialUpdate`\nmethod.\n\n\n[update](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/task_manager/server/buffered_task_store.ts#L62)\nmethod
already uses the validated task that already has the
stateVersion\nfield.\n\nbut the `partialUpdate` misses
it.","sha":"6373b0c65a084088f4ac455c59bdc11e72b1b5d7"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants