This commit is contained in:
Jorge Manrubia
2025-07-24 16:10:10 +02:00
parent e61ee25b47
commit b2ee79bbd0
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class Card < ApplicationRecord
end
def cache_key
[super, collection.name].compact.join("/")
[ super, collection.name ].compact.join("/")
end
def card
+2 -2
View File
@@ -221,8 +221,8 @@ class Command::Ai::Translator
Pass the terms to filter as a single-element array.
- zoom issues → { context: { terms: ["zoom"] } }
- apple and android issues → { context: { terms: ["apple and android"] } }
- zoom issues → { context: { terms: ["zoom"] } }#{' '}
- apple and android issues → { context: { terms: ["apple and android"] } }#{' '}
- contrast bugs → { context: { terms: ["contrast"] } }
- bugs about contrast → { context: { terms: ["contrast"] } }
+1 -1
View File
@@ -172,7 +172,7 @@ class Command::Ai::TranslatorTest < ActionDispatch::IntegrationTest
assert_command({ context: { indexed_by: "latest" }, commands: [ "/insight cards similar to 1234" ] }, "cards similar to 1234")
assert_command({ context: { indexed_by: "latest" }, commands: [ "/insight cards where mike has commented on" ] }, "cards where mike has commented on")
assert_command({ context: { assignee_ids: ["jz"] }, commands: [ "/insight cards where mike has commented" ] }, "cards where mike has commented assigned to jz")
assert_command({ context: { assignee_ids: [ "jz" ] }, commands: [ "/insight cards where mike has commented" ] }, "cards where mike has commented assigned to jz")
assert_command({ context: { indexed_by: "latest" }, commands: [ "/insight are there blockers here?" ] }, "are there blockers here?")
assert_command({ context: { indexed_by: "latest" }, commands: [ "/insight stuff that jz has done lately" ] }, "stuff that jz has done lately")
assert_command({ context: { indexed_by: "latest" }, commands: [ "/insight challenging cards" ] }, "challenging cards")