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-02-23] [$1000] Allow avatar image uploads: bmp on iOS #15035

Closed
1 of 6 tasks
Beamanator opened this issue Feb 10, 2023 · 25 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 External Added to denote the issue can be worked on by a contributor

Comments

@Beamanator
Copy link
Contributor

Beamanator commented Feb 10, 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. Upload .bmp image as avatar on iOS

Expected Result:

The image should upload no problem, and is converted to jpg file type

Actual Result:

iOS throws errors when uploading BMP

Note: Some investigation was done #12549 (comment), indicating this may be a problem with a library we use, RNImageManipulator

Workaround:

Yes, just can't upload this file type on iOS devices

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: Latest
Reproducible in staging?: Y
Reproducible in production?: Y

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d9fdd76b47328f10
  • Upwork Job ID: 1623995536797614080
  • Last Price Increase: 2023-02-10
@Beamanator Beamanator added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 10, 2023
@MelvinBot
Copy link

Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 10, 2023
@MelvinBot
Copy link

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

@Beamanator Beamanator added External Added to denote the issue can be worked on by a contributor Engineering labels Feb 10, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 10, 2023
@melvin-bot melvin-bot bot changed the title Allow avatar image uploads: bmp on iOS [$1000] Allow avatar image uploads: bmp on iOS Feb 10, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~01d9fdd76b47328f10

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

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

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

@Beamanator
Copy link
Contributor Author

@Santhosh-Sellavel there's already some proposals in this issue: #14751

I created this one to track the iOS fix, while the old issue used to track both but will now only track the Android fix

@s77rt
Copy link
Contributor

s77rt commented Feb 10, 2023

Proposal

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

Uploading bmp images on iOS fails

What is the root cause of that problem?

This is a bug in react-native-image-picker where it fails to detect .bmp files as images.

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

Update react-native-image-picker once this PR gets merged.

What alternative solutions did you explore? (Optional)

None

@Santhosh-Sellavel
Copy link
Collaborator

@s77rt Proposal sound's good to me, let's wait and hear from the maintainer

cc: @Beamanator

@Santhosh-Sellavel
Copy link
Collaborator

Bumped the maintainer, and they responded hopefully we would get reviewed this weekend, else let's follow up next week!

@melvin-bot melvin-bot bot added the Overdue label Feb 13, 2023
@trjExpensify
Copy link
Contributor

Awaiting a review of the PR upstream. Let's reach back out in a couple of days.

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2023
@s77rt
Copy link
Contributor

s77rt commented Feb 13, 2023

The upstream PR has been merged 🎉

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 13, 2023
@MelvinBot
Copy link

📣 @s77rt You have been assigned to this job by @Beamanator!
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 📖

@Beamanator
Copy link
Contributor Author

Wow that's great the maintainers are quick & have already merged the fix!! 🚀

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Feb 13, 2023
@s77rt
Copy link
Contributor

s77rt commented Feb 13, 2023

Applied in Upwork.
PR is ready.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Feb 16, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Allow avatar image uploads: bmp on iOS [HOLD for payment 2023-02-23] [$1000] Allow avatar image uploads: bmp on iOS Feb 16, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 16, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Feb 16, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.72-1 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-02-23. 🎊

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

@MelvinBot
Copy link

MelvinBot commented Feb 16, 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:

  • [@Santhosh-Sellavel / @Beamanator] The PR that introduced the bug has been identified. Link to the PR:
  • [@Santhosh-Sellavel / @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:
  • [@Santhosh-Sellavel / @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:
  • [@s77rt] Propose 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:

@s77rt
Copy link
Contributor

s77rt commented Feb 16, 2023

Regression Test Proposal

  1. Login to any account
  2. Go to Settings -> Profile
  3. Upload a .bmp image as avatar
  4. Verify that the image is uploaded with success

@trjExpensify
Copy link
Contributor

Okay, we're ready for payment here. Sent the following offers:

@trjExpensify
Copy link
Contributor

[@Santhosh-Sellavel / @Beamanator] The PR that introduced the bug has been identified. Link to the PR:
[@Santhosh-Sellavel / @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:
[@Santhosh-Sellavel / @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:

Any thoughts on these @Santhosh-Sellavel @Beamanator? This was a bug upstream, right?

@trjExpensify
Copy link
Contributor

As for the regression test.. I'm not convinced we need to test BMP on iOS specifically really on every regression run. It's primarily a windows based format, isn't it? Given that, I'm voting we don't proceed with adding it to the test suite. Let me know what you think!

@Santhosh-Sellavel
Copy link
Collaborator

Yeah, it was an upstream bug. we can check the first 3 off as N/A. Let me know your thoughts @Beamanator

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 23, 2023
@trjExpensify
Copy link
Contributor

Dope. Settled up with everyone!

@trjExpensify
Copy link
Contributor

@Beamanator if you happen to disagree that a regression test for BMP on iOS is not needed, feel free to reopen.

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

5 participants