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

Shopfront pagination #4345

Merged

Conversation

Matt-Yorkley
Copy link
Contributor

@Matt-Yorkley Matt-Yorkley commented Oct 2, 2019

What? Why?

Closes #4040
Closes #4041
Closes #4042

Adds pagination to shop product lists and moves search and filtering server-side. Also removes the product cache...

What should we test?

Shop products should load more or less as before. Things that need testing:

  • Enterprise fees are applied correctly in shop
  • Variant overrides are working
  • Taxons and Properties buttons are working
  • Search and filter products is working
  • Products hidden by tag rules are hidden

Release notes

Added pagination to shop products list and removed product cache.

Changelog Category: Changed

@Matt-Yorkley Matt-Yorkley self-assigned this Oct 2, 2019
Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

this is looking great Matt!!
I think we should rush to a mergeable state to avoid a huge PR.

app/controllers/api/order_cycles_controller.rb Outdated Show resolved Hide resolved
app/controllers/api/order_cycles_controller.rb Outdated Show resolved Hide resolved
@Matt-Yorkley
Copy link
Contributor Author

we should rush... to avoid a huge PR

This PR will suddenly get a lot smaller when the ProductsRenderer PR is merged ;)

@Matt-Yorkley Matt-Yorkley force-pushed the shopfront_pagination branch 2 times, most recently from aac4c97 to 2580157 Compare October 4, 2019 00:45
@Matt-Yorkley Matt-Yorkley force-pushed the shopfront_pagination branch 4 times, most recently from 8c3eeab to 8221e83 Compare October 4, 2019 12:31
@Matt-Yorkley
Copy link
Contributor Author

Matt-Yorkley commented Oct 4, 2019

Okay, this is getting pretty close...

@Matt-Yorkley Matt-Yorkley force-pushed the shopfront_pagination branch 2 times, most recently from a7ac735 to 30550cc Compare October 4, 2019 14:06
@Matt-Yorkley Matt-Yorkley force-pushed the shopfront_pagination branch 9 times, most recently from e90d6d3 to f1df076 Compare October 7, 2019 09:18
Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

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

Awesome, almost ready!
We just need some specs for the OC controller at least.

lib/open_food_network/products_renderer.rb Outdated Show resolved Hide resolved
lib/open_food_network/products_renderer.rb Outdated Show resolved Hide resolved
app/serializers/api/product_serializer.rb Show resolved Hide resolved
lib/open_food_network/products_renderer.rb Outdated Show resolved Hide resolved
spec/lib/open_food_network/products_renderer_spec.rb Outdated Show resolved Hide resolved
app/services/product_tag_rules_filterer.rb Show resolved Hide resolved
@lin-d-hop lin-d-hop added the pr-staged-au staging.openfoodnetwork.org.au label Oct 17, 2019
@lin-d-hop
Copy link
Contributor

I would assume with the change /admin/cache_settings/ can go from super admin...?
I guess a low priority and even if I open an issue it won't be done. In case you're feeling unusually OCD @matt_yorkley? ;-)

@Matt-Yorkley
Copy link
Contributor Author

Pretty sure I removed it already..?

@lin-d-hop
Copy link
Contributor

Not from the menu ;-)

@Matt-Yorkley
Copy link
Contributor Author

Matt-Yorkley commented Oct 18, 2019

Not from the menu ;-)

Updated, double-checked, and re-staged 👍

@lin-d-hop
Copy link
Contributor

Alright.... testing is complete. I feel like I gave it a good and proper workthrough.

I'm moving this to Ready to Go..... BOOM!

@lin-d-hop
Copy link
Contributor

@luisramos0 luisramos0 merged commit 02c0b89 into openfoodfoundation:master Oct 21, 2019
@RachL RachL removed the pr-staged-au staging.openfoodnetwork.org.au label Oct 21, 2019
@sauloperez
Copy link
Contributor

@lin-d-hop
Copy link
Contributor

I'm guessing this makes a major dot release. I'm going to write a blog post in it :-D

@luisramos0
Copy link
Contributor

luisramos0 commented Oct 22, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants