Skip to content

[HOLD for payment 2023-08-08] [$1000] Attachment preview does not update dynamically #21334

Closed

Description

@kbecciv

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 the app and login with user A
  2. Open user B report
  3. Open app in another device and login with user B
  4. From user B, send user A any image attachment
  5. From user A, open attachment sent by user B
  6. From user B, send new attachment
  7. Check in user A that new attachment is not visible in attachment preview, close the preview, open latest attachment
  8. From user B, delete the latest attachment
  9. Check in user A that we can still access that attachment

Expected Result:

App should dynamically update attachment preview

Actual Result:

App does not dynamically update attachment preview

Workaround:

Unknown

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:

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

attachment.preview.not.updated.dynamically.mp4
Recording.3211.mp4

Expensify/Expensify Issue URL:

Issue reported by: @dhanashree-sawant

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686896537390179

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01507a5371aef23c4a
  • Upwork Job ID: 1674577622879911936
  • Last Price Increase: 2023-06-30

Activity

  1. added
    Daily
    Bug
    on Jun 22, 2023
  2. melvin-bot commented on Jun 22, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 22, 2023

    @melvin-bot

    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. dukenv0307 commented on Jun 22, 2023

    @dukenv0307
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Attachment preview does not update dynamically

    What is the root cause of that problem?

    We don't update page and attachments state in AttachmentCarousel if reportActions is changed.

    What changes do you think we should make in order to solve the problem?

    We should create componentDidUpdate function to update page and attachments state when reportActions is changed in AttachmentCarousel

    componentDidUpdate(prevProps) {
        if (_.isEqual(prevProps.reportActions, this.props.reportActions)) {
            return;
        }
    
        const {
            page,
            attachments,
        } = this.createInitialState();
    
        this.setState({
            page,
            attachments
        })
    }
    

    What alternative solutions did you explore? (Optional)

    NA

    Result

    Screencast.from.21-06-2023.18.05.51.webm
  5. mallenexpensify commented on Jun 22, 2023

    @mallenexpensify
    Contributor

    Check here

    I'm been seeing a lot of bug reports about parts of the app not dynamically updating. I'm going to continue to treat these individually as bugs, if they should be rolled into a project or tracking GH, please 🧵 cc
    @Dhanashree Dattaram Sawant
    , since it appears you're reporting a lot of 'em

  6. melvin-bot commented on Jun 26, 2023

    @melvin-bot

    @mallenexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

  7. mallenexpensify commented on Jun 28, 2023

    @mallenexpensify
    Contributor
  8. mallenexpensify commented on Jun 28, 2023

    @mallenexpensify
    Contributor

    Thanks for the comment on the Slack thread @dhanashree-sawant.
    image

    Can you review the 'update dynamically' bugs you've reported to see if there's a commonality and/or root cause so that we might be able to bunch some together? If not we can manage them individually, it just takes more time/resources to do so.

  9. added
    External
    on Jun 30, 2023
  10. changed the title [-]Attachment preview does not update dynamically[/-] [+][$1000] Attachment preview does not update dynamically[/+] on Jun 30, 2023
  11. melvin-bot commented on Jun 30, 2023

    @melvin-bot
  12. 78 remaining items

  13. melvin-bot commented on Sep 5, 2023

    @melvin-bot

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

  14. melvin-bot commented on Sep 5, 2023

    @melvin-bot
  15. mallenexpensify commented on Sep 5, 2023

    @mallenexpensify
    Contributor

    @strepanier03 I'm off this week, can you please keep 👀 on this then I'll snag it back on Monday? Thx (it's just paying Dhanashree then posting the payment format as the final post)

  16. dhanashree-sawant commented on Sep 5, 2023

    @dhanashree-sawant

    Thanks @mallenexpensify, I have accepted the offer.

  17. strepanier03 commented on Sep 5, 2023

    @strepanier03
    Contributor

    I have paid @dhanashree-sawant via Upwork and closed the contract.


    Looks like so far:


    @mallenexpensify - Is this what you meant by "posting the payment format as the final post"??

  18. strepanier03 commented on Sep 5, 2023

    @strepanier03
    Contributor

    Payment Summary

  19. strepanier03 commented on Sep 8, 2023

    @strepanier03
    Contributor

    @narefyev91 - Have you submitted your Manual Request for payment? If so let me know and I'll assign over to Jason for payment.

  20. narefyev91 commented on Sep 8, 2023

    @narefyev91
    Contributor

    @narefyev91 - Have you submitted your Manual Request for payment? If so let me know and I'll assign over to Jason for payment.

    Hey! I'm from Callstack - no additional payments needed :-)

  21. melvin-bot commented on Sep 11, 2023

    @melvin-bot

    @strepanier03, @mallenexpensify, @narefyev91, @jasperhuangg, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick!

  22. mallenexpensify commented on Sep 11, 2023

    @mallenexpensify
    Contributor

    Thanks @strepanier03 , updated the above comment to

    Payment Summary
    Bug Reporter - @dhanashree-sawant - $250 - Paid via Upwork
    Contributor - @dukenv0307 - $500 - Paid via Upwork
    C+ - @narefyev91 is due $500 - he's with CallStack and paid outside of Upwork.

  23. mallenexpensify commented on Sep 11, 2023

    @mallenexpensify
    Contributor

    Thanks @narefyev91 for regression test steps, TestRail GH is here

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