Skip to content

Conversation

@crutch
Copy link
Collaborator

@crutch crutch commented Oct 11, 2025

closes #679

@crutch crutch requested a review from Copilot October 11, 2025 09:33

This comment was marked as outdated.

@crutch
Copy link
Collaborator Author

crutch commented Oct 11, 2025

@jsuchal este treba v produkcii po mergnuti zbehnut toto:

PgSearch::Multisearch.rebuild(Journey)

chceme to ako migraciu este pridat do tohto PR alebo to vies nejako spustit rucne?

@crutch crutch force-pushed the fix/679-find-journey-by-category-attrs branch from f7c162e to bc0eb84 Compare October 11, 2025 09:45
@crutch crutch requested a review from Copilot October 11, 2025 09:46
Copy link

Copilot AI left a 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)
Copy link

Copilot AI Oct 11, 2025

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.

Suggested change
def categorization_search(*columns)
def categorization_search(*columns)
columns = [:name] if columns.empty?

Copilot uses AI. Check for mistakes.
This allows journey to be found with keywords matching its categories.
@crutch crutch force-pushed the fix/679-find-journey-by-category-attrs branch from bc0eb84 to e1d4e98 Compare October 11, 2025 09:49
@jsuchal
Copy link
Member

jsuchal commented Oct 11, 2025

@crutch pridajme tu migraciu.

@crutch
Copy link
Collaborator Author

crutch commented Oct 11, 2025

@jsuchal pridal som

@@ -0,0 +1,67 @@
// No-results analytics only
Copy link
Member

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

@jsuchal jsuchal merged commit 8a63f03 into master Oct 11, 2025
6 checks passed
@jsuchal jsuchal deleted the fix/679-find-journey-by-category-attrs branch October 11, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search box

3 participants