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

Commit 866e97b

Browse files
committed
debug ci
1 parent 1167922 commit 866e97b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/lib/modules/sentiment/post_classification_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,18 @@ def check_classification_for(post)
159159
Fabricate(:classification_result, target: classified_post, model_used: cm["model_name"])
160160
end
161161

162+
pp Post
163+
.where(id: classified_post.id)
164+
.joins(<<~SQL)
165+
LEFT JOIN classification_results crs
166+
ON crs.target_id = posts.id
167+
AND crs.target_type = 'Post'
168+
AND crs.classification_type = 'sentiment'
169+
SQL
170+
.select("array_agg(DISTINCT crs.model_used ORDER BY crs.model_used ASC)")
171+
pp "\n"
172+
pp DiscourseAi::Sentiment::SentimentSiteSettingJsonSchema.values.map(&:model_name).sort
173+
162174
posts = described_class.backfill_query
163175
expect(posts).not_to include(classified_post)
164176

0 commit comments

Comments
 (0)