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-15] [$1000] Android - Request money - Different app behavior when asking for camera permission in Scan receipt #24160

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 4, 2023 · 47 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 4, 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 staging.new.expensify.com
  2. Go to any chat
  3. Tap + button > Add attachments > Take photo
  4. Return to LHN
  5. Click + button > Request Money > Scan
  6. Tap on the capture button

Expected Result:

The app should ask for camera permission the same way it asks for permission when adding attachments by taking photo

Actual Result:

In Step 3, the app asks for camera permission via pop-up
In Step 6, the app shows error message when tapping on the capture button. User is required to go to app settings to manually allow camera permission via Give permission CTA

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.50.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

Bug6153015_Screen_Recording_20230804_035156_New_Expensify.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0142d61bc15de5a06b
  • Upwork Job ID: 1687482269732622336
  • Last Price Increase: 2023-08-24
  • Automatic offers:
    • tienifr | Contributor | 26331513
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 4, 2023
@OSBotify
Copy link
Contributor

OSBotify commented Aug 4, 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 Aug 4, 2023

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

@Beamanator Beamanator added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 4, 2023
@Beamanator
Copy link
Contributor

Receipt scanning is under beta so not a deploy blocker - but @AndrewGable it looks like this is something you've been working on recently, maybe you can take over for max?

@hungvu193
Copy link
Contributor

hungvu193 commented Aug 4, 2023

We're opening the setting here instead of request the permission for Android:

onPress: () => Linking.openSettings(),

I think we should use request permission for camera instead of open setting:

export default function launchCameraAndroid(options, callback) {
// Checks current camera permissions and prompts the user in case they aren't granted
PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.CAMERA)
.then((permission) => {
if (permission !== PermissionsAndroid.RESULTS.GRANTED) {
const error = new Error('User did not grant permissions');
error.errorCode = 'permission';
throw error;
}
launchCamera(options, callback);
})
.catch((error) => {
/* Intercept the permission error as well as any other errors and call the callback
* follow the same pattern expected for image picker results */
callback({
errorMessage: error.message,
errorCode: error.errorCode || 'others',
});
});
}

@AndrewGable AndrewGable assigned AndrewGable and unassigned madmax330 Aug 4, 2023
@AndrewGable
Copy link
Contributor

Yeah I'll handle this 👍

@AndrewGable AndrewGable added Internal Requires API changes or must be handled by Expensify staff and removed Daily KSv2 labels Aug 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0142d61bc15de5a06b

@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @mananjadhav (Internal)

@mananjadhav
Copy link
Collaborator

@AndrewGable Been more than a few days since we've added an update. But curious, any specific reason we didn't set this External?

@AndrewGable
Copy link
Contributor

It's a weekly issue so you can expect an update once a week. I introduced the bug so I want to fix it.

@mananjadhav
Copy link
Collaborator

thanks for the comment.

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2023
@AndrewGable
Copy link
Contributor

Looking into if we can handle this via vision camera or not.

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2023
@AndrewGable AndrewGable added External Added to denote the issue can be worked on by a contributor and removed Internal Requires API changes or must be handled by Expensify staff labels Aug 24, 2023
@melvin-bot melvin-bot bot changed the title Android - Request money - Different app behavior when asking for camera permission in Scan receipt [$1000] Android - Request money - Different app behavior when asking for camera permission in Scan receipt Aug 24, 2023
@tjferriss
Copy link
Contributor

I'm not sure why the checklist didn't show up here. @mananjadhav can you please get started on this?

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:

  • @mananjadhav The PR that introduced the bug has been identified. Link to the PR:
  • @mananjadhav 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:
  • @mananjadhav 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:
  • @mananjadhav Determine if we should create a regression test for this bug.
  • @mananjadhav 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.
  • @mananjadhav 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 Sep 14, 2023
@tjferriss
Copy link
Contributor

@tienifr has been paid via Upworks. @mananjadhav can you please get started on the checklist?

@melvin-bot melvin-bot bot removed the Overdue label Sep 16, 2023
@mananjadhav
Copy link
Collaborator

mananjadhav commented Sep 17, 2023

@tjferriss Can you please post a payment summary so that I can raise the payment request?

This was introduced when we added the component in this PR. This was a large PR and I think it was easy to miss the permissions. I've added a comment here.

I don't think we need any regression test here.

@tgolen
Copy link
Contributor

tgolen commented Sep 21, 2023

Bump @tjferriss

@melvin-bot melvin-bot bot removed the Overdue label Sep 21, 2023
@mananjadhav
Copy link
Collaborator

I also believe this is eligible for the timeline bonus? This was waiting for merge freeze but the C+ checklist was completed within the timeline.

@melvin-bot melvin-bot bot added the Overdue label Sep 25, 2023
@tjferriss
Copy link
Contributor

I'm not sure it fits the timeline bonus, even with the feature freeze consideration. I see @tienifr was assigned on 8/26 and then I see your reviewer checklist comment on 9/1.

Payment Summary:

Reporter: NA
Contributor: @tienifr $1000
Contributor+: @mananjadhav $1000

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2023
@mananjadhav
Copy link
Collaborator

You're right @tjferriss. I don't know why I thought this was eligible. I just verified the assignment was on 8/26. Thanks for clarifying.

@tjferriss
Copy link
Contributor

@mananjadhav have you raised the payment request?

@mananjadhav
Copy link
Collaborator

Yes @tjferriss I've done that.

@JmillsExpensify
Copy link

$1,000 payment approved for @mananjadhav based on BZ summary.

@melvin-bot melvin-bot bot added the Overdue label Sep 28, 2023
@tgolen
Copy link
Contributor

tgolen commented Sep 29, 2023

Just waiting for payouts it looks like

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

@tgolen, @AndrewGable, @mananjadhav, @tjferriss, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@mananjadhav
Copy link
Collaborator

@tjferriss @tienifr can you confirm if the payout is done here?

@melvin-bot melvin-bot bot removed the Overdue label Oct 2, 2023
@tienifr
Copy link
Contributor

tienifr commented Oct 2, 2023

@tjferriss @tienifr can you confirm if the payout is done here?

It was for me. I'm not sure about others.

@mananjadhav
Copy link
Collaborator

@tjferriss @AndrewGable @tgolen I think we can close this one.

@tgolen
Copy link
Contributor

tgolen commented Oct 2, 2023

OK, I'll go ahead and close it out.

@tgolen tgolen closed this as completed Oct 2, 2023
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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests