reset_stats currently crashes on MySQL with error 1093 partway through: the statistics are rebuilt, but the Series.issue_count stage that came in with #717 never runs. Issue's default ordering ('series', 'sort_code') pulls a join on gcd_series into the update's own subquery, and MySQL refuses to update a table its subquery reads. The Django aggregation docs say to clear the ordering in grouped queries, so that is the fix: one order_by().
https://docs.djangoproject.com/en/5.2/topics/db/aggregation/#interaction-with-order-by
https://github.com/GrandComicsDatabase/gcd-django/pull/725
(11 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@gemini-code-assist[bot] commented on this pull request.
This pull request updates and adds tests across several test suites to align with changes in query logic, field mappings, and mocking strategies. Notably, it introduces a new test file test_reset_stats.py to verify rebuilding cached statistics, and updates scripts/reset_stats.py by appending .order_by() to a subquery to prevent MySQL error 1093 caused by leaked joins from default ordering. I have no feedback to provide as there are no review comments.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Gemini is a bit wrong here " adds tests across several test suites to align with " the test script commit is part of the Repair test suite PR and is handled in #724 which Gemini also picks up here, the unique commit the fix scripts commit containing two files, the fix and a test
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()