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

Implemented query builder for CAL source and fixed adapater bug #1

Merged

Conversation

capri-xiyue
Copy link

  • fixed missing adapterType bug

  • fixed typo

Copy link
Owner

@ian-mi ian-mi left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!

pkg/reconciler/events/cloudauditlog/filterbuilder.go Outdated Show resolved Hide resolved
func (fb *FilterBuilder) GetFilterQuery() string {
var filters []string
if fb.methodName != "" {
filters = append(filters, fmt.Sprintf("%s=%q", methodKey, fb.methodName))
Copy link
Owner

Choose a reason for hiding this comment

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

Filter values should probably be quoted.

Copy link
Author

Choose a reason for hiding this comment

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

%q a double-quoted string safely escaped with Go syntax
FYI: https://golang.org/pkg/fmt/
The filter values already got double-quoted

@ian-mi ian-mi merged commit d5538f7 into ian-mi:cal-jobless Dec 13, 2019
@capri-xiyue capri-xiyue changed the title fixed missing adapterType bug and fixed typo fixed missing adapterType bug, added query builder fixed typo Dec 13, 2019
@capri-xiyue capri-xiyue changed the title fixed missing adapterType bug, added query builder fixed typo Implemented query builder for CAL source and fixed adapater bug Aug 19, 2020
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