Skip to content

fix is_blank and is_present filters for uuid columns#3629

Merged
mshibuya merged 2 commits into
railsadminteam:masterfrom
ozenbusra:fix-uuid-filter
Jun 17, 2023
Merged

fix is_blank and is_present filters for uuid columns#3629
mshibuya merged 2 commits into
railsadminteam:masterfrom
ozenbusra:fix-uuid-filter

Conversation

@ozenbusra

Copy link
Copy Markdown
Contributor

Using "is present" and "is blank" filters for UUID columns causes "PG::InvalidTextRepresentation" since UUID type cannot be represented with empty string.

Empty string search is removed for UUID as well as boolean, integer, decimal and float columns.

@mshibuya

mshibuya commented Jun 4, 2023

Copy link
Copy Markdown
Member

Thanks, the change itself looks good. Please resolve the Rubocop offenses to get this merged.
https://github.com/railsadminteam/rails_admin/actions/runs/5146285290/jobs/9265110540?pr=3629

@ozenbusra

Copy link
Copy Markdown
Contributor Author

Thanks, the change itself looks good. Please resolve the Rubocop offenses to get this merged. https://github.com/railsadminteam/rails_admin/actions/runs/5146285290/jobs/9265110540?pr=3629

I resolved the offenses that occured in the files I changed in this PR. However, there are 2 more offenses, should I also resolve them?

@mshibuya mshibuya merged commit 647347c into railsadminteam:master Jun 17, 2023
@mshibuya

Copy link
Copy Markdown
Member

No need for that, thanks!

jklimke added a commit to 3dcl/rails_admin that referenced this pull request Jun 27, 2023
* 'master' of github.com:railsadminteam/rails_admin: (53 commits)
  fix is_blank and is_present filters for uuid columns (railsadminteam#3629)
  Add support for '%-l' option to Flatpickr. (railsadminteam#3616)
  Fix polymorphic association target classes not set correctly in subclasses
  Fix multiple_carrierwave field spec failing due to mocking
  Fix webpacker build
  Relax Rubocop Metrics/ClassLength threshold
  Version 3.1.2
  Postpone introduction of the new event name `rails_admin:dom_ready`
  Fix install failing with importmap setup
  Fix to show non-eager-loaded models which are explicitly configured
  Change dom_ready event name to use colon as the separator
  Restore caching in RailsAdmin::Config::Model#excluded? (railsadminteam#3587)
  Update GitHub Actions Badge URL
  Optimize file path to class name conversion (railsadminteam#3589)
  Switch to the safe navigation operator in spec files (railsadminteam#3588)
  Fix typo: Envinronment ==> Environment (railsadminteam#3586)
  Enable RuboCop Style/Encoding and apply auto-fixes (railsadminteam#3585)
  Add CI testing for Ruby 3.2 (railsadminteam#3583)
  Version 3.1.1
  Fix some typos (railsadminteam#3580)
  ...
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.

3 participants