-
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-06-28] [$500] HIGH: [Polish] Editing a comment with a video removes the video #41952
Comments
Optimistically assigning to @tgolen |
It looks like this is because we don't support @kidroca Do you agree that we just need to add support for |
Yes, this seems to be the problem We have to convert |
Triggered auto assignment to @laurenreidexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~019eb5f4d74fc52968 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
Great, thanks! Let's get this one worked on by a contributor. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Editing a comment with a video removes the video What is the root cause of that problem?We don't support What changes do you think we should make in order to solve the problem?
So the Regex will need to accommodate those differences Pseudo-code:
This works well for current use cases but some details might need to be changed based on expectations
Or we can just modify the rule here to work for both images and videos, based on source file extension
We should take additional references from this PR too to make it work for videos like for images. What alternative solutions did you explore? (Optional)NA VideoIt will work fine like this after the fix |
Because the format of the html is (FWIW it's ok for the markdown formats of video and image to be the same, we can distinguish them by the source file extension) |
Proposal updated to include more details |
In my opinion, In reality there are not many cases in which users want to update a video/image by updating the video/image link. When users send a video/image with a message, we should only allow the user to edit the message, not the video/image link. It means that when editing the message that is attached to a video/image, we only display the message in the edit composer and exclude the video/image link |
@dominictb I think it's OK to use the same markdown for both images and videos and base all logic off of file extensions.
I think we do need to keep this, yes. Is there anyway to keep this without including it in the markdown syntax? They are fields that shouldn't be edited by the user. @DylanDylann I think there are quite a few cases where users need to replace or delete a video/image entirely, so I don't think stripping out video/img tags from the editor is an option at this point. |
If that, @dominictb's proposal looks promising. Let's me deep dive into it |
@dominictb Same question
|
@tgolen @DylanDylann We can store the metadata in a local cache or in Onyx, it will be like an object with the video source as the key, similar to how we cached the thumbnail dimensions We can initialize the cache when the user starts editing the message, and clear the cache after the user finishes editing |
@alexpensify adding you here for parental leave sub. no action required this BZ this week, PR is still in review, but adding you for payment in coming weeks when the fix makes it to prod. Thanks |
Noted! |
Weekly Update
Next Steps
ETA
@dominictb Have you been able to create the App PR that updates the expensify-common version? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.0-9 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-06-28. 🎊 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:
|
Upwork job price has been updated to $500 |
@DylanDylann and @dominictb - to prepare for the payment date, please apply here: https://www.upwork.com/jobs/~019eb5f4d74fc52968 Automation failed here and Upwork search is throwing an error. Thanks! |
Payouts due: 2024-06-28
Upwork job is here. Status: Search was working better today. Please accept the Upwork jobs, and I can complete the process. |
There is no update yet; the offers are pending in Upwork. It need to be approved by the contributors. Heads up, I'm OOO this week, but I'm trying to check in sporadically to help finish the required process here. I'll try to check again on Wednesday morning to see if I can complete the next steps for this GH. |
@alexpensify I accepted the offer, thanks 🚀 |
@alexpensify I accepted it too, ty! |
@tgolen, @alexpensify, @DylanDylann, @dominictb Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Closing - I've completed the payment process in Upwork. |
Reported by @zsgreenwald here: https://expensify.slack.com/archives/C066HJM2CAZ/p1715280747390969
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: