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

🐛 Don't render assessments for data queries #1438

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/reporter/print_compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
dataQueriesOutput := ""
resolved.WithDataQueries(func(id string, query *policy.ExecutionQuery) {
data := query.Code.FilterResults(results)
result := r.Reporter.Printer.Results(query.Code, data)
result := r.Reporter.Printer.Datas(query.Code, data)

Check failure on line 479 in cli/reporter/print_compact.go

View workflow job for this annotation

GitHub Actions / go-test

r.Reporter.Printer.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 479 in cli/reporter/print_compact.go

View workflow job for this annotation

GitHub Actions / go-test

r.Reporter.Printer.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 479 in cli/reporter/print_compact.go

View workflow job for this annotation

GitHub Actions / golangci-lint

r.Reporter.Printer.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 479 in cli/reporter/print_compact.go

View workflow job for this annotation

GitHub Actions / golangci-lint

r.Reporter.Printer.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)
if result == "" {
return
}
Expand Down
2 changes: 1 addition & 1 deletion cli/reporter/render_asset_overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

// print data results
filteredResults := codeBundle.FilterResults(results)
value := print.Results(codeBundle, filteredResults)
value := print.Datas(codeBundle, filteredResults)

Check failure on line 93 in cli/reporter/render_asset_overview.go

View workflow job for this annotation

GitHub Actions / go-test

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 93 in cli/reporter/render_asset_overview.go

View workflow job for this annotation

GitHub Actions / go-test

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 93 in cli/reporter/render_asset_overview.go

View workflow job for this annotation

GitHub Actions / golangci-lint

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 93 in cli/reporter/render_asset_overview.go

View workflow job for this annotation

GitHub Actions / golangci-lint

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

table = append(table, row{
Title: query.Title,
Expand Down
2 changes: 1 addition & 1 deletion cli/reporter/render_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}
}

result := print.Results(codeBundle, filteredResults)
result := print.Datas(codeBundle, filteredResults)

Check failure on line 104 in cli/reporter/render_policy.go

View workflow job for this annotation

GitHub Actions / go-test

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 104 in cli/reporter/render_policy.go

View workflow job for this annotation

GitHub Actions / go-test

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)

Check failure on line 104 in cli/reporter/render_policy.go

View workflow job for this annotation

GitHub Actions / golangci-lint

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas)) (typecheck)

Check failure on line 104 in cli/reporter/render_policy.go

View workflow job for this annotation

GitHub Actions / golangci-lint

print.Datas undefined (type *"go.mondoo.com/cnquery/v11/cli/printer".Printer has no field or method Datas) (typecheck)
result = strings.ReplaceAll(result, "\n", NewLineCharacter)
res.WriteString(" Result:")
writeQueryCompact(res, result)
Expand Down
Loading