Skip to content

[8.19] [Task Manager] Remove spaces plugin dependency in task manager plugin (#221596)#222355

Merged
kowalczyk-krzysztof merged 1 commit intoelastic:8.19from
kowalczyk-krzysztof:backport/8.19/pr-221596
Jun 3, 2025
Merged

[8.19] [Task Manager] Remove spaces plugin dependency in task manager plugin (#221596)#222355
kowalczyk-krzysztof merged 1 commit intoelastic:8.19from
kowalczyk-krzysztof:backport/8.19/pr-221596

Conversation

@kowalczyk-krzysztof
Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…elastic#221596)

## Summary

This PR removes spaces plugin dependency from task manager plugin and
replaces `spacesService.getActiveSpace` with `getSpaceIdFromPath` from
`@kbn/spaces-utils` package. This prevents a circular dependency from
happening in elastic#220138

> [!NOTE]
> I'm changing the test case to use `test-space` id instead of
`testSpace` as this was an invalid space id and it shouldn't have been
used in the mock.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 017c2e5)
@kowalczyk-krzysztof kowalczyk-krzysztof merged commit 2d1112c into elastic:8.19 Jun 3, 2025
11 checks passed
@kowalczyk-krzysztof kowalczyk-krzysztof deleted the backport/8.19/pr-221596 branch August 1, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants