-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-05-09] [$250] Incorrect video downloaded #40647
Comments
Triggered auto assignment to @kadiealexander ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect video downloaded What is the root cause of that problem?When downloading, we get source uri from App/src/components/VideoPlayerContexts/VideoPopoverMenuContext.tsx Lines 30 to 36 in 8616678
What changes do you think we should make in order to solve the problem?We can get source uri from
What alternative solutions did you explore? (Optional)We can update App/src/components/VideoPlayer/BaseVideoPlayer.tsx Lines 94 to 100 in 8616678
test.mp4 |
📣 @KMichel1030! 📣
|
Job added to Upwork: https://www.upwork.com/jobs/~01c92de1e47026775d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect video downloaded What is the root cause of that problem?We are using the url of the current playing video.
App/src/components/VideoPlayerContexts/VideoPopoverMenuContext.tsx Lines 34 to 35 in 8616678
What changes do you think we should make in order to solve the problem?We should create a new state // In VideoPopoverMenuContextProvider
const [url, setUrl] = useState('');
const contextValue = useMemo(
() => ({menuItems, updatePlaybackSpeed , setUrl}),
[menuItems, updatePlaybackSpeed, setUrl],
);
// in VideoPopoverMenu
const {menuItems, setUrl} = useVideoPopoverMenuContext();
useEffect(() => {
if (!isPopoverVisible) {
return;
}
setUrl(url);
}, [isPopoverVisible]);
// Pass url from BaseVideoPlayer
<VideoPopoverMenu
isPopoverVisible={isPopoverVisible}
hidePopover={hidePopoverMenu}
anchorPosition={popoverAnchorPosition}
url={url}
/> Same can be done with videoRef/currentVideoPlayerRef if needed. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect video downloaded What is the root cause of that problem?We do not update What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)Add bellow code on this line ( before if block ).
|
Reviewing Proposals |
Proposal |
Reviewing now |
Thank you all for your proposals. Unfortunately, none of the proposals considered changing the playback speed bug case (which has the same root cause). Please ensure that your solution passes the following test:
|
@rayane-djouah, here is my test branch incase you want to test. |
The playback speed bug will be handled in #40646. Let's address the download bug in this issue. @KMichel1030, you've identified the correct root cause, and the suggested changes are working. However, they are causing a type error: @Krishna2323, your proposal suggests using a state instead of a ref. Are there any concerns with this approach? @jsdev2547, your proposal involves using the onLayout event of VideoPlayerControls. Are there any concerns with this approach? |
@rayane-djouah |
Thank you all for your proposals. 🎀👀🎀 C+ reviewed |
Current assignee @blimpich is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
The BZ member will need to manually hire KMichel1030 for the Contributor role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future! |
PS: @KMichel1030 looks like you still need to respond to this comment. Feel free to raise a PR but also don't forget to setup your upwork profile and respond to that comment so we can automate this in the future 👍 |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 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-05-09. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Regression test proposal
|
Hi, @kadiealexander |
Payouts due:
Upwork job is here. |
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: 1.4.63-7
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
Expensify/Expensify Issue URL:
Issue reported by: @blimpich / @KMichel1030
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1713565550549779
Action Performed:
Expected Result:
Video #1 should be downloaded.
Actual Result:
Video #2 is downloaded.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.3005.mp4
Issue.2.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: