[CP Staging] Fix task description is double parsed when updating the task title#42244
Conversation
|
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@abdulrahuman5196 we have another regression. It's my bad that I didn't carefully see that updating the title would parse the task description again. I fix it by making sure we parse it only when editing the description. |
|
Bumped @abdulrahuman5196 🙏 |
|
checking now |
|
@abdulrahuman5196 I include a fix for #42263 too. We miss to parse the description when creating a new task. We currently only parse it when editing |
|
FYI, the ts error is unrelated and being handled here |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-16.at.4.37.26.PM.mp4Android: mWeb ChromeScreen.Recording.2024-05-16.at.4.43.22.PM.mp4iOS: NativeScreen.Recording.2024-05-16.at.4.34.11.PM.mp4iOS: mWeb SafariScreen.Recording.2024-05-16.at.4.35.03.PM.mp4MacOS: Chrome / SafariScreen.Recording.2024-05-16.at.4.31.43.PM.mp4MacOS: DesktopScreen.Recording.2024-05-16.at.4.32.13.PM.mp4 |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Beamanator
🎀 👀 🎀
C+ Reviewed
Beamanator
left a comment
There was a problem hiding this comment.
LGTM - doesn't have anything to do with the type errors, and since this fixes 2 blockers I'm ok moving forward with this
|
@Beamanator looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not emergency, we know the type error exists and it's being fixed in #42253 |
|
Requesting CP |
…double-parsed-when-saving-title [CP Staging] Fix task description is double parsed when updating the task title (cherry picked from commit b2728b8)
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 1.4.74-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
@bernhardoj @abdulrahuman5196 either of you available to test this on staging? 🙏 |
|
@Beamanator Fixed on staging Screen.Recording.2024-05-16.at.21.43.21.mov |
|
Thanks very much @bernhardoj ! |
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.74-6 🚀
|
Details
When we update the title, we also parse the task description which shouldn't happen because it's already parsed. This PR make sure to parse it only when editing the description.
Fixed Issues
$ #42225
$ #42263
$ #39496
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-05-16.at.14.57.30.mov
Screen.Recording.2024-05-16.at.19.10.06.mov
Android: mWeb Chrome
Screen.Recording.2024-05-16.at.14.55.52.mov
Screen.Recording.2024-05-16.at.19.03.36.mov
iOS: Native
Screen.Recording.2024-05-16.at.14.55.29.mov
Screen.Recording.2024-05-16.at.19.06.59.mov
iOS: mWeb Safari
Screen.Recording.2024-05-16.at.14.52.47.mov
Screen.Recording.2024-05-16.at.19.04.12.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-16.at.14.48.10.mov
Screen.Recording.2024-05-16.at.18.58.31.mov
MacOS: Desktop
Screen.Recording.2024-05-16.at.14.51.22.mov
Screen.Recording.2024-05-16.at.19.00.03.mov