-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Workspace - Unlock feature is briefly visible after adding a bank account and unlocking all features #5760
Comments
Triggered auto assignment to @Gonals ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Ah, I know why this happens. It's because in order to make the pages available even when you're offline, they are showing whatever data is in Onyx first, then calling the API to load the latest bank account information, then the page will update with the new data. This all happens here:
The alternative was to show a loading indicator while the API call is being done, but then that wouldn't work in offline mode (ie. you'd see a loading indicator until the app came back online). What we should possibly consider doing is calling |
Oh, another idea instead of making multiple API calls is to just ensure that |
@tgolen I noticed you mention this is tied in with offline mode, where we're seeing a similar issue, so figured I'd drop it here to start. After enabling the cards I will see Is this problem/potential solution related to the issue we're seeing here on loading the pages so they show correct copy? Or do you suggest we get this in a separate issue? |
I think the issue is a bit different. This doesn't happen the first time those sections are open after adding the bank account. It happens every time. The cause seems to be this line in I think we can fix this simply by checking ONYX first and, if we already have an OPEN account there, not calling fetchFreePlanVerifiedBankAccount. I'm pretty sure we set the status correctly at the end of the process, so it should be fine. I'll do some testing with that and see if it causes any issues when the bank account is deleted from oldDot. |
Yep, as I expected, we get issues if the account gets deleted in oldDot. The behavior remains as if the account were open until we refresh. |
Fix in place! Do we still consider this a deployblocker? It is a visual bug, but it doesn't |
We do this already I think and it should happen after App/src/libs/actions/BankAccounts.js Lines 574 to 587 in 5302984
|
Could we maybe just hide the options until
|
Ah, yeah, we could. I think the solution in Alberto's PR is a pretty solid one though. |
It's not bad and maybe even the longer term approach we want to go with. But it makes my stomach hurt a little since there are many things that might be expecting that data to be reset each time we fetch it. As long as we test heavily we should be good. Mainly proposing the alternative solution because I can guarantee there will be no unintended side effects. |
OK, got it. Makes sense. I think the testing has been pretty thorough so far, so I have pretty high confidence that we should be able to catch any issues in the flow if they are introduced. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Found while QAing #5642
Action Performed:
Expected Result:
Features should be unblocked and no visual issue should be present.
Actual Result:
The blocked feature text is visible for a brief moment.
Workaround:
Unknown .
Platform:
Where is this issue occurring?
Version Number: 1.1.7-3
Reproducible in staging?: yes
Reproducible in production?: no
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen_Recording_20211011-152409_New.Expensify.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: