Remove Onyx.connect() for the key: ONYXKEYS.COLLECTION.POLICY in src/libs/SubscriptionUtils.ts - part 1#84009
Conversation
|
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
@shubham1206agra Two scenarios in the test where the changes introduced in this PR are quite difficult to reproduce manually. Since we already have unit test coverage for this behavior, would it be acceptable to skip the recording step in this case? Refer to this comment:
|
Reviewer Checklist
|
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #66457 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@tgolen Could you review this PR? Or will the current assigned engineer review it? |
| firstDayFreeTrial, | ||
| lastDayFreeTrial, | ||
| userBillingFundID, | ||
| {}, |
There was a problem hiding this comment.
Yes, it is required because after this PR, shouldShowDiscountBanner will require 6 parameters instead of the current 5.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @tgolen has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.3.32-0 🚀
|
|
Hi @truph01. Can you please check this internally? QA team hasn't WS with purchases |
|
@IuliiaHerets As mentioned in here:
It is difficult to test. So do you think we can skip QA for now? |
WDYT? Can we check it off? @tgolen @madmax330 |
|
@blimpich Can you please test this flow? As I know you have local setup for this |
|
Don't we need to test it in staging? Not on local? |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.32-3 🚀
|
Explanation of Change
This PR represents the first step toward removing
Onyx.connect()for the keyONYXKEYS.COLLECTION.POLICYinsrc/libs/SubscriptionUtils.ts.In this iteration, the changes focus specifically on the following logic:
shouldShowDiscountBannershouldCalculateBillNewDotFixed Issues
$ #66457
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include ""[No QA].""
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari