Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(slo): refactor transform generators and managers dependency injection #201031

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

kdelemme
Copy link
Contributor

@kdelemme kdelemme commented Nov 20, 2024

Resolves #200966

Summary

This PR refactors the TransformGenerators and TransformGeneratorManager to simplify the dependency injection of the services/config used only from the generators.
The code related to these services evolved quite a bit in the past 24 months, but we never took the time to actually refactor it when adding new dependencies.

Everything should keep working as previously.

@kdelemme kdelemme added Team:obs-ux-management Observability Management User Experience Team v8.17.0 release_note:skip Skip the PR/issue when compiling release notes labels Nov 20, 2024
@kdelemme kdelemme marked this pull request as ready for review November 20, 2024 19:47
@kdelemme kdelemme requested a review from a team as a code owner November 20, 2024 19:47
@elasticmachine
Copy link
Contributor

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

@kdelemme kdelemme added the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Nov 20, 2024
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Nov 20, 2024
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@kdelemme kdelemme force-pushed the chore/transform-generator-refactor branch from 7fabed7 to d8f4ff4 Compare November 20, 2024 20:22
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 20, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: d8f4ff4
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-201031-d8f4ff4156c9

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #57 / @ess @serverless SecuritySolution Timeline @skipInServerless Timeline Details Make sure that we get kpi data

Metrics [docs]

✅ unchanged

History

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

Code LGTM !!

Do we have API tests which verify that all the resource transforms, pipelines etc gets created properly via apis?

@kdelemme kdelemme merged commit 2046663 into elastic:main Nov 22, 2024
24 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.x

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

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 22, 2024
…cy injection (#201031) (#201390)

# Backport

This will backport the following commits from `main` to `8.x`:
- [chore(slo): refactor transform generators and managers dependency
injection (#201031)](#201031)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"kevin.delemme@elastic.co"},"sourceCommit":{"committedDate":"2024-11-22T13:52:18Z","message":"chore(slo):
refactor transform generators and managers dependency injection
(#201031)","sha":"204666310fec611773a1bfb8c0c80a72f1dc5468","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.17.0"],"title":"chore(slo):
refactor transform generators and managers dependency
injection","number":201031,"url":"https://github.com/elastic/kibana/pull/201031","mergeCommit":{"message":"chore(slo):
refactor transform generators and managers dependency injection
(#201031)","sha":"204666310fec611773a1bfb8c0c80a72f1dc5468"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201031","number":201031,"mergeCommit":{"message":"chore(slo):
refactor transform generators and managers dependency injection
(#201031)","sha":"204666310fec611773a1bfb8c0c80a72f1dc5468"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 25, 2024
@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.

kdelemme pushed a commit that referenced this pull request Nov 25, 2024
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 25, 2024
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Nov 26, 2024
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.17.0 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SLO] Refactor transform generators
4 participants