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-09] [$500] Profile pic gets removed in offline mode #27252

Closed
1 of 6 tasks
kavimuru opened this issue Sep 12, 2023 · 33 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 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Sep 12, 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
  2. change profile pic
  3. go to offline and wait for few seconds for the profile pic to disappear
  4. check the profile pic which does not have default avatar

Expected Result:

should show profile pic

Actual Result:

does not show profile pic

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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.68-12
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

Screen.Recording.2023-09-06.at.2.14.14.PM.mov
Recording.1580.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016669b07ea66a41c4
  • Upwork Job ID: 1702222829517451264
  • Last Price Increase: 2023-09-14
  • Automatic offers:
    • tienifr | Contributor | 26747630
    • gadhiyamanan | Reporter | 26747631
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

Triggered auto assignment to @laurenreidexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 12, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@jscardona12
Copy link
Contributor

Couldn't replicate on dev

@hungvu193
Copy link
Contributor

Disable cache is enabled, so it's not a bug.

@gadhiyamanan
Copy link
Contributor

@hungvu193 disable cache is not enabled in kavi's video

@hungvu193
Copy link
Contributor

@hungvu193 disable cache is not enabled in kavi's video

Can you reproduce without disable cache enable?

@bernhardoj
Copy link
Contributor

I can reproduce it. The issue will happen if the change avatar request is done (almost) at the same time as you turn off the internet connection. When the request is done, BE will give us a link to the avatar, but because we are offline and the image is not loaded yet, the fallback avatar is shown.

Before the request is done, we are using a local source to show the avatar

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Sep 14, 2023
@melvin-bot melvin-bot bot changed the title Profile pic gets removed in offline mode [$500] Profile pic gets removed in offline mode Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

Job added to Upwork: https://www.upwork.com/jobs/~016669b07ea66a41c4

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

@tienifr
Copy link
Contributor

tienifr commented Sep 14, 2023

Proposal

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

It does not show profile pic when the user uploads avatar then immediately turn on Offline mode.

What is the root cause of that problem?

As correctly highlighted by @bernhardoj here, this is because the Update Avatar API request is successful and we have the new source, however the Offline mode is turned on before that new source finish loading. So it's currently showing the gray icon as the fallback.

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

In here, we should set the fallbackSource as the file.uri as well. Then we pass the fallbackSource to the Avatar when we display it. If the source fails to load, and we have fallbackSource available, we'll display the fallbackSource rather than the gray icon.

This will make sure if the primary source of the avatar returned by BE fails to be loaded in offline mode, we'll show the local image that we already have available, rather than the gray one which is confusing to the user.

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2023
@laurenreidexpensify
Copy link
Contributor

@eVoloshchak what you think about proposal above?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 15, 2023
@laurenreidexpensify
Copy link
Contributor

bump @eVoloshchak

@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2023
@eVoloshchak
Copy link
Contributor

Was able to reproduce this, thanks @bernhardoj for the more accurate steps

@tienifr's proposal looks good to me
It's kind of an edge case and is hard to reproduce, but still worth fixing I think

🎀👀🎀 C+ reviewed!

@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@srikarparsi
Copy link
Contributor

Agree let's fix this, assigning you to the issue @tienifr!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 19, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 26, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @tienifr got assigned: 2023-09-19 05:56:31 Z
  • when the PR got merged: 2023-09-26 05:37:40 UTC
  • days elapsed: 4

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [$500] Profile pic gets removed in offline mode [HOLD for payment 2023-10-09] [$500] Profile pic gets removed in offline mode Oct 2, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

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 2, 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:

  • [@eVoloshchak] The PR that introduced the bug has been identified. Link to the PR:
  • [@eVoloshchak] 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:
  • [@eVoloshchak] 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:
  • [@eVoloshchak] Determine if we should create a regression test for this bug.
  • [@eVoloshchak] 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.
  • [@laurenreidexpensify] 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 and removed Weekly KSv2 Daily KSv2 labels Oct 9, 2023
@laurenreidexpensify
Copy link
Contributor

payment summary:

  • External issue reporter - @gadhiyamanan - $50, offer needs to be accepted in Upwork
  • Contributor that fixed the issue - @tienifr - $500, payment issued in Upwork
  • Contributor+ that helped on the issue and/or PR - @eVoloshchak - $500 please request payment in newdot

@laurenreidexpensify
Copy link
Contributor

@eVoloshchak please advise on steps above ^^

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Oct 11, 2023

@laurenreidexpensify offer accepted
this is eligible for $250 because it was reported before 30 august

image

@eVoloshchak
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: there isn't a PR that caused this, this is an edge case that is reproducible if lose connection at a specific time (after the image was uploaded, but before it can be downloaded from BE by the App)
  • 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: N/A
  • 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: I don't think an additional discussion is needed, this is an extreme edge case and we already have an item in the reviewer checklist to test for offline scenarios
  • Determine if we should create a regression test for this bug.
    This is an edge case that a few users would have ever encountered, so I don't think regression test is needed here

@JmillsExpensify
Copy link

$500 payment approved for @eVoloshchak based on BZ summary.

@laurenreidexpensify
Copy link
Contributor

laurenreidexpensify commented Oct 13, 2023

updated payment summary:

External issue reporter - @gadhiyamanan - $250, payment issued n Upwork
Contributor that fixed the issue - @tienifr - $500, payment issued in Upwork
Contributor+ that helped on the issue and/or PR - @eVoloshchak - $500 payment approved in newdot

@laurenreidexpensify
Copy link
Contributor

@gadhiyamanan updated ^^

@tienifr
Copy link
Contributor

tienifr commented Nov 1, 2023

Contributor that fixed the issue - @tienifr - $500, payment issued in Upwork

hi @laurenreidexpensify it seems payment wasn't issued for me yet, could you please take a look?

Thank you!

@tienifr
Copy link
Contributor

tienifr commented Nov 15, 2023

hi @laurenreidexpensify it seems payment wasn't issued for me yet, could you please take a look?

@laurenreidexpensify could you help check the above comment? Thanks!

@laurenreidexpensify
Copy link
Contributor

@tienifr huge apologies for the overlook here, the payment has been issued in Upwork now

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

No branches or pull requests

10 participants