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

Update custom search sample query #3396

Merged

Conversation

peterberkenbosch
Copy link
Contributor

Change the query to have an uppercase R to actually return the sample products.

Description

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)

@@ -51,7 +51,7 @@ module MyStore
private

def get_base_scope
super.where("name LIKE '%rails%'")
super.where("name LIKE '%Rails%'")
Copy link
Contributor

Choose a reason for hiding this comment

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

Are my sandbox seeds not loading all products? I only see "Ruby" products, and not any "Rails" products. If the seeds only populate "Ruby" products perhaps we should change this query to %Ruby%.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the sandbox only has "Ruby" products https://github.com/solidusio/solidus/blob/master/sample/db/samples/products.rb while the

Copy link
Contributor

@JDutil JDutil Oct 23, 2019

Choose a reason for hiding this comment

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

Looks like RoR products we're recently removed: 8221dcb I've created a PR to remove the old sample images: #3397 so I'd recommend changing this to %Ruby%

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.

@peterberkenbosch thank you 👍

@kennyadsl
Copy link
Member

@peterberkenbosch can you please take a look at the @JDutil comment here? Thanks!

@peterberkenbosch
Copy link
Contributor Author

This should be all good now @kennyadsl, thanks @JDutil

This commit fixes a documentation issue, since we do not load RoR
products any longer (8221dcb) the documentation is updated to use
Ruby named products.
@kennyadsl kennyadsl merged commit 5bd31ac into solidusio:master Mar 5, 2020
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.

5 participants