-
Notifications
You must be signed in to change notification settings - Fork 31
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 radom checkout session integration for new orders #2627
Conversation
1bf2b0d
to
19b64fc
Compare
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.
Confirmed this is disabled by default at the moment. This LGTM from a privacy perspective.
bat-go/services/grant/cmd/grant.go
Line 146 in 9943700
).Bind("radom-enabled").Env("RADOM_ENABLED") |
https://github.com/brave-intl/grant-ops/blob/master/ecs-vars-prod.env#L59
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.
Overall looking good. Not ready to approve, and would like to see most of the comments addressed before this gets merged.
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.
Also, the branch has not been updated since the last merge to master
, and is currently in conflict. This needs to be resolved too.
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.
Good work, approved! 👍
* fix imports * update gateway to pointer * update radom checkout session request to pointer * rename order items to line items function * add radom product id getter on metadata
[puLL-Merge] - brave-intl/bat-go@2627 DescriptionThis PR removes the Radom client implementation from the ChangesChanges
Possible Issues
Security HotspotsNo significant security hotspots were identified in this change. However, it's important to ensure that the new Radom client implementation in |
* feat: add radom checkout session integration for new orders * fix: rectify skus model tests after rebase * refactor: address comments * fix imports * update gateway to pointer * update radom checkout session request to pointer * rename order items to line items function * add radom product id getter on metadata * feat: add radom checkout session integration for new orders * feat: handle radom webhook events * test: remove duplicate test and fix pointer after rebase * feat: set radom webhook verification key * refactor: use pointers for radom events * refactor: fix import order skus controller * refactor: simplify radom event processing checks * style: fix parse apostrophe * refactor: use pointer for radom subscription response * refactor: remove call to error when calling err on logging * refactor: use index directly on radom mdata * refactor: make radom action error naming less generic * refactor: use pointer for service in test * refactor: sort imports in radom.go * refactor: update radom empty payments error message * style: return from func call opposed to explicit return nil * refactor: use string in radom get subscription * refactor: add on conflict do nothing to order history insert statement * refactor: rename radom event to radom notification * test: remove duplicate test after rebase
Summary
This PR adds Radom checkout session integration for new orders.
Security Review: https://github.com/brave/reviews/issues/1719
resolves #2633
Type of Change
Tested Environments
Before Requesting Review
Manual Test Plan