-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[CP Staging] Fix task description is double parsed when updating the task title #42244
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Beamanator
🎀 👀 🎀
C+ Reviewed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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