-
Notifications
You must be signed in to change notification settings - Fork 3k
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-05-16] [$500] DEV : Console error on not allowing camera access permissions. Error during attachment selection: User did not grant permissions #17876
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~016c0dd6ef40ed6cfe |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @marcochavezf ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error: Error during attachment selection: User did not grant permissions What is the root cause of that problem?The issue is from here
What changes do you think we should make in order to solve the problem?We should not log the error if it's a permission/user-cancel issue since it's a valid and normal app use case. We can log error in other cases aside from permission/user-cancel issue. This can be done by
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.In this issue, we can notice that in the android app, when the user does not grant the permission, a popup is shown letting the user know that the permission is necessary. In dev however, along with the popup, an error is also shown which serves no real purpose and can be annoying. What is the root cause of that problem?Here, we can see that when an error occurs, we return that error to show a popup with a specific message. App/src/components/AttachmentPicker/index.native.js Lines 193 to 204 in 0763be5
When there is a permission error, we show the alert using the What changes do you think we should make in order to solve the problem?I suggest that when there is only a permission error, we directly What alternative solutions did you explore? (Optional)None |
I can make your app to the app don't ask camera permission. |
📣 @zhanghui19880625! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
I don't think this is worth fixing. This is dev-only log and doesn't affect production users. |
it’s quite disruptive though, it shows a huge error screen, causing panic even though it’s not really an “error”. |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hey @zhanghui19880625, I appreciate your interest in this issue! We have some guidelines to follow regarding start contribute to this repo. You can start with this CONTRIBUTING.md and see how the others submit their proposal. For the others, I'm asking about this issue internally if we still want to fix it. |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
I think the dev warnings should not be for $1000 usually, I will decrease the price tag to $500 for this one and no bonus |
Upwork job price has been updated to $500 |
@mollfpr any thoughts on the proposals above? |
@tienifr @Prince-Mendiratta Why do we need to |
@mollfpr I think it's because we want to log the error here
The
The other errors are valid errors and should be logged to get noticed. If by any chance we don't want to log it then can just remove this line
|
Thanks @tienifr that make sense to me!
@tienifr Where should we put |
@mollfpr I've linked the permalink for where we put in in the original proposal, we should add it below the line in the permalink (below the |
@marcochavezf are good with @mollfpr's recommendation? If so can you assign @tienifr to the issue? |
📣 @tienifr You have been assigned to this job by @marcochavezf! |
The PR is ready for review #18126! |
@marcochavezf, @mollfpr, @flaviadefaria, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue, PR deployed to staging. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 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-05-16. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Coming from this comment:
@mollfpr $500 |
There's no offending PR to this since it's not a bug but an improvement on the DEV, where it's a bit annoying and we don't need the console error for that.
I don't think we need one, the console error is not showing in the production release. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
No console error
Actual Result:
Console error: Error during attachment selection: User did not grant permissions]
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?
Version Number:

Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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
Expensify/Expensify Issue URL:
Issue reported by: @aneequeahmad
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682243797613429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: