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

refactor: changed transaction handling related to OpsEvent package #1484

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kakcy
Copy link
Contributor

@kakcy kakcy commented Jan 28, 2025

I Changed the transaction instance of OpsCountStorage to be controlled via mysqlClient.Qe().

Also, this pull request introduces significant updates to the AutoOpsService in the pkg/autoops/api/api.go file, focusing on the refactoring of storage dependencies. The main changes involve replacing inline storage initializations with pre-initialized storage fields within the AutoOpsService struct. Additionally, corresponding test updates have been made to accommodate these changes.
By doing so, you can mock Storage in your test code, resulting in more meaningful test code.

Part of #1252

@kakcy kakcy marked this pull request as ready for review January 29, 2025 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant