Closed kbecciv closed 6 months ago
Triggered auto assignment to @puneetlath (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
We think that this bug might be related to #wave-collect - Release 1
:wave: Friendly reminder that deploy blockers are time-sensitive β± issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
I think this does not have to be a blocker
@kbecciv @kavimuru does the account B not know the recents accounts it shows?
@mountiny Logged in with old account with recent contacts, then logged out and sign up with a completely new account. The contact list with old account still shows up for new account.
https://github.com/Expensify/App/assets/43996225/5ca3b525-5472-4161-bf5c-6dc9d07f54fa
@TMisiukiewicz Could it be that we do not clear the cache for the search options in this case?
Job added to Upwork: https://www.upwork.com/jobs/~01e820a2af95c4423e
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura (External
)
Referring to this PR https://github.com/Expensify/App/pull/38207
Upwork job price has been updated to $500
Increasing to $500 since its a blocker, author of the PR is out for the day and its quite annoying bug as you could potentially see someone else's contacts cached
When user logs out from Account A and logs in with Account B, the Recent section list still shows the data from Account A.
We're caching the options in OptionsListContextProvider
but we don't have any logic to clear the options upon sign out.
Add logic to clear the cached options upon sign out.
NA
The report data is from another user is still cached even after logging out which makes it possible for other user that log in will see it.
We have OptionsListContextProvider
that will load the report list (and update it when it's updated) and cache it.
The provider is put in App.tsx which means the state (cache) is persisted even after we log out. https://github.com/Expensify/App/blob/b10893a2a541a81112bb2a3d22647a9d7eaac94d/src/App.tsx#L86
Move the provider OptionsListContextProvider
from App.tsx to AuthScreens. This way, when the user is logged out, the context provider is destroyed.
Use useSession
hook and clear both reports
and personalDetails
and also set areOptionsInitialized
to false whenever the user logged out by checking the session auth token.
useEffect(() => {
if (!session.authToken) {
setOptions({reports: [], personalDetails: []});
areOptionsInitialized.current = false;
}
}, [session.authToken]);
@bernhardoj your proposal makes sense to me, let's try to implement it quickly!
π£ @paultsimura π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @bernhardoj π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
@jasperhuangg can you confirm if we are going with my main solution? (moving the provider)
Ah yes, sorry. I think moving the component makes the most sense since it's a component associated with authenticated users. Thanks for checking.
Great, thanks for the confirmation. PR is ready.
Waiting to review the PR, thanks for handling it so far @jasperhuangg
@mountiny Bug is fixed in all the platforms but Desktop. Desktop does not have the correct build version.
https://platform.applause.com/services/links/v1/external/4f3f83c90fa54dbe7ff4691984edde71edefd6da9e238ea3414d49eab3cf4534 https://platform.applause.com/services/links/v1/external/a08ef70d6c97c6d745314b5b2ef9786c0b9fb23b6be3c2c2bb255007e15b446d
https://platform.applause.com/services/links/v1/external/72ebf3a8b4239a38df20870a8e42f0e536209ed2d8b8831a2c2edb630a6fcfcd https://platform.applause.com/services/links/v1/external/0bd5c0575b1498f4e4996700b6114144d631289b290a5ff431c4054cbeb4ef00
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.60-13 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-04-15. :confetti_ball:
For reference, here are some details about the assignees on this issue:
FYI this appeared on today's checklist as we forgot to remove the blocker label (I think I forgot to do that too when I marked it off this morning)
Current assignee @puneetlath is eligible for the Bug assigner, not assigning anyone new.
Thanks @kbecciv it was repro because the desktop build failed before
@puneetlath this will be ready for payment $500 to @bernhardoj and to @paultsimura
Sorry, to clarify, you're saying I should pay them now? Or on April 15th?
@puneetlath, @paultsimura, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Sorry, to clarify, you're saying I should pay them now? Or on April 15th?
On April 15th.
Not overdue, Melv.
Precondition:
Test:
Do we agree π or π
All paid. Thanks everyone!
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: 1.4.60-8 Reproducible in staging?: y Reproducible in production?: n If this was caught during regression testing, add the test name, ID and link from TestRail: Exploratory around https://expensify.testrail.io/index.php?/tests/view/4476067 Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
When user logs out and logs in with another account, the Recent section list will follow the data from the logged-in account.
Actual Result:
When user logs out from Account A and logs in with Account B, the Recent section list still shows the data from Account A.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/88148a79-aa20-46bc-80a2-7e4213422ec8
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlath