-
Notifications
You must be signed in to change notification settings - Fork 26
Fix/679 find journey by category attrs #695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@jsuchal este treba v produkcii po mergnuti zbehnut toto:
chceme to ako migraciu este pridat do tohto PR alebo to vies nejako spustit rucne? |
f7c162e to
bc0eb84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| Document.where(searchable: steps).pluck(column).join(' ') | ||
| end | ||
|
|
||
| def categorization_search(*columns) |
Copilot
AI
Oct 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method uses pluck(*columns) which could fail if no columns are passed. Consider adding a guard clause or default columns parameter.
| def categorization_search(*columns) | |
| def categorization_search(*columns) | |
| columns = [:name] if columns.empty? |
This allows journey to be found with keywords matching its categories.
bc0eb84 to
e1d4e98
Compare
|
@crutch pridajme tu migraciu. |
|
@jsuchal pridal som |
| @@ -0,0 +1,67 @@ | |||
| // No-results analytics only | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crutch podla mna toto vyhodme zatial, vymyslime to inak. nechajme tu len ten search cez meno kategorie a to mergneme
closes #679