Closed lanitochka17 closed 2 months ago
Triggered auto assignment to @slafortune (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.
We think that this bug might be related to #vip-vsp
@slafortune 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
Job added to Upwork: https://www.upwork.com/jobs/~01e2f80c595cce99e8
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach (External
)
App crashes on iOS app Console error shows up on web app
In https://github.com/Expensify/react-native-live-markdown/blob/ff55579f673c049a6eb6cdf38ffc223315309b07/parser/index.ts#L194, we don't have code to parseTreeToTextAndRanges
for video tag yet. So it throws error here
Add code to parseTreeToTextAndRanges
for video tag here, it's quite similar to img tag.
Pseudocode for it:
else if (node.tag.startsWith('<video data-expensify-source="')) {
const src = node.tag.match(/data-expensify-source="([^"]*)"/)![1]!; // always present
const rawLink = node.tag.match(/data-raw-href="([^"]*)"/);
const linkString = rawLink ? Utils.unescapeText(rawLink[1]!) : src;
const attachmentName = node.children?.join('')?.replaceAll(' ', ' ');
appendSyntax('!');
if (attachmentName) {
appendSyntax('[');
processChildren(Utils.unescapeText(attachmentName || ''));
appendSyntax(']');
}
appendSyntax('(');
addChildrenWithStyle(linkString, 'link');
appendSyntax(')');
}
As additional information:
@nkdengineer
Thank you for your proposal !
Your proposal makes sense to me
And I agree that we need to add a new condition for parseTreeToTextAndRanges
for video tags
🎀👀🎀 C+ reviewed
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
I am going OOO so I won't be able to see this through completion. @slafortune could you reassign an internal engineer here?
Actually, @mountiny is willing to take over for me! Thanks!
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
cc @tomekzaw @BartoszGrajdek for visibility
@ZhenjaHorbach @mountiny this PR is ready for review
This PR is merged. I'll create PR to bump new version soon
@slafortune, @mountiny, @ZhenjaHorbach, @nkdengineer Huh... This is 4 days overdue. Who can take care of this?
Not overdue PR in progress
@ZhenjaHorbach The PR is here.
This is being worked on, it will have a 7-day regression period, so I don't feel the need to add another BZ person to this. I'll be out until 8/21 and will check in on this then.
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:
- [x] [@ZhenjaHorbach] The PR that introduced the bug has been identified. Link to the PR:
Unfortunately, I did not find a suitable PR
- [x] [@ZhenjaHorbach] 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:
NA
- [x] [@ZhenjaHorbach] 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:
NA
- [x] [@ZhenjaHorbach] Determine if we should create a regression test for this bug.
- [x] [@ZhenjaHorbach] 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.
Regression Test Proposal
Verify that the edit composer appears without crashes (IOS Native and Android Native) or errors in the JS console (Web and Desktop)
Do we agree 👍 or 👎
Following this comment PR was deployed to prod August 13 So everything is ready for payment !
@ZhenjaHorbach and @nkdengineer - both paid via UpWorks as the C+ and Contributor roles.
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: 9.0.11-2 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App will not crash
Actual Result:
App crashes on iOS app Console error shows up on web app
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/6f95d7bd-c746-4c82-8e1f-6de594d7920f
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ZhenjaHorbach