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 2022-02-08] Web - JS Console error appears when clicking user name #7293

Closed
kavimuru opened this issue Jan 18, 2022 · 19 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Start a chat with a user.
  2. Click on your avatar in the chat and verify that no Message button is visible.
  3. Now click on another user's avatar and verify that the Message button is visible and clicking it opens the chat with that user.
  4. Check the JS console

Expected Result:

Verify that no errors appear in the JS console

Actual Result:

Errors appeared in the JS console

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: v1.1.30-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5412535_Screen_Shot_2022-01-18_at_2 50 42_PM

Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:

View all open jobs on GitHub

@MelvinBot
Copy link

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

@kavimuru kavimuru changed the title Web - Console error appears when clicking user name Web - JS Console error appears when clicking user name Jan 18, 2022
@cead22 cead22 removed their assignment Jan 19, 2022
@cead22 cead22 added Improvement Item broken or needs improvement. Demolition and removed Improvement Item broken or needs improvement. labels Jan 19, 2022
@MelvinBot
Copy link

Triggered auto assignment to @puneetlath (Demolition), see https://stackoverflow.com/c/expensify/questions/8099 for more details.

@cead22
Copy link
Contributor

cead22 commented Jan 19, 2022

Oh hmmm I reproduced and added the Demolition label but on second thought, I think it's possible that external contributor can fix this. @puneetlath Do you want to take a stab at this or should I label External? The error message says

Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.

But I honestly don't know if it's that easy

@sig5
Copy link
Contributor

sig5 commented Jan 19, 2022

Proposal (If labelled external )

There is an upstream change, where in react-native@0.65.0 they deprecated the old api in favour of a more terse name, so removeListener() becomes remove().

This error is shown because we are using an outdated version of react-native-modal.

Related issue: The issue has been solved in version 13.0.0 of the dependency.
So merely upgrading this dependency to 13.0.0 resolves the issue.
Link to the release with breaking changes: https://github.com/react-native-modal/react-native-modal/releases/tag/v13.0.0

Since we are already on react-native 0.66.4, there should be no issues with the upgrade.

@puneetlath
Copy link
Contributor

@cead22 let's go external.

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Jan 19, 2022
@MelvinBot
Copy link

Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new.

@puneetlath
Copy link
Contributor

@botify botify removed the Daily KSv2 label Jan 19, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Jan 19, 2022
@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (Exported)

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 19, 2022
@MelvinBot
Copy link

Current assignee @puneetlath is eligible for the Exported assigner, not assigning anyone new.

@rushatgabhane
Copy link
Member

🎀👀🎀 C+ reviewed

Coming from #6914

We should follow-up with an issue to upgrade react-native-modal because it's throwing errors due to the deprecated removeEventListener function. This has been fixed in their latest version.

I like @sig5's proposal. After reading the changelog, I don't think it'll break anything and should fix this issue.

cc: @puneetlath

@puneetlath
Copy link
Contributor

Agreed, seems like a straightforward solution.

@MelvinBot
Copy link

📣 @sig5 You have been assigned to this job by @puneetlath!
Please apply to this job in Upwork 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 📖

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 20, 2022
@puneetlath
Copy link
Contributor

@sig5 how is this going?

@MelvinBot MelvinBot removed the Overdue label Jan 31, 2022
@sig5
Copy link
Contributor

sig5 commented Jan 31, 2022

Hi Puneet, this has been merged here to staging. I can't reproduce the issue on staging. So I think it works as expected.
#7333 (comment)

@puneetlath
Copy link
Contributor

Lol whoops. Totally missed that. In spite of me being the one who merged the PR 🤦🏾. Thanks!

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 1, 2022
@botify botify changed the title Web - JS Console error appears when clicking user name [HOLD for payment 2022-02-08] Web - JS Console error appears when clicking user name Feb 1, 2022
@botify
Copy link

botify commented Feb 1, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.33-3 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 2022-02-08. 🎊

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@puneetlath
Copy link
Contributor

Paid!

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 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants