-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Duplicate paid adoption events are logged each time a payment card is added #57122
Comments
Triggered auto assignment to @maddylewis ( |
The add/change flows are slightly different so we should be able to just fix this on the frontend. |
Job added to Upwork: https://www.upwork.com/jobs/~021892259730792067530 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Duplicate paid adoption events are logged each time a payment card is added What is the root cause of that problem?when we App/src/pages/settings/Subscription/CardSection/CardSectionActions/index.tsx Lines 28 to 32 in 220c69f
and in the App/src/libs/actions/PaymentMethods.ts Line 276 in 220c69f
What changes do you think we should make in order to solve the problem?We can rely on the Onyx key If change to another card, will not log here anymore and will add new log App/src/libs/actions/PaymentMethods.ts Line 276 in 220c69f
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@nkdengineer's proposal LGMT 🎀👀🎀 |
Current assignee @arosiclair is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@nkdengineer could you please where are we calling the function addSubscriptionPaymentCard on navigation? |
@nkdengineer another requirement: we should log when we are not publishing the event so it's easier to debug later. Eg: |
@arosiclair @rushatgabhane updated proposal |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@rushatgabhane @arosiclair We have a draft PR here.
|
@nkdengineer can you add a test to GoogleTagManagerTest instead? That should be enough. |
thanks @arosiclair, I'll open PR today |
@rushatgabhane @arosiclair we have a open PR here |
@rushatgabhane @arosiclair - will you take a look at the PR for this one when you have a chance? tysm! |
It's merged already. We're just waiting on the deploy to prod. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.60-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): All
Logs: N/A
Expensify/Expensify Issue URL: N/A
Issue reported by: @arosiclair
Slack conversation (hyperlinked to channel name): https://expensify.slack.com/archives/C07HPDRELLD/p1739905840251309
Action Performed:
Expected Result:
[info] [GTM] event published - {"event":"paid_adoption","user_id":###}
is NOT logged in the console since it's not the first payment cardActual Result:
The event is logged
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: