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: change the method of specifying query conditions #1388

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

Conversation

kakcy
Copy link
Contributor

@kakcy kakcy commented Dec 16, 2024

This pull request includes significant refactoring to improve the handling of query filters and options in the AutoOpsService and related storage components. The changes focus on replacing the existing WherePart and Order structures with a more flexible ListOptions structure, which encapsulates various filter types and query options.

Part of #1252

@kakcy kakcy marked this pull request as ready for review December 16, 2024 09:59
@cre8ivejp cre8ivejp requested review from Ubisoft-potato and hvn2k1 and removed request for kentakozuka December 27, 2024 03:30
pkg/storage/v2/mysql/query.go Show resolved Hide resolved
) ([]*proto.AutoOpsRule, int, error) {
var whereParts []mysql.WherePart = []mysql.WherePart{}
var orderBySQL string = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Zero value of string and int are "" and 0 already, so I think there won't be necessary to declare the value here! But if you want it to be clear for everyone, I think it's ok to keep it, I want to know your opinion 😅

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.

2 participants