Skip to content

[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

Closed

Description

@kavimuru

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. Open web chrome
  2. Go to any chat
  3. Drag the large pdf file (3-8 MB) onto the chat. (I tested it with documents that I've attached below for medium-large pdfs)
  4. Make sure that the document preview is shown
  5. Now drag the same large pdf file again on the previous pdf preview
  6. Click on send
  7. Notice that the pdf file is opened two times and is sent two times
  8. But now repeat the same steps for small pdf files (in KB) or on images and notice that even when you drag the same small pdf file or image at the second time, it doesn't show the preview and the file is not uploaded (unlike the previous case where dragging the large pdf in the second time uploaded the file)

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

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
  • Upwork Job URL: https://www.upwork.com/jobs/~017d5dc9ec54d81805
  • Upwork Job ID: 1653229585044373504
  • Last Price Increase: 2023-05-02

Activity

  1. added
    Daily
    Bug
    on Apr 30, 2023
  2. MelvinBot commented on Apr 30, 2023

    @MelvinBot
    Contributor

    Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. MelvinBot commented on Apr 30, 2023

    @MelvinBot
    Contributor

    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
  4. MitchExpensify commented on May 2, 2023

    @MitchExpensify
    Contributor

    I am unable to reproduce this

  5. added
    Needs Reproduction
    on May 2, 2023
  6. MitchExpensify commented on May 2, 2023

    @MitchExpensify
    Contributor

    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

  7. MitchExpensify commented on May 2, 2023

    @MitchExpensify
    Contributor

    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!

  8. added
    External
    and removed
    Needs Reproduction
    on May 2, 2023
  9. changed the title [-]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[/-] [+][$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[/+] on May 2, 2023
  10. MelvinBot commented on May 2, 2023

    @MelvinBot
    Contributor
  11. MelvinBot commented on May 2, 2023

    @MelvinBot
    Contributor

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

  12. 43 remaining items

  13. changed the title [-][$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[/-] [+][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[/+] on May 15, 2023
  14. melvin-bot commented on May 15, 2023

    @melvin-bot

    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.

    • 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
  15. melvin-bot commented on May 15, 2023

    @melvin-bot

    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:

    • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
    • [@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:
    • [@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:
    • [@parasharrajat] Determine if we should create a regression test for this bug.
    • [@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.
    • [@MitchExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/286533
  16. added
    Daily
    and removed
    Weekly
    on May 21, 2023
  17. MitchExpensify commented on May 23, 2023

    @MitchExpensify
    Contributor

    Everyone's paid! Thanks again

    @parasharrajat if you could identify the PR that introduced the bug as a next step, that'd be great!

  18. parasharrajat commented on May 23, 2023

    @parasharrajat
    Member

    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.

    #18210 (comment)

  19. akinwale commented on May 23, 2023

    @akinwale
    Contributor

    Everyone's paid! Thanks 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?

  20. parasharrajat commented on May 23, 2023

    @parasharrajat
    Member

    Regression Test Steps

    1. Open app on chrome browser.
    2. Go to any chat
    3. Drag the large pdf file (3-8 MB) onto the chat. (I tested it with documents that I've attached below for medium-large pdfs)
    4. Make sure that the document preview is shown
    5. Now drag the same large pdf file again on the previous pdf preview
    6. Click on send
    7. Notice that the pdf file is opened and sent once.

    Do you agree 👍 or 👎 ?

  21. thienlnam commented on May 23, 2023

    @thienlnam
    Contributor

    cc @MitchExpensify

    Seems that we've missed a regression deduction
    #18210 (comment)
    #18210 (comment)

  22. MitchExpensify commented on May 24, 2023

    @MitchExpensify
    Contributor

    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

  23. akinwale commented on May 24, 2023

    @akinwale
    Contributor

    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.

  24. parasharrajat commented on May 24, 2023

    @parasharrajat
    Member

    Refunded $1000

    image

  25. MitchExpensify commented on May 25, 2023

    @MitchExpensify
    Contributor

    Thank you both! Request the test be added here https://github.com/Expensify/Expensify/issues/286533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions