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-09-04] Task -App becomes unresponsive when Assign Task to user that doesn't have a NewDot account yet #25688

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 22, 2023 · 16 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 22, 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. Navigate to staging.new.expensify.com
  2. Go to FAB > Assign Task > Enter title and description and navigate to next page
  3. Click on Assignee
  4. Enter a email that doesn't have a NewDot account yet
  5. Create the task

Expected Result:

Assignee should be added immediately and no errors should appears

Actual Result:

App becomes unresponsive when Assign Task to user that doesn't have a NewDot account yet
Page Unresponsive
You can wait for it to become responsive or exit the page

Workaround:

Unknown

Platforms:

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

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

Version Number: 1.3.56-0

Reproducible in staging?: Yes

Reproducible in production?: No

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

Bug6173285_Recording__776.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 22, 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 Aug 22, 2023

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

@marcochavezf
Copy link
Contributor

Seems we're entering an infinite loop after assigning the task

Screenshot 2023-08-22 at 13 56 22

@marcochavezf
Copy link
Contributor

We're calling multiple times componentDidUpdate in ReportScreen.js

Screen.Recording.2023-08-22.at.14.20.50.mov

I will need to step out for 1.5 hours approx, I will continue when I come back

@marcochavezf
Copy link
Contributor

The OpenReport and CreateTask are failing:

Screenshot 2023-08-22 at 19 09 20 Screenshot 2023-08-22 at 19 09 28

@marcaaron
Copy link
Contributor

Doing the repro steps for this is causing a crazy infinite loop that crashes the browser for me. Happens on both production API and staging API.

It's pretty bad. The app becomes unusable.

@marcaaron
Copy link
Contributor

marcaaron commented Aug 23, 2023

These three PRs are related to tasks:

#24506
#24412
#24566

Not sure if any of them are related to this regression. @Julesssss @arosiclair @luacmartins might have a better idea.

@marcaaron
Copy link
Contributor

FWIW, this flow doesn't actually work on production either cc @thienlnam

Assignee should be added immediately and no errors should appears

This is not what happens on production. I see this:

2023-08-23_09-32-18

And CreateTask throws an error about 400 Invalid accountID

@marcaaron
Copy link
Contributor

This issue appears to be resolved after applying the revert from here #25785

@melvin-bot

This comment was marked as off-topic.

@marcaaron
Copy link
Contributor

Chatting with @thienlnam.

Seems like if we are not going to revert the unread marker PR as per #25673 (comment) then we should do some other work around that prevents taking this action entirely when assigning a task.

It's not possible in the backend so I think seems like a "feature request" or polish step for Tasks.

@roryabraham
Copy link
Contributor

Confirmed that this is no longer reproducible on staging and that the PR worked. Removing the deploy blocker label and checking this off.

Should we create a follow-up to enable you to assign tasks to accounts that don't exist yet? I feel like that's more inline with how other flows such as New Chat work and is a viral growth flow.

@roryabraham roryabraham removed the DeployBlockerCash This issue or pull request should block deployment label Aug 24, 2023
@thienlnam
Copy link
Contributor

Yeah I can create a follow up PR - hasn't been a priority but a good polish item

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 28, 2023
@melvin-bot melvin-bot bot changed the title Task -App becomes unresponsive when Assign Task to user that doesn't have a NewDot account yet [HOLD for payment 2023-09-04] Task -App becomes unresponsive when Assign Task to user that doesn't have a NewDot account yet Aug 28, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.57-6 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-09-04. 🎊

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 melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 Daily KSv2 labels Sep 4, 2023
@marcaaron
Copy link
Contributor

This appears to be an internal effort (all) so I think we can close it.

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 Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

6 participants