mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 19:22:18 +08:00
Previously, the admin AI translations page blocked rendering on an expensive SQL query (CROSS JOIN of all eligible posts × all supported locales with EXISTS subqueries) with no caching, causing multi-second blank page loads on large sites. In this update, the endpoint is split into a fast config endpoint (show) and a lazy-loaded progress endpoint (progress), the expensive query is cached for 30 minutes (keyed by locale config), and the frontend renders the page instantly with a loading spinner while chart data loads asynchronously. --------- Co-authored-by: Nat <natalie.tay@discourse.org> |
||
|---|---|---|
| .. | ||
| base_translator_spec.rb | ||
| category_candidates_spec.rb | ||
| category_locale_detector_spec.rb | ||
| category_localizer_spec.rb | ||
| content_splitter_spec.rb | ||
| entry_point_spec.rb | ||
| language_detector_spec.rb | ||
| localizable_quota_spec.rb | ||
| post_candidates_spec.rb | ||
| post_detection_text_spec.rb | ||
| post_locale_detector_spec.rb | ||
| post_localizer_spec.rb | ||
| tag_candidates_spec.rb | ||
| tag_locale_detector_spec.rb | ||
| tag_localizer_spec.rb | ||
| topic_candidates_spec.rb | ||
| topic_locale_detector_spec.rb | ||
| topic_localizer_spec.rb | ||
| translation_spec.rb | ||