Format
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ class Card < ApplicationRecord
|
||||
end
|
||||
|
||||
def cache_key
|
||||
[super, collection.name].compact.join("/")
|
||||
[ super, collection.name ].compact.join("/")
|
||||
end
|
||||
|
||||
def card
|
||||
|
||||
@@ -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"] } }
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user