This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
spec/lib/modules/summarization Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,20 @@ def inject_into(plugin)
1717 scope . can_see_summary? ( object . topic )
1818 end
1919
20- plugin . register_modifier ( :topic_query_create_list_topics ) do |topics , options |
21- if Discourse . filters . include? ( options [ :filter ] ) && SiteSetting . ai_summarization_enabled &&
22- SiteSetting . ai_summarize_max_hot_topics_gists_per_batch > 0
23- topics
24- . includes ( :ai_summaries )
25- . where (
26- "ai_summaries.id IS NULL OR ai_summaries.summary_type = ?" ,
27- AiSummary . summary_types [ :gist ] ,
28- )
29- . references ( :ai_summaries )
30- else
31- topics
32- end
33- end
20+ # plugin.register_modifier(:topic_query_create_list_topics) do |topics, options|
21+ # if Discourse.filters.include?(options[:filter]) && SiteSetting.ai_summarization_enabled &&
22+ # SiteSetting.ai_summarize_max_hot_topics_gists_per_batch > 0
23+ # topics
24+ # .includes(:ai_summaries)
25+ # .where(
26+ # "ai_summaries.id IS NULL OR ai_summaries.summary_type = ?",
27+ # AiSummary.summary_types[:gist],
28+ # )
29+ # .references(:ai_summaries)
30+ # else
31+ # topics
32+ # end
33+ # end
3434
3535 plugin . add_to_serializer (
3636 :topic_list_item ,
Original file line number Diff line number Diff line change 2121 context "when hot topic summarization is enabled" do
2222 before { SiteSetting . ai_summarize_max_hot_topics_gists_per_batch = 100 }
2323
24- it "preloads only gist summaries" do
24+ skip "preloads only gist summaries" do
2525 gist_topic = topic_query . list_hot . topics . find { |t | t . id == topic_ai_gist . target_id }
2626
2727 expect ( gist_topic . ai_summaries . size ) . to eq ( 1 )
You can’t perform that action at this time.
0 commit comments