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-10-12] [HOLD for payment 2023-10-10] [$250] Settings - Green dot appears even though there is no Contact methods #28643

Closed
6 tasks done
kbecciv opened this issue Oct 2, 2023 · 32 comments
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 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Oct 2, 2023

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. Go to Settings > Profile >Contact methods

Expected Result:

Green dot should not show

Actual Result:

Green dot appears even though there is no Contact methods

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: 1.3.76.0
Reproducible in staging?: y
Reproducible in production?: n
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_20231002_163934_Chrome.mp4
Screen.Recording.2023-10-02.at.4.32.16.PM.1.mov
Screen.Recording.2023-10-02.at.4.28.38.PM.1.mov
Screen.Recording.2023-10-02.at.4.32.16.PM.mov
Screen_Recording_20231002_144610_New.Expensify.mp4
RPReplay_Final1696311735.MP4
RPReplay_Final1696311670.MP4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01932d440331606ba1
  • Upwork Job ID: 1709131206782132224
  • Last Price Increase: 2023-10-03
  • Automatic offers:
    • situchan | Contributor | 26995000
    • gadhiyamanan | Reporter | 26995001
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Oct 2, 2023
@OSBotify
Copy link
Contributor

OSBotify commented Oct 2, 2023

👋 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 Oct 2, 2023

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

@saranshbalyan-1234
Copy link
Contributor

Proposal

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

Getting green dot even there is no contact method.

What is the root cause of that problem?

function hasLoginListInfo(loginList: Login): boolean {
return !loginList.validatedDate;
}

In this function we are checking for validatedDate although loginList is a list (array), so the property is not directly accessible which results to undefined and ultimately return true due to !

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

We can return this instead of loginList.validatedDate;

   return !Object.values(loginList).every((field) => field.validatedDate);

What alternative solutions did you explore? (Optional)

N/A

@mountiny
Copy link
Contributor

mountiny commented Oct 2, 2023

@saranshbalyan-1234 reminder for any deploy blockers, always link the offending PR. Thanks

@marcaaron
Copy link
Contributor

I currently cannot sign into staging to verify this. Probably related to the site instability. I will try again in a bit.

@marcaaron
Copy link
Contributor

Though it looks like this is the PR where it was introduced:

https://github.com/Expensify/App/pull/27778/files

2023-10-02_10-20-20

@marcaaron
Copy link
Contributor

cc @blazejkustra - but I'm guessing we did not intend to change the signature here and just got tripped up by the wrong type.

@mountiny
Copy link
Contributor

mountiny commented Oct 2, 2023

Blazej wont get online for next probably 8-10 hours, can we proactively revert the PR if we confirm this fixes the blocker? @marcaaron thanks!

@marcaaron
Copy link
Contributor

it's probably easier to just fix it. but you are the deployer so lmk how you want to proceed.

@marcaaron
Copy link
Contributor

Oh I see you meant just for TESTING haha I have a branch here. ✈️ LAG

@marcaaron
Copy link
Contributor

#28668

@marcaaron
Copy link
Contributor

Yes it's that PR.

@aldo-expensify
Copy link
Contributor

@mountiny @marcaaron I see that a revert was created, but not merged yet. I'm starting my day. Do you want to continue with the revert? I can also work on quick fix if we think it is better than reverting.

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Oct 3, 2023

Left a PR here in case we want to fix instead of revert: #28686, feel free to ignore if you think it is safer to just revert

@mountiny
Copy link
Contributor

mountiny commented Oct 3, 2023

If we got fix that is better, thank you everyone ❤️ going to review

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment labels Oct 3, 2023
@mountiny mountiny changed the title [$500] Settings - Green dot appears even though there is no Contact methods [$250] Settings - Green dot appears even though there is no Contact methods Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

Upwork job price has been updated to $250

@mountiny mountiny assigned situchan and unassigned mananjadhav Oct 3, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

📣 @situchan 🎉 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 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

📣 @gadhiyamanan 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@mountiny
Copy link
Contributor

mountiny commented Oct 3, 2023

@trjExpensify the payments here are $250 to @situchan for deploy blocker PR review and $50 to @gadhiyamanan for reporting

@trjExpensify
Copy link
Contributor

Sounds good! 👍

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Oct 3, 2023
@melvin-bot melvin-bot bot changed the title [$250] Settings - Green dot appears even though there is no Contact methods [HOLD for payment 2023-10-10] [$250] Settings - Green dot appears even though there is no Contact methods Oct 3, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

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

@melvin-bot

This comment was marked as duplicate.

@melvin-bot

This comment was marked as duplicate.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 5, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-10] [$250] Settings - Green dot appears even though there is no Contact methods [HOLD for payment 2023-10-12] [HOLD for payment 2023-10-10] [$250] Settings - Green dot appears even though there is no Contact methods Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.77-7 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-10-12. 🎊

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

For reference, here are some details about the assignees on this issue:

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 Oct 5, 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:

  • [@situchan] The PR that introduced the bug has been identified. Link to the PR:
  • [@situchan] 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:
  • [@situchan] 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:
  • [@situchan] Determine if we should create a regression test for this bug.
  • [@situchan] 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.
  • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 10, 2023
@marcaaron
Copy link
Contributor

@situchan I think we are waiting for the checklist items to be completed here

@melvin-bot melvin-bot bot removed the Overdue label Oct 10, 2023
@situchan
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: [No QA][TS migration] Migrate 'UserUtils.js' lib to TypeScript #27778
  • 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/27778/files#r1343470914
  • 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
  • Determine if we should create a regression test for this bug.
  • 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.

This bug should have been caught earlier during PR review if they fully tested their code changes.
Now that C+ is able to review TS migration PRs, there will be less chance of having this kind of regression.
As such, I don't propose regression test.

@trjExpensify
Copy link
Contributor

Nice, thanks! Confirming payments as follows from here.

@situchan $250 for the DB PR review
@gadhiyamanan $50 for the bug report.

Settled up, and closing!

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

No branches or pull requests

9 participants