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 2024-08-02] [$250] Video - Change in playback speed is not reflected in thread report #42519

Closed
4 of 6 tasks
lanitochka17 opened this issue May 23, 2024 · 72 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented May 23, 2024

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.4.75-0
Reproducible in staging?: Y
Reproducible in production?: N
**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): natnael.expensify+3@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to a report
  2. Send a video
  3. Reply in a thread to the video
  4. Navigate back to the main report
  5. Change playback speed
  6. Navigate to the thread report
  7. Click on 'Three dots' > 'Playback speed'

Expected Result:

Changes in Playback speed from the main report should be reflected in the thread report

Actual Result:

Changes in playback speed from the main report is not reflected in the thread report

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6489315_1716463467872.Screen_Recording_2024-05-23_at_12.41.26_in_the_afternoon.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01aa9734a896a98cbf
  • Upwork Job ID: 1793619475924013056
  • Last Price Increase: 2024-06-06
  • Automatic offers:
    • situchan | Reviewer | 102822043
    • tienifr | Contributor | 102822045
Issue OwnerCurrent Issue Owner: @situchan
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

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

Copy link

melvin-bot bot commented May 23, 2024

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

  1. If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
    • If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
  2. Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
    • You can adjust the urgency of the issue to better represent the gravity of the bug.
    • If the issue is super low priority, feel free to un-assign yourself.
    • Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
    • If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.

Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.

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.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@lanitochka17
Copy link
Author

@Julesssss FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@Julesssss
Copy link
Contributor

Thanks.

This should not block deploy IMO. Removing the label.

@Julesssss Julesssss added Daily KSv2 External Added to denote the issue can be worked on by a contributor Bug Something is broken. Auto assigns a BugZero manager. and removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API Hourly KSv2 labels May 23, 2024
@melvin-bot melvin-bot bot changed the title Video - Change in playback speed is not reflected in thread report [$250] Video - Change in playback speed is not reflected in thread report May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01aa9734a896a98cbf

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

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

Copy link

melvin-bot bot commented May 23, 2024

Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@tienifr
Copy link
Contributor

tienifr commented May 23, 2024

Proposal

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

Changes in playback speed from the main report is not reflected in the thread report

What is the root cause of that problem?

This starts happening after this PR

Assuming in the main report's video player, we set the playback speed to 2.

When we open the popover menu, we're setting the playback speed that the player is currently playing at here.

However, when we go to child report, the player's speed is not synced with the speed of the player in the main report (it's still playing 1). So when we open playback menu it shows 1.

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

We should make sure if the video has the same source URL as the video in videoPopoverMenuPlayerRef, we'll set the playback speed to the current playback speed of VideoPopoverMenuContext

So below here

if (!videoPopoverMenuPlayerRef.current || videoPopoverMenuPlayerRef.current?.props?.source?.uri !== sourceURL) {
    return;
}

videoPlayerRef.current?.setStatusAsync?.({rate: currentPlaybackSpeed});

In there, the currentPlaybackSpeed should be exposed from VideoPopoverMenuContextProvider here

() => ({menuItems, videoPopoverMenuPlayerRef, updatePlaybackSpeed, setCurrentPlaybackSpeed, currentPlaybackSpeed}),

We could improve this further by creating a local cache of the playback speed, cached by sourceURL, so in the above, if we find that the cached playback speed of the same sourceURL is different from the current playback speed, we'll set the current playback speed to that cached value. We have the same pattern for caching the image dimensions.

What alternative solutions did you explore? (Optional)

NA

@mallenexpensify
Copy link
Contributor

@situchan , 👀 on the proposal above plz

@jainilparikh

This comment was marked as duplicate.

@melvin-bot melvin-bot bot added the Overdue label May 26, 2024
@situchan
Copy link
Contributor

Proposals are in review

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Jul 26, 2024
@melvin-bot melvin-bot bot changed the title [$250] Video - Change in playback speed is not reflected in thread report [HOLD for payment 2024-08-02] [$250] Video - Change in playback speed is not reflected in thread report Jul 26, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 26, 2024
Copy link

melvin-bot bot commented Jul 26, 2024

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

Copy link

melvin-bot bot commented Jul 26, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 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 2024-08-02. 🎊

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

Copy link

melvin-bot bot commented Jul 26, 2024

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:

  • [@situchan] The PR that introduced the bug has been identified. Link to the PR:
  • [@situchan] 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:
  • [@situchan] 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:
  • [@situchan] Determine if we should create a regression test for this bug.
  • [@situchan] 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.
  • [@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@Julesssss
Copy link
Contributor

Julesssss commented Jul 26, 2024

It seems that QA noticed the issue not fixed for Android, lets hold payment for now. @tienifr could you take a look please?

@tienifr
Copy link
Contributor

tienifr commented Jul 31, 2024

I'm stuck on other issue, I'll try to fix that issue in one or two days

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 1, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Aug 5, 2024
@tienifr
Copy link
Contributor

tienifr commented Aug 5, 2024

The PR is ready for review cc @Julesssss @situchan

@mallenexpensify
Copy link
Contributor

In the PR I'm not seeing that it was deployed to production.

@situchan @tienifr , any idea what might be going on? I want to update the title to reflect the correct payment date

@mallenexpensify
Copy link
Contributor

@situchan @tienifr 👀 on the comment above plz so I can get you paid (assuming it's needed)

@situchan
Copy link
Contributor

There was bug on that deploy. Melvin didn't post deploy comment on all PRs in this checklist.
cc: @Beamanator

@Beamanator
Copy link
Contributor

Agreed 👍 I posted in the PR about it being deployed to prod here - #46800 (comment)

@mallenexpensify
Copy link
Contributor

d;oh, sorry, I should have seen that comment.
Contributor: @tienifr owed $250 via NewDot
Contributor+: @situchan paid $250 via NewDot.

@situchan plz complete the BZ checklist above? Thx

@situchan
Copy link
Contributor

Regression Test Steps

  1. Send a video to any chat
  2. Reply the video in thread
  3. Navigate to parent report
  4. Change playback speed
  5. Navigate to thread
  6. Open playback speed menu
  7. Verify thread's playback speed is the same with parent's

@mallenexpensify
Copy link
Contributor

@mallenexpensify mallenexpensify removed the Reviewing Has a PR in review label Aug 26, 2024
@garrettmknight
Copy link
Contributor

@tienifr paid $250 via NewDot

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. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Status: No status
Development

No branches or pull requests

9 participants