Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

/:idx/_count works now with indexes stored in quesma_common_table#1494

Open
trzysiek wants to merge 5 commits intomainfrom
1241-count-common-table
Open

/:idx/_count works now with indexes stored in quesma_common_table#1494
trzysiek wants to merge 5 commits intomainfrom
1241-count-common-table

Conversation

@trzysiek
Copy link
Copy Markdown
Contributor

@trzysiek trzysiek commented Jul 11, 2025

Seems to fix #1241

Added some tests for it + here screens of a manual test
Screenshot from 2025-07-11 16-18-21
Screenshot from 2025-07-11 16-18-31
Screenshot from 2025-07-12 11-04-52
Screenshot from 2025-07-12 11-05-34

@trzysiek
Copy link
Copy Markdown
Contributor Author

/run-it

Comment on lines +349 to +352
func (lm *LogManager) IsInTransparentProxyMode() bool {
return lm.cfg.TransparentProxy
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moved up so all methods are grouped together

Comment on lines -154 to +156
func executeQuery(ctx context.Context, lm *LogManager, query *model.Query, fields []string, rowToScan []interface{}) (res []model.QueryResultRow, performanceResult PerformanceResult, err error) {
func executeQuery(ctx context.Context, lm *LogManager, query *model.Query, fields []string, rowToScan []interface{}) (
res []model.QueryResultRow, performanceResult PerformanceResult, err error) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

broke down this and a few other lines to make them fit in 1 line on laptop

Comment on lines -107 to -114
func PrettyJson(jsonStr string) string {
var prettyJSON bytes.Buffer
if err := json.Indent(&prettyJSON, []byte(jsonStr), "", " "); err != nil {
return fmt.Sprintf("PrettyJson err: %v\n", err)
}
return prettyJSON.String()
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

unused, we have better one already

@trzysiek
Copy link
Copy Markdown
Contributor Author

/run-it

@trzysiek trzysiek marked this pull request as ready for review July 12, 2025 09:17
@trzysiek trzysiek requested a review from a team as a code owner July 12, 2025 09:17
@trzysiek trzysiek marked this pull request as draft July 12, 2025 09:18
@trzysiek trzysiek force-pushed the 1241-count-common-table branch from 3bd4481 to 4f7bfc1 Compare July 12, 2025 09:21
@trzysiek trzysiek force-pushed the 1241-count-common-table branch from 4f7bfc1 to bc3572a Compare July 12, 2025 09:22
@trzysiek
Copy link
Copy Markdown
Contributor Author

/run-it

@trzysiek
Copy link
Copy Markdown
Contributor Author

/run-it

@trzysiek trzysiek marked this pull request as ready for review July 12, 2025 10:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/:idx/_count doesn't work with indexes stored in quesma_common_table

1 participant