-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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][$500] Chat - Action menu for MP4 files has "Copy to clipboard" and "Edit comment" functions #35578
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01bd7a8a1a0e4bc08b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
Triggered auto assignment to @kadiealexander ( |
We think that this bug might be related to #vip-vsb |
ProposalPlease re-state the problem that we are trying to solve in this issue"Copy to clipboard" and "Edit comment" are functions should not be available for MP4 files. What is the root cause of that problem?The issue here is that for the context menu actions we don't check the attachment type so we can show / hide these actions depending on the attachment type. Within What changes do you think we should make in order to solve the problem?We should add logic similar to For this we should agree on an array of attachment file types and apply a ReportUtils lib where we're checking within VideosMacOS: Chrome / Safari
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Action menu for MP4 files has "Copy to clipboard" and "Edit comment" functions. What is the root cause of that problem?In What changes do you think we should make in order to solve the problem?We should also check for if (reportAction && 'attachmentInfo' in reportAction) {
return true;
} In App/src/libs/ReportActionsUtils.ts Lines 667 to 679 in ff23077
This property always exists on attachments. Use Or add Result |
I think this should be fixed in backend. |
@mkhutornyi, yeah its a backend issue, the |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Action menu for MP4 files has "Copy to clipboard" and "Edit comment" functions What is the root cause of that problem?The root cause of the problem is that we use App/src/libs/isReportMessageAttachment.ts Lines 19 to 20 in afa88d4
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)We could ignore step 1 and only execute step 2 in the |
I will review it tomorrow |
@kadiealexander, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Waiting for more proposal |
Unhidden my initial proposal if this needs to be fixed on frontend. |
Hi @DylanDylann, I updated my proposal. |
Thanks for everyone. @Krishna2323's proposal doesn't fix this issue completely (miss "Edit comment" option). @Tony-MK's proposal looks good to me 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@DylanDylann, I don't think we should modify isReportMessageAttachment with isReportActionAttachment in the canEditReportAction function, because Also I think my proposal was the first to identify the correct root cause and provide a solution, though I accidentally deleted the point for adding that check for edit case also but I think it's very minor thing to select a proposal, that would have been checked during the PR as it has been also included in the expected outcome. Thanks |
hey @DylanDylann, I deleted the edit action point from my solution by mistake but I think I still have it in the root cause section😅. So I think my proposal is still the first with the correct solution. |
I don't see any problem with modifying isReportMessageAttachment with isReportActionAttachment in the canEditReportAction function |
I do think it may cause regression, but even if it do not, I think switching isReportMessageAttachment with isReportActionAttachment in the canEditReportAction function is same as adding
Also you missed the "Edit comment" option point in my root cause.
Can you pls re-evaluate proposals 🙏🏻 cc: @srikarparsi |
@Tony-MK, @srikarparsi, @kadiealexander, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue, being worked on in the PR. |
@Tony-MK any update on the PR |
@Tony-MK @srikarparsi @kadiealexander @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Sorry for the delay, @DylanDylann. I am having issues testing android - mWeb. However, I should be done by tomorrow. |
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. |
@srikarparsi It seems like the backend is returning the original filename instead of the CC @francoisl since you were involved with this project. 🙇 Also, it would be great to have this fixed as quickly as possible @DylanDylann @Tony-MK, since we had another issue created today that was marked as deploy blocker #36828. |
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. |
@Tony-MK Please help to speed up our PR, because our PR will fix other deploy blocker issues |
@DylanDylann Sorry for the delay. Let's finish the PR. |
@techievivek I'm working on this already, we also need to make the backend return |
Ok great, thanks for confirming @francoisl 🙇 |
@kadiealexander The PR was deployed to production 2 weeks ago. Please help to process the next step |
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:
|
Payouts due:
Upwork job is here. |
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: [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA Regression Test Proposal
Do we agree 👍 or 👎 |
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: v1.4.35-0
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: Applause- Internal Team
Slack conversation:
Action Performed:
Pre-requisite: user must be logged in.
Expected Result:
"Copy to clipboard" and "Edit comment" should not be options for MP4 files.
Actual Result:
"Copy to clipboard" and "Edit comment" are functions available for MP4 files. When edited, the file is no longer available.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidences>
Recording.5972.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: