-
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
[$500] Web - User can still access attachment thread after left the thread #27427
Comments
Triggered auto assignment to @adelekennedy ( |
Job added to Upwork: https://www.upwork.com/jobs/~0137f77b386e8c8eb4 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @garrettmknight ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Proposed solutionPlease re-state the problem that we are trying to solve in this issue.User can still access attachment thread after they leave the the thread. What is the root cause of that problem?**In We see the What changes do you think we should make in order to solve the problem?**
What alternative solutions did you explore? (Optional)none |
ProposalPlease re-state the problem that we are trying to solve in this issue.I believe that a user shouldn't be prevented from accessing a thread, even if they leave it. A thread is a part of a chat, and if user has access to a chat they should be able to access any thread in that chat. Based on this assumption, I think the problem to solve is that the What is the root cause of that problem?We clear the report object when a user leaves a thread and when the user visits the same thread report again, the empty report object causes the ReportScreen to show the 'Hmm.. its not there' message momentarily until the API call for What changes do you think we should make in order to solve the problem?In ReportScreen here, update the // pseudocode
const isLoading = !reportID || _.isEmpty(report) || !isSidebarLoaded || _.isEmpty(personalDetails) || firstRenderRef.current; When the What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.The written issue is, that the user can access the same thread after leaving it, but in my opinion, that is expected. I agree with @huzaifa-99 that the real issue is, that rejoining the same thread shouldn't show the not found page but should show skeletons. What is the root cause of that problem?When we leave a thread, we clear the report data from onyx. App/src/libs/actions/Report.js Lines 1794 to 1812 in 63a5776
In App/src/pages/home/ReportScreen.js Lines 303 to 304 in 62b8e71
When we rejoin the same thread, App/src/libs/actions/Report.js Lines 407 to 413 in 63a5776
App/src/pages/home/ReportScreen.js Line 365 in 62b8e71
What changes do you think we should make in order to solve the problem?Clear the report actions optimistically when leaving a thread and revert it when the request fails.
so when joining the thread again, we will reload the report actions too, and thus show the skeletons. note: this solution currently doesn't work because we have an onyx issue where setting null doesn't clear the data. |
@eVoloshchak please review the above |
@eVoloshchak review on the above please |
Is this bug still present? Screen.Recording.2023-09-21.at.14.46.22.mov |
It is fixed in #26602 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@adelekennedy, could you close this one, please? It was resolved by another PR |
I think just the reporting bonus is due in that case |
asked in Slack |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
It should be showing a skeleton after user left the tread
Actual Result:
User can still access attachment thread after left the thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.67-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
2023-09-11.22-20-43.mp4
Recording.4455.mp4
Expensify/Expensify Issue URL:
Issue reported by: @niatania102
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694446243712749
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: