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-10-20] [HOLD for payment 2023-10-20] [$125] Attachment - Modal error does not appear after uploading an attachment larger then 24MB #29452

Closed
2 of 6 tasks
lanitochka17 opened this issue Oct 12, 2023 · 44 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 12, 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!


Version Number: 1.3.83-1

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

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with any Gmail account
  3. Navigate to a chat
  4. Click on the + button in the compose box and upload an attachment that is larger than the 24 MB limit

Expected Result:

The error modal appears immediately upon upload

Actual Result:

Nothing happened

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Windows: Chrome
Bug6234395_1697114926610.24_MB_limit.mp4

Video with Production:

Recording.6377.mp4
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01745a035d1d92bb33
  • Upwork Job ID: 1712522747811811328
  • Last Price Increase: 2023-10-12
  • Automatic offers:
    • ishpaul777 | Contributor | 27169589
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

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

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Oct 12, 2023
@melvin-bot melvin-bot bot changed the title Attachment - Modal error does not appear after uploading an attachment larger then 24MB [$500] Attachment - Modal error does not appear after uploading an attachment larger then 24MB Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01745a035d1d92bb33

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (External)

@mountiny mountiny changed the title [$500] Attachment - Modal error does not appear after uploading an attachment larger then 24MB [$125] Attachment - Modal error does not appear after uploading an attachment larger then 24MB Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

Upwork job price has been updated to $125

@ishpaul777
Copy link
Contributor

ishpaul777 commented Oct 12, 2023

Proposal

Problem

Attachment - Modal error does not appear after uploading an attachment larger then 24MB

Root Cause

offending PR- #26219
We have nested the ConfirmModal inside the AttachmentModal so it only becomes visible when Attachmentmodal is visible.
https://github.com/Expensify/App/blob/3b98327273d361b2afd3617f93ca2718ab0aaf61/src/components/AttachmentModal.js

Changes

We need to move the ConfirmModal (for FIle validation) outside of attachment modal.
We can leave attachment reciept modal inside the modal so the it works as expected on Ios. #26219 (comment)

            // rest of code in https://github.com/Expensify/App/blob/3b98327273d361b2afd3617f93ca2718ab0aaf61/src/components/AttachmentModal.js
            {isAttachmentReceipt && (
                    <ConfirmModal
                        title={translate('receipt.deleteReceipt')}
                        isVisible={isDeleteReceiptConfirmModalVisible}
                        onConfirm={deleteAndCloseModal}
                        onCancel={closeConfirmModal}
                        prompt={translate('receipt.deleteConfirmation')}
                        confirmText={translate('common.delete')}
                        cancelText={translate('common.cancel')}
                        danger
                    />
                )}
            </Modal>
            <ConfirmModal
                title={attachmentInvalidReasonTitle ? translate(attachmentInvalidReasonTitle) : ''}
                onConfirm={closeConfirmModal}
                onCancel={closeConfirmModal}
                isVisible={isAttachmentInvalid}
                prompt={attachmentInvalidReason ? translate(attachmentInvalidReason) : ''}
                confirmText={translate('common.close')}
                shouldShowCancelButton={false}
            />

@luacmartins
Copy link
Contributor

@ishpaul777 are you able to work on a PR now?

@luacmartins luacmartins self-assigned this Oct 12, 2023
@ishpaul777
Copy link
Contributor

yes I am available for few hours

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($125)

@luacmartins
Copy link
Contributor

Cool, it's all yours!

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

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.

@jasperhuangg
Copy link
Contributor

@ishpaul777 any updates on that PR?

@ishpaul777
Copy link
Contributor

android build is taking too much time I am done with testing on all other platforms.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 16, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$125] Attachment - Modal error does not appear after uploading an attachment larger then 24MB [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$125] Attachment - Modal error does not appear after uploading an attachment larger then 24MB Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 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-23. 🎊

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

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 20, 2023
@joekaufmanexpensify joekaufmanexpensify changed the title [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$125] Attachment - Modal error does not appear after uploading an attachment larger then 24MB [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [$125] Attachment - Modal error does not appear after uploading an attachment larger then 24MB Oct 20, 2023
@joekaufmanexpensify
Copy link
Contributor

@sobitneupane mind taking care of the BZ checklist here when you're back next week?

@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2023
@joekaufmanexpensify
Copy link
Contributor

Not overdue

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@ishpaul777
Copy link
Contributor

@joekaufmanexpensify I believe this is due for payment, isn't it ?

@joekaufmanexpensify
Copy link
Contributor

Yep! The BZ checklist just needs to be complete before we can issue payment.

@ishpaul777
Copy link
Contributor

okay! got it Thanks!

@joekaufmanexpensify
Copy link
Contributor

Bumped in Slack

@joekaufmanexpensify
Copy link
Contributor

Still pending BZ checklist

@joekaufmanexpensify
Copy link
Contributor

@sobitneupane will you be able to complete this this week?

@melvin-bot melvin-bot bot added the Overdue label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

@luacmartins, @sobitneupane, @joekaufmanexpensify, @ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@sobitneupane
Copy link
Contributor

sobitneupane commented Oct 30, 2023

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:

  • The PR that introduced the bug has been identified. Link to the PR:

#26219

  • 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:

#26219 (comment)

  • 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:
  • Determine if we should create a regression test for this bug.

I don't think regression test will be required for this specific bug. I do believe that we already have regression test for such cases.

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@joekaufmanexpensify
Copy link
Contributor

Great, ty! I will finish this up today.

@joekaufmanexpensify
Copy link
Contributor

All set to issue payment. This one qualifies for speed bonus, so we need to issue the following payments:

  • @ishpaul777 - $187.50 ($125 for PR, and $62.50 for speed bonus). Paid via upwork.
  • @sobitneupane - $187.50 ($125 for C+ and $62.50 for speed bonus). Paid via NewDot.
  • Reported internally, so no reporting payment.

@joekaufmanexpensify
Copy link
Contributor

@ishpaul777 $187.50 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

@sobitneupane please request $187.50 via NewDot and let us know here once that's complete!

@sobitneupane
Copy link
Contributor

Requested payment on newDot.

@joekaufmanexpensify
Copy link
Contributor

TY! Closing as this is all set.

@JmillsExpensify
Copy link

$187.50 payment approved for @sobitneupane based on summary above.

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants