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: add RECEIPT_URL and ORDER_HISTORY_URL env vars #379

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

grmartin
Copy link
Contributor

@grmartin grmartin commented Apr 2, 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 requested a review from a team as a code owner April 2, 2024 12:34
@grmartin grmartin changed the title chore: Sync 2u/replatform to master chore: Manual sync 2u/replatform to master [2003-04-02] Apr 2, 2024
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

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

Project coverage is 65.75%. Comparing base (210babb) to head (a7fd260).

Files Patch % Lines
src/order-history/service.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
+ Coverage   63.77%   65.75%   +1.98%     
==========================================
  Files          33       33              
  Lines         334      330       -4     
  Branches       74       76       +2     
==========================================
+ Hits          213      217       +4     
+ Misses        114      108       -6     
+ Partials        7        5       -2     

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

grmartin and others added 3 commits April 2, 2024 08:51
* 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

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]>
… 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
Copy link
Contributor

@pshiu pshiu left a comment

Choose a reason for hiding this comment

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

LGTM, but can you document how RECEIPT_URL and ORDER_HISTORY_URL work in the description of this PR?

@pshiu pshiu changed the title chore: Manual sync 2u/replatform to master [2003-04-02] feat: add RECEIPT_URL and ORDER_HISTORY_URL env vars Apr 2, 2024
@grmartin grmartin merged commit 00352f4 into master Apr 2, 2024
7 checks passed
@grmartin grmartin deleted the 2u/replatform-to-master branch April 2, 2024 15:48
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