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

Unified Order History for Ecommerce and Commercetools #370

Conversation

grmartin
Copy link
Contributor

@grmartin grmartin commented Feb 6, 2024

SONIC-126

THIS DIVERGES FROM MAIN/MASTER

We now mostly trust the server and if its a pure decimal number,
we assume its USD (this is to support legacy system)
@grmartin grmartin requested a review from a team as a code owner February 6, 2024 15:22
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (2u/replatforming@a5c446b). Click here to learn what that means.

Additional details and impacted files
@@                 Coverage Diff                 @@
##             2u/replatforming     #370   +/-   ##
===================================================
  Coverage                    ?   63.09%           
===================================================
  Files                       ?       34           
  Lines                       ?      317           
  Branches                    ?       68           
===================================================
  Hits                        ?      200           
  Misses                      ?      112           
  Partials                    ?        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -76,7 +51,7 @@ export async function getOrders(page = 1, pageSize = 20) {

return {
datePlaced: date_placed, // eslint-disable-line camelcase
total: total_excl_tax, // eslint-disable-line camelcase
total: isNotDecimalish(total_excl_tax) ? total_excl_tax : `$${total_excl_tax}`, // eslint-disable-line camelcase
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Legacy Ecomm system works in USD, the modern does Remote Currency formatting. Thus we could get bacl $12.34 AUD instead of 12.34.

@grmartin grmartin merged commit bb939ff into 2u/replatforming Feb 7, 2024
6 checks passed
@grmartin grmartin deleted the grmartin/SONIC-126-unified_order_history_for_faecomm branch February 7, 2024 10:30
grmartin added a commit that referenced this pull request Apr 2, 2024
* feat: Unified order history

* fix: number formatting issues for order history table

We now mostly trust the server and if its a pure decimal number,
we assume its USD (this is to support legacy system)

* fix: npx update-browserslist-db@latest

---

Author:    Glenn R. Martin <[email protected]>
Date:      Wed Feb 7 05:30:57 2024 -0500

On branch 2u/replatform-to-master
You are currently cherry-picking commit bb939ff.

 Changes to be committed:
	modified:   .env.development
	modified:   .env.test
	modified:   src/order-history/OrderHistoryPage.jsx
	modified:   src/order-history/service.js
grmartin added a commit that referenced this pull request Apr 2, 2024
* feat: Unified order history

* fix: number formatting issues for order history table

We now mostly trust the server and if its a pure decimal number,
we assume its USD (this is to support legacy system)

* fix: npx update-browserslist-db@latest

---

Author:    Glenn R. Martin <[email protected]>
Date:      Wed Feb 7 05:30:57 2024 -0500

On branch 2u/replatform-to-master
You are currently cherry-picking commit bb939ff.

 Changes to be committed:
	modified:   .env.development
	modified:   .env.test
	modified:   src/order-history/OrderHistoryPage.jsx
	modified:   src/order-history/service.js
grmartin added a commit that referenced this pull request Apr 2, 2024
* feat: Unified order history

* fix: number formatting issues for order history table

We now mostly trust the server and if its a pure decimal number,
we assume its USD (this is to support legacy system)

* fix: npx update-browserslist-db@latest

---

Author:    Glenn R. Martin <[email protected]>
Date:      Wed Feb 7 05:30:57 2024 -0500

On branch 2u/replatform-to-master
You are currently cherry-picking commit bb939ff.

 Changes to be committed:
	modified:   .env.development
	modified:   .env.test
	modified:   src/order-history/OrderHistoryPage.jsx
	modified:   src/order-history/service.js
grmartin added a commit that referenced this pull request Apr 2, 2024
* feat: Unified Order History for Ecommerce and Commercetools (#370)

* feat: Unified order history

* fix: number formatting issues for order history table

We now mostly trust the server and if its a pure decimal number,
we assume its USD (this is to support legacy system)

* fix: npx update-browserslist-db@latest

---

Author:    Glenn R. Martin <[email protected]>
Date:      Wed Feb 7 05:30:57 2024 -0500

On branch 2u/replatform-to-master
You are currently cherry-picking commit bb939ff.

 Changes to be committed:
	modified:   .env.development
	modified:   .env.test
	modified:   src/order-history/OrderHistoryPage.jsx
	modified:   src/order-history/service.js

* feat: Unified Order History Receipt URL (#371)

* feat: Unified Order History Receipt URL

SONIC-279

* fix: Update .env.development

trailing slash is what nginx appends to URLs during routing to the appropriate service. If it is not present, no endpoint would match

Co-authored-by: Shafqat Farhan <[email protected]>

---------

Co-authored-by: Shafqat Farhan <[email protected]>

* feat: Uniform order history for CC's Unified Order History as well as Legacy (#377)

* feat: Optionally triggered Legacy vs Unified order history
* fix: URL Pathing to enable OSS to function a bit simpler with a better fallback, based on Shafqat's feedback

---------

Co-authored-by: Shafqat Farhan <[email protected]>
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.

2 participants