-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-22] [$1000] Large pdf files are allowed to be dragged multiple times and the preview automatically opens up the second time unlike the smaller pdf files and images #18210
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
I am unable to reproduce this |
Somewhat curiously I was unable to reproduce this when testing with the IELTS file but could reproduce this with the "Power of your subconscious" file |
I think we should not allow the second "large" file to be uploaded/queued for preview and the behavior should copy the "small" file upload where you cannot drag and drop a second file on a file upload preview.. curious what the engineer and C+ assigned feels with regards to that! |
Job added to Upwork: https://www.upwork.com/jobs/~017d5dc9ec54d81805 |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @thienlnam ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Dragging a large PDF attachment to the report when a preview of the PDF attachment is already being displayed results in the PDF being uploaded twice. What is the root cause of that problem?There are no checks to prevent a file from being dropped in the
What changes do you think we should make in order to solve the problem?Add a state variable to the Here is a quick summary of steps to achieve this. All changes will be made in
What alternative solutions did you explore? (Optional)Alternatively, using the The original approach is recommended because if a file is dropped while the attachment modal is open, the drop action is simply ignored and the user can proceed to upload or cancel the currently displayed attachment from the preview. |
@akinwale why can't we just use the disabled prop on DragNDrop component? |
That can be used also. We can change the |
What is the difference? Using Which one do you suggest & why? |
It would be better to go with my original proposal because it's terrible UX for a user to be navigated away from the page when they drop a file, expecting that the current page should be able to handle the drop behaviour seamlessly without losing their currently open chats / workspace. To highlight the differences. Using |
Proposal@parasharrajat I have updated my proposal with additional details. Please have a look. Thanks. |
Ok, I think we can go with the original proposal. But we will have to make sure that the user is seeing a no-drop icon on the cursor while dropping for this issue. @akinwale's proposal looks good to me. cc: @thienlnam 🎀 👀 🎀 C+ reviewed |
@parasharrajat This would require a lot of refactoring because the |
Can you propose here what is needed to make the no-drip cursor so that I can review? |
@parasharrajat I did some testing and based on my findings, the refactor may not be as much as initially thought. The following changes will need to be made to
Here's what the changes would look like.
|
Ok, let's leave this part. I don't think it is very necessary to add a blocking cursor over the AttachmentModal. |
@akinwale, @parasharrajat, @thienlnam, @MitchExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR is merged, switching to weekly - Added a calendar reminder for payment 👍 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Noting there was a regression from this PR so we should adjust the rewards accordingly |
@akinwale @parasharrajat @thienlnam @MitchExpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.13-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-05-22. 🎊 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:
|
Everyone's paid! Thanks again @parasharrajat if you could identify the PR that introduced the bug as a next step, that'd be great! |
This is a new find. We never prevented such behavior in the past so it is not a regression. [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: NA [@parasharrajat] 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: NA [@parasharrajat] 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: NA [@parasharrajat] Determine if we should create a regression test for this bug. YES [@parasharrajat] 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. |
Received $1500, thanks. This includes the 50% bonus, but there was a regression with my PR which caused a deploy blocker. Considering this falls within the regression period according to the contributor guide, I shouldn't have received this bonus. Is there an exception here or is there anything I need to do? |
Regression Test Steps
Do you agree 👍 or 👎 ? |
Seems that we've missed a regression deduction |
Gahhh, my mistake on the overpayment. I believe there is a refund feature in Upwork. Mind checking that out for me @akinwale @parasharrajat ? Sorry about that, I appreciate the catch |
Refunded $500. |
Thank you both! Request the test be added here https://github.com/Expensify/Expensify/issues/286533 |
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:
Expected Result:
Either both the large and small pdfs should be allowed to be dragged multiple times even when the preview for the previous pdf is open OR none of them should be allowed to be dragged and be uploaded on the second time
Actual Result:
Large pdf files are allowed to be dragged multiple times and the preview automatically opens up the second time unlike the smaller pdf files and images
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: 1.3.8.8
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
Recording.175.mp4
pdf-2023-04-29_20.37.10.mp4
Cambridge_IELTS_17_with_Answers_Academic__www.luckyielts.com_ (2) (1).pdf
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682780909172669
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: