-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use Order#email to show the order's email in new admin #5596
Conversation
3fc8a15
to
deed35a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5596 +/- ##
=======================================
Coverage 88.58% 88.58%
=======================================
Files 685 685
Lines 16404 16406 +2
=======================================
+ Hits 14531 14533 +2
Misses 1873 1873 ☔ View full report in Codecov by Sentry. |
I'm not necessarily opposed to this change, but can you provide some more context? In all the stores I work on, the order email gets set to the user email for non-guest orders, so I'm not sure how much value this provides. |
I have some apps that behave like PoS, where a logged-in user can create orders for others, this is just the view layer, it does not change anything at all, The previous admin used to render |
How does users creating orders for others factor in? Shouldn't that use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a bug fix, but I think we should just use order.email
here, as this already takes your use case into account.
deed35a
to
9364b2c
Compare
@softr8 I made the change so that we can merge this in. Thanks for reporting. |
`spree_orders` table has the column `email` which stores the email of guest orders or users email for non guest orders. We should use that in the new admin to display the email so that guest orders work as well.
9364b2c
to
93abf41
Compare
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Thanks @tvdeyen !!!! |
Summary
spree_orders
table has the columnemail
which stores the email ofguest orders or users email for non guest orders. We should use
that in the new admin to display the email so that guest orders work
as well.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: