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

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

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

grmartin
Copy link
Contributor

@grmartin grmartin commented Mar 15, 2024

SONIC-375

Relies on: edx/commerce-coordinator#185

@grmartin grmartin requested a review from a team as a code owner March 15, 2024 10:37
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes are missing coverage. Please review.

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

Files Patch % Lines
src/order-history/service.js 75.00% 2 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##             2u/replatforming     #377   +/-   ##
===================================================
  Coverage                    ?   64.76%           
===================================================
  Files                       ?       34           
  Lines                       ?      315           
  Branches                    ?       70           
===================================================
  Hits                        ?      204           
  Misses                      ?      107           
  Partials                    ?        4           

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

@grmartin grmartin changed the title feat: Optionally triggered Legacy vs Unified order history feat: Uniform order history for CC's Unified Order History as well as Legacy Mar 15, 2024
Copy link
Contributor

@shafqatfarhan shafqatfarhan left a comment

Choose a reason for hiding this comment

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

Left a few comments. Otherwise, looks good.

.env.test Outdated Show resolved Hide resolved
src/order-history/service.js Outdated Show resolved Hide resolved
src/order-history/service.js Outdated Show resolved Hide resolved
src/order-history/service.js Outdated Show resolved Hide resolved
.env.development Outdated Show resolved Hide resolved
@grmartin
Copy link
Contributor Author

grmartin commented Mar 18, 2024

With the changes incoming today:

Ecomm IDA (Legacy)

Null, False or Empty String will cause Ecomm to be used... (anything falsy in JS)

ORDER_HISTORY_URL=''
RECEIPT_URL=''

2024-03-18_13_29_06

Coordinator IDA

ORDER_HISTORY_URL=http://localhost:8140/orders/unified/order_history/
RECEIPT_URL=http://localhost:8140/orders/unified/order_receipt/

2024-03-18_13_33_36

@grmartin grmartin merged commit 442dd9b into 2u/replatforming Mar 18, 2024
6 checks passed
@grmartin grmartin deleted the grmartin/SONIC-375 branch March 18, 2024 13:42
grmartin added a commit that referenced this pull request Apr 2, 2024
… 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
grmartin added a commit that referenced this pull request Apr 2, 2024
… 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
grmartin added a commit that referenced this pull request Apr 2, 2024
… 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
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