Skip to content
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

Fix Ransack error when searching for orders by customer name #4135

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

aldesantis
Copy link
Member

@aldesantis aldesantis commented Jul 27, 2021

Description

Fixes an issue in 3.0 where, if you try to search for an order by the customer's name, Ransack crashes.

The problem was introduced inadvertently in 94bfaa7. This Ransackable attribute was supposed to be removed completely, since it is not a Ransack alias anymore, but an actual DB column that lives on the bill_address association.

A regression test didn't seem necessary, given the minor nature of the problem.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

There's an issue in 3.0 where, if you try to search for an
order by the customer's name, Ransack crashes.

The problem was introduced inadvertently in 94bfaa7[1]. This
Ransackable attribute was supposed to be removed completely,
since it is not a Ransack alias anymore, but an actual DB column
that lives on the `bill_address` association.

[1]: solidusio@94bfaa7
@aldesantis
Copy link
Member Author

@solidusio/core-team can I get one more review on this? 🙏

@aldesantis aldesantis requested a review from a team July 28, 2021 10:30
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

thanks @aldesantis 👍

@spaghetticode spaghetticode merged commit 3cc23f5 into solidusio:master Jul 28, 2021
@tvdeyen
Copy link
Member

tvdeyen commented Aug 21, 2022

This is missing in v3.0 and broken since. I will provide a backporting PR

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.

None yet

4 participants