-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Bring spree_backend search controller to OFN #4511
Bring spree_backend search controller to OFN #4511
Conversation
7ec1262
to
f4a22d6
Compare
f4a22d6
to
2925e1d
Compare
Needs a rebase |
2925e1d
to
ee224cd
Compare
👍 done |
…with the OFN's decorator
ee224cd
to
b7d19dd
Compare
rebased to resolve conflicts again. |
Hey @luisramos0, |
Hey Filipe, where do you see the conflicts? Looks good to me. The broken build was a flaky spec, I am rerunning it. Anyway, this is ready for testing. |
Humm. I could swear there was a error before - but appears to be gone, now. Great! Proceeding with staging/testing. |
Hi @luisramos0 , Sorry it took so long, this one was a bit tricky. I think it is good to go, but found issues which may be relevant. Considering your testing notes, I found nothing considering the your section Known Users. All good here. However, concerning Customer Search, users which added items to a cart, may - under certain circumstances (see below) - be found under the Customers menu, accessible as Superadmin (https://staging.openfoodnetwork.org.uk/admin/customers). For this to happen, the order has to be edited first:
Also, in some cases, an Order in cart appears with the Address Status. I would further need to investigate this, as it does not always seem to happen. Appearing as a Customer - with no purchase made - might raise the discussion, on whether we should keep addresses or data from users, in the Cart state. I think the PR is ready to go, but these are issues that maybe should be followed up. Thanks again @luisramos0 ! Was this the last piece of Spree code? :tada Thank you too @RachL, for the help and discussion on this. |
cool, thanks Filipe. |
Yes, @luisramos0, So, I fully agree with you, this deserves extensive testing, and tracking out these small differences, but I they don't seem to be related to this PR. |
Some orders will be in the address state if something went wrong with the address on checkout. It's not important because if the user goes to the checkout page again (just loading the checkout page as that user is enough), the state will be moved to cart again. I dont think the other point is an issue, from what I understand you are saying that users who have an open cart order with the distributor will also show up on their customers list. I think that could be useful. From what I understand these are the two questions you raised above. I think we can leave it as is. |
Uh, that's new. How does that work with customer-only shops? Do they need to add a product (see the shop) or does everybody automatically become a customer and the customer-only feature is completely defunct? |
good point Maikel. |
I will further check these issues. |
What? Why?
Related to #4050
We dont bring much from spree here, we basically convert the existing search controller decorator into a controller.
The rubocop manual todo was updated for the abc size warning.
What should we test?
This is well covered with auto tests but we can briefly verify:
Known users
Customer search
Release notes
Changelog Category: Changed
Simplified code related to searching users.