Skip to content

[Due for payment 2025-04-16] [Better Expense Report View] Expense Reports - Unable to play video attachment #58833

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

Closed
8 tasks done
lanitochka17 opened this issue Mar 20, 2025 · 15 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 20, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.1.16-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • Log in with Expensifail account
  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Submit an expense
  4. Go to Reports
  5. Go to Expense Reports
  6. Click on the expense report
  7. Click + > Add attachment
  8. Upload a video to the expense report
  9. Click on the video to play it

Expected Result:

The video can be played

Actual Result:

Nothing happens after clicking on the video.
On mweb, Android and iOS, the video is in full screen view but unable to play

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6777166_1742492656105.20250321_014040.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Kicu
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Mar 20, 2025
Copy link

melvin-bot bot commented Mar 20, 2025

Triggered auto assignment to @flodnv (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Mar 20, 2025

💬 A slack conversation has been started in #expensify-open-source

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@luacmartins
Copy link
Contributor

This view is behind a beta. NAB. @Kicu @DylanDylann

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 20, 2025
@mountiny mountiny self-assigned this Mar 21, 2025
@mountiny mountiny moved this to Second Cohort - CRITICAL in [#whatsnext] #migrate Mar 21, 2025
@mountiny mountiny changed the title Expense Reports - Unable to play video attachment [Better Expense Report View] Expense Reports - Unable to play video attachment Mar 21, 2025
Copy link

melvin-bot bot commented Mar 24, 2025

@Kicu Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Mar 24, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

@Kicu Eep! 4 days overdue now. Issues have feelings too...

@Kicu
Copy link
Member

Kicu commented Mar 26, 2025

RCA:
The video does not play, because global context responsible for setting video playing data is connected to navigation and will work only on ReportScreen.
Specifically there are 2 things that need to be changed:

const reportID = Navigation.getTopmostReportId(state);

and
Navigation.isNavigationReady().then(() => {
// This logic ensures that resetVideoPlayerData is only called when currentReportID
// changes from one valid value (i.e., not an empty string or '-1') to another valid value.
// This prevents the video that plays when the app opens from being interrupted when currentReportID
// is initially empty or '-1', or when it changes from empty/'-1' to another value
// after the report screen in the central pane is mounted on the large screen.
if ((!currentReportID && isReportTopmostSplitNavigator()) || (!prevCurrentReportID && !isReportTopmostSplitNavigator()) || currentReportID === prevCurrentReportID) {
return;
}
// We call another setStatusAsync inside useLayoutEffect on the video component,
// so we add a delay here to prevent the error from appearing.
setTimeout(() => {
resetVideoPlayerData();
}, 0);
});

Right now if currentReportID is not set, the video thumbnail will not turn into video player.

It should be simple to fix, however it might need a few files changed, so I don't think I will include it in my current PR: #58903 - because it will grow too big.

CC @mountiny @luacmartins I suggest we wait a few days and do this in another PR as a followup. After some other parts of Reports are done we should have more free hands in SWM to tackle this.

@melvin-bot melvin-bot bot removed the Overdue label Mar 26, 2025
@luacmartins
Copy link
Contributor

Yea, that sounds fine

@mountiny
Copy link
Contributor

👍

Copy link

melvin-bot bot commented Apr 1, 2025

@Kicu Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2025
@JakubKorytko
Copy link
Contributor

JakubKorytko commented Apr 1, 2025

I'll take care of it, you can assign me.

Copy link

melvin-bot bot commented Apr 8, 2025

⚠️ 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.

@mountiny
Copy link
Contributor

mountiny commented Apr 8, 2025

No need for payment or regression testing here, we just got one more issue QA found but we can handle that specific case there

@mountiny mountiny closed this as completed Apr 8, 2025
@github-project-automation github-project-automation bot moved this from Second Cohort - CRITICAL to Done in [#whatsnext] #migrate Apr 8, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 9, 2025
@melvin-bot melvin-bot bot changed the title [Better Expense Report View] Expense Reports - Unable to play video attachment [Due for payment 2025-04-16] [Better Expense Report View] Expense Reports - Unable to play video attachment Apr 9, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 9, 2025
Copy link

melvin-bot bot commented Apr 9, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 9, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.24-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 2025-04-16. 🎊

For reference, here are some details about the assignees on this issue:

  • @Kicu does not require payment (Contractor)
  • @JakubKorytko does not require payment (Contractor)
  • @DylanDylann requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Apr 14, 2025
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 Engineering Reviewing Has a PR in review Weekly KSv2
Projects
Development

No branches or pull requests

7 participants