-
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-10-16] [$500] Attachment - Red error message appears briefly when closing password protected PDF #28195
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Job added to Upwork: https://www.upwork.com/jobs/~01b3fbc4b9a33f9413 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @NicMendonca ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Proposal by: @namhihi237 ProposalPlease re-state the problem that we are trying to solve in this issue.Error message appears briefly after closing password-protected PDF, It also when we click download What is the root cause of that problem?We call the function check error when blur input: App/src/components/PDFView/PDFPasswordForm.js Line 129 in 5217721
In the function validateAndNotifyPasswordBlur we call validate function. That means when we click outside the input> it will tricker and show an error.App/src/components/PDFView/PDFPasswordForm.js Lines 98 to 101 in 5217721
App/src/components/PDFView/PDFPasswordForm.js Lines 81 to 89 in 5217721
What changes do you think we should make in order to solve the problem?I think we can remove validation when blur input. We only check when click confirm. What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.We have 2 bugs:
Screen.Recording.2023-09-26.at.17.09.37.movWhat is the root cause of that problem?App/src/components/PDFView/PDFPasswordForm.js Lines 98 to 102 in 3486648
This function will be triggered, even though user click on close button or put app in background What changes do you think we should make in order to solve the problem?We should trigger the validate function on blur only when the current app is visible and has focus. And then we can use setTimeOut to delay validation like this
This is the way we did in Form Component and used in many places Line 301 in 4af18f6
resultScreen-Recording-2023-09-26-at-17.06.09.mp4 |
I'm leaning towards @namhihi237's proposal here as there isn't really any need to validate on blur in this case as we just have a single input (it also fixes the issue @DylanDylann mentions where the error shows when the app is put in the background). The alternative would be to refactor 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I'm removing my assignment as BZ and leaving this with Nicole as part of my preparation for Sabbatical (starting Friday). Next steps:
|
@NicMendonca, @jjcoffee, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@namhihi237 can you leave a message in this GH issue so I can assigned it to you 🙏 |
Thanks @aldo-expensify |
@aldo-expensify i think the validation when blurring is a feature. Could we verify that before moving forward? |
@DylanDylann thanks for prompting me to check again. Looking at the problem again, this doesn't feel like a bug to me, it is just the validation validating correctly when the focus is lost from the input. I think we should just close this. |
I'm going to ask for a second opinion on slack, but my vote for now is :donothing cc @NicMendonca |
Good point |
Ok, lets continue with @namhihi237 proposal. It makes the code simpler and will work good enough. Introducing Thanks @DylanDylann for raising questions about considering other approaches and investigating, but I think we are at a good point to make the decision and stop spending more time on this. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
🎯 ⚡️ Woah @jjcoffee / @namhihi237, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.79-5 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-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.
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:
|
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:
|
@jjcoffee bump on the BZ check list ^ |
everyone has been paid 🎉 @jjcoffee @namhihi237 |
|
all set here then! |
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:
Action Performed:
Expected Result:
No error message after close
Actual Result:
Error message appears briefly after closing password protected PDF
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.74.0
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-24.at.17.24.22.mov
Recording.4771.mp4
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695551022734439
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: