Skip to content
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

[HOLD for payment 2023-08-08] [$1000] Dev: Web - Can't click plus button after leaving a room #23881

Closed
1 of 6 tasks
kbecciv opened this issue Jul 30, 2023 · 43 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@kbecciv
Copy link

kbecciv commented Jul 30, 2023

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:

  1. Login with any account.
  2. Create a new room.
  3. Leave the room.
  4. Click on plus button

Expected Result:

User can click plus button and it works as expected (show the context menu).

Actual Result:

User can't click plus button after leaving a room.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.47-5
Reproducible in staging?: n/a
Reproducible in production?: n/a
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

Screen.Recording.2023-07-30.at.09.03.39.mov

Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690682725357069

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017df576fd65e43186
  • Upwork Job ID: 1686101709086126080
  • Last Price Increase: 2023-07-31
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment Needs Reproduction Reproducible steps needed labels Jul 30, 2023
@OSBotify
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Jul 30, 2023

Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@getusha
Copy link
Contributor

getusha commented Jul 30, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

What is the root cause of that problem?

this is a regression from: #23528
the NoDropZone component, has a full screen width and prevents any events from passing to the LHN.

it will be rendered together based on the routes here:

When we click leave room and navigate to concierge the navigation route will be present, it will just push another new page without removing the Right modal navigator. hence the descriptor will be rendered inside NoDropZone

What changes do you think we should make in order to solve the problem?

To ensure that the NoDropZone component is not rendered when navigating to concierge, we should close the Right Modal Navigator before leaving. This is because the NoDropZone component only exists within the routes of the Right Modal Navigator. for example: we can just use Navigation.goBack just before leaveRoom.

What alternative solutions did you explore? (Optional)

Change the place where we add NoDropZone wrapper, to put it another suitable place.

@b4s36t4
Copy link
Contributor

b4s36t4 commented Jul 30, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Dev: Web - Can't click plus button after leaving a room

What is the root cause of that problem?

I think this is the regression coming from this PR -> #23528.

It also happens for threads as well, if we leave a thread we can't click anything on LHN menu.

Here we have implemented NoDrop component for RHN, but due the fact we're navigating inside the RHN when deleting a Thread/Room we're just navigating to the CONCIERGE screen here

function navigateToConciergeChat() {
and here as well
action: () => Report.leaveRoom(props.report.reportID),
.

If we observe the Navigation state we're still having the RHN in the navigation state even though we've been out of the RHN screens and the code here rendering NoDropZone

if (route.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
component to the RHN assuming it's still no closed.

What changes do you think we should make in order to solve the problem?

I feel if it's the last screen in RHN we should remove the navigation state from RHN.
For this current issue we can update the function here

function navigateToConciergeChat() {

to dismiss the modal before navigating any further to CONCIERGE report.

What alternative solutions did you explore? (Optional)

NA

@allroundexperts
Copy link
Contributor

We have a PR for this ready for review.

@Beamanator
Copy link
Contributor

I couldn't reproduce this exact issue, so closing

@Beamanator Beamanator removed the DeployBlockerCash This issue or pull request should block deployment label Jul 31, 2023
@getusha
Copy link
Contributor

getusha commented Jul 31, 2023

@Beamanator it's reproducible on main only.

@hungvu193
Copy link
Contributor

@Beamanator Still able to reproduce on latest main

@Beamanator Beamanator reopened this Jul 31, 2023
@Beamanator Beamanator added DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 and removed Daily KSv2 labels Jul 31, 2023
@Beamanator
Copy link
Contributor

Good call y'all, sorry i got too excited to close this out

@OSBotify
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@Beamanator
Copy link
Contributor

Def reproducible in main :D

@Beamanator Beamanator removed the Needs Reproduction Reproducible steps needed label Jul 31, 2023
@hungvu193
Copy link
Contributor

Thank you @joekaufmanexpensify , I've just accepted:smile:

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Aug 1, 2023

@joekaufmanexpensify i think this is not eligible for reporting bonus as this issue has same rca with #23885 and othe issue was reported first in slack

@joekaufmanexpensify
Copy link
Contributor

@Beamanator @allroundexperts It does look to me the PR here would probably fix the other issue too (which was reported first), but curious if y'all agree?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Aug 1, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Dev: Web - Can't click plus button after leaving a room [HOLD for payment 2023-08-08] [$1000] Dev: Web - Can't click plus button after leaving a room Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.48-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-08-08. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@Beamanator] The PR that introduced the bug has been identified. Link to the PR: Migrate DragNDrop #23589
  • [@Beamanator] 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: https://github.com/Expensify/App/pull/23589/files#r1290992254
  • [@Beamanator] 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: N/A
  • [@Beamanator] Determine if we should create a regression test for this bug.
  • [@Beamanator] 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.
  • [@joekaufmanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: N/A

@Beamanator
Copy link
Contributor

Assigning @allroundexperts since they completed this job 👍 (no C+ reviewer)

@joekaufmanexpensify
Copy link
Contributor

@Beamanator / @allroundexperts mind completing your portion of the BZ checklist here when you have a sec?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 8, 2023
@Beamanator
Copy link
Contributor

@allroundexperts mind taking care of the checklist here? 🙏

@allroundexperts
Copy link
Contributor

On it now!

@allroundexperts allroundexperts mentioned this issue Aug 11, 2023
58 tasks
@allroundexperts
Copy link
Contributor

Checklist

  1. Migrate DragNDrop #23589
  2. https://github.com/Expensify/App/pull/23589/files#r1290992254
    3 & 4. This was a regression from a PR that I had reviewed and was caught on dev environment (almost immediately after merging). The code did not even hit staging. As such, I don't think that a slack discussion or a regression test is needed here.

@allroundexperts
Copy link
Contributor

@Beamanator @allroundexperts It does look to me the PR here would probably fix the other issue too (which was reported first), but curious if y'all agree?

That's correct @joekaufmanexpensify!

@joekaufmanexpensify
Copy link
Contributor

Thanks! BZ checklist is complete.

@joekaufmanexpensify
Copy link
Contributor

Okay, we chatted about this internally, and for fairness purposes, we decided @gadhiyamanan should actually receive the reporting bonus here, since they reported a bug with the same root cause, prior to this one being reported.

With that in mind, I'm going to send @gadhiyamanan a $250 reporting bonus offer here.

@hungvu193 I'm going to close your Upwork job, and request a $250 escrow refund for the job (since the $250 won't be paid out). We appreciate you reporting the bug in this issue! But paying out the first reporter for the bug's root cause is the best path forward to ensure a fair standard for how we handle bug reports.

Let me know if anyone has any questions!

@hungvu193
Copy link
Contributor

Okay, we chatted about this internally, and for fairness purposes, we decided @gadhiyamanan should actually receive the reporting bonus here, since they reported a bug with the same root cause, prior to this one being reported.

With that in mind, I'm going to send @gadhiyamanan a $250 reporting bonus offer here.

@hungvu193 I'm going to close your Upwork job, and request a $250 escrow refund for the job (since the $250 won't be paid out). We appreciate you reporting the bug in this issue! But paying out the first reporter for the bug's root cause is the best path forward to ensure a fair standard for how we handle bug reports.

Let me know if anyone has any questions!

Thanks for explaining Joe. Please request a refund 😄

@joekaufmanexpensify
Copy link
Contributor

Of course!

@joekaufmanexpensify
Copy link
Contributor

@gadhiyamanan offer sent for $250!

@gadhiyamanan
Copy link
Contributor

@joekaufmanexpensify offer accepted, thanks

@joekaufmanexpensify
Copy link
Contributor

@hungvu193 contract ended with no payment!

@joekaufmanexpensify
Copy link
Contributor

@gadhiyamanan $250 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

Upwork job closed.

@joekaufmanexpensify
Copy link
Contributor

Reporting was the only payment needed here. So this is now all set. Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests