You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-02] [Payment card / Subscription] - Subcriptions leads to not here page after Control workspace is deleted #45720
@OfstadC FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Please re-state the problem that we are trying to solve in this issue.
Subcriptions leads to not here page after Control workspace is deleted
What is the root cause of that problem?
We are checking if there is privateSubscription here before adding subscription menu item to workspaceMenuItemsData. When a workspace is deleted, privateSubscription have autoRenewLastChangedDate , pendingFields and type properties. Therefore it is considered to be a truthy value and subscription item will be added to workspaceMenuItemsData.
@adelekennedy We're waiting on @rojiphil to complete BZ checklist - and then we need to issue payment on 8/2. I'll be fully offline on Friday so looping you in so we can pay this on time. Thank youuuu ❤️
[@rojiphil] The PR that introduced the bug has been identified. Link to the PR: Offending PR
[@rojiphil] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: Added comment
[@rojiphil] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: Not Required. Existing checklist is good enough to capture such issues.
[@rojiphil] Determine if we should create a regression test for this bug. : Since the changes are related to display/hide of subscription menu in LHN which is common usage, we can add a regression test.
[@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Test Steps
1 Create a new account (to have an account with no trial)
2 Create a workspace
3 Go to More features
4 Toggle on Report fields
5 Click Upgrade to upgrade to Control
6 Go back to Account settings
7 Click Subscriptions
8 Change subscription to "Pay-per-use"
9 Note that the page opens without issue
10 Now delete the Control workspace
11 Go back to Account settings
12 Verify that subscription is not shown anymore
Activity
melvin-bot commentedon Jul 18, 2024
Triggered auto assignment to @OfstadC (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Jul 18, 2024
@OfstadC FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
etCoderDysto commentedon Jul 18, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Subcriptions leads to not here page after Control workspace is deleted
What is the root cause of that problem?
We are checking if there is
privateSubscriptionhere before adding subscription menu item toworkspaceMenuItemsData. When a workspace is deleted,privateSubscriptionhaveautoRenewLastChangedDate,pendingFieldsandtypeproperties. Therefore it is considered to be a truthy value andsubscriptionitem will be added toworkspaceMenuItemsData.App/src/pages/settings/InitialSettingsPage.tsx
Lines 206 to 208 in 8e9c681
What changes do you think we should make in order to solve the problem?
useSubscriptionPlan();to check if the user has active subscription (collect or control subscription)subscriptionitem toworkspaceMenuItemsDataifsubscriptionPlan === nullNote: we will add subscriptionPlan to the useMemo dependency.
What alternative solutions did you explore? (Optional)
N/A
melvin-bot commentedon Jul 22, 2024
@OfstadC Whoops! This issue is 2 days overdue. Let's get this updated quick!
OfstadC commentedon Jul 22, 2024
Looking at this now
OfstadC commentedon Jul 22, 2024
I don't have the option for Report Fields 🤔 so I can't reproduce.
etCoderDysto commentedon Jul 22, 2024
You have to use expensifail account. The feature is under beta. That is why you are not seeing the feature.
OfstadC commentedon Jul 23, 2024
I don't get the same result

kavimuru commentedon Jul 23, 2024
@OfstadC Still reproducible by the tester
bandicam.2024-07-24.00-20-06-037.mp4
OfstadC commentedon Jul 23, 2024
Thanks @kavimuru !
27 remaining items
OfstadC commentedon Jul 31, 2024
@adelekennedy We're waiting on @rojiphil to complete BZ checklist - and then we need to issue payment on 8/2. I'll be fully offline on Friday so looping you in so we can pay this on time. Thank youuuu ❤️
melvin-bot commentedon Aug 2, 2024
Payment Summary
Upwork Job
BugZero Checklist (@adelekennedy)
adelekennedy commentedon Aug 2, 2024
Sent @rojiphil offer via Upwork
rojiphil commentedon Aug 3, 2024
Test Steps
1 Create a new account (to have an account with no trial)
2 Create a workspace
3 Go to More features
4 Toggle on Report fields
5 Click Upgrade to upgrade to Control
6 Go back to Account settings
7 Click Subscriptions
8 Change subscription to "Pay-per-use"
9 Note that the page opens without issue
10 Now delete the Control workspace
11 Go back to Account settings
12 Verify that subscription is not shown anymore
rojiphil commentedon Aug 3, 2024
@adelekennedy @OfstadC Completed BZ Checklist and accepted offer too. Thanks.
adelekennedy commentedon Aug 5, 2024
Payment made @rojiphil!
adelekennedy commentedon Aug 5, 2024
https://github.com/Expensify/Expensify/issues/418028