Skip to content

Conversation

@mayank0109
Copy link
Contributor

Copilot AI review requested due to automatic review settings May 5, 2025 17:44
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

This pull request updates the filter creation logic in QueryHelper to process all criteria instead of just the first one.

  • Iterates over all criteria key-value pairs to create filters
  • Updates the filter initialization to dynamically use each operator and criterion from the criteria hash
Comments suppressed due to low confidence (1)

lib/query_helper/sql_filter.rb:24

  • [nitpick] Consider renaming the block parameters 'k' and 'v' to more descriptive names, such as 'operator_code' and 'criterion', to improve clarity.
criteria.each do |k, v|

Copy link
Contributor

@satishaher satishaher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me,
I know we are using tags on Gemfile, but it is still better to keep the version in the version.rb file as well. Could you please update it there too?

@mayank0109 mayank0109 merged commit 9229830 into master May 26, 2025
4 checks passed
mayank0109 added a commit that referenced this pull request Jun 11, 2025
PRED-6551 Process all the criteria(not just first one) and store in the filters
mayank0109 added a commit that referenced this pull request Jun 12, 2025
PRED-6551 Process all the criteria(not just first one) and store in the filters
mayank0109 added a commit that referenced this pull request Jun 13, 2025
PRED-6551 Process all the criteria(not just first one) and store in the filters
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.

4 participants