Skip to content

Ransack searchable attribute issue in admin#301

Merged
tvdeyen merged 2 commits intosolidusio:mainfrom
Buvanesh-P:main
Jun 25, 2024
Merged

Ransack searchable attribute issue in admin#301
tvdeyen merged 2 commits intosolidusio:mainfrom
Buvanesh-P:main

Conversation

@Buvanesh-P
Copy link
Copy Markdown
Contributor

@Buvanesh-P Buvanesh-P commented Jun 17, 2024

Summary

Issue - Runtime Error in Spree::Admin::Subscriptions. Ransack needs Solidus Subscriptions, Installments, Events attributes explicitly allowlisted as searchable

Screenshot 2024-06-17 175900

Fixes - Added the methods to make subscriptions, installments, events attributes allowlisted as searchable.

Checklist

  • I have written a thorough PR description.
  • I have kept my commits small and atomic.
  • I have used clear, explanatory commit messages
  • 📸 I have attached screenshots to demo visual changes.

Copy link
Copy Markdown
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks. There are many attributes that do not need to be searchable. Can we scope the fields to the ones we really need?

Comment thread app/models/solidus_subscriptions/subscription.rb Outdated
Comment thread app/models/solidus_subscriptions/subscription.rb Outdated
Comment thread app/models/solidus_subscriptions/subscription_event.rb Outdated
@Buvanesh-P
Copy link
Copy Markdown
Contributor Author

@tvdeyen Are we good to merge these changes?

@Buvanesh-P Buvanesh-P requested a review from tvdeyen June 25, 2024 09:49
Copy link
Copy Markdown
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks

@tvdeyen
Copy link
Copy Markdown
Member

tvdeyen commented Jun 25, 2024

Test failures not related to this change. Need to tackle those in another PR

@tvdeyen tvdeyen merged commit fe9b6d5 into solidusio:main Jun 25, 2024
@fthobe fthobe mentioned this pull request Jan 5, 2025
3 tasks
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.

2 participants