-
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
Fix oldCreated date format when the created date was changed #33688
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-08.at.9.20.18.PM.movAndroid: mWeb ChromeScreen.Recording.2024-01-08.at.8.29.25.PM.moviOS: NativeScreen.Recording.2024-01-08.at.8.31.09.PM.movMacOS: Chrome / SafariScreen.Recording.2024-01-06.at.2.06.26.PM.movMacOS: DesktopScreen.Recording.2024-01-08.at.9.32.04.PM.mov |
@wlegolas I am not able to reproduce the issue on staging can you confirm? |
Hi @getusha, I tested it here on staging and it's still happening. staging-error.movI don't know if it's your case but usually, people east of GMT (most non-US) may not see this bug because |
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.
thanks! lgtm!
Hi @youssef-lr if you have any questions or suggestions, please let me know. |
src/libs/ModifiedExpenseMessage.ts
Outdated
changeFragments, | ||
); | ||
} | ||
buildMessageFragmentForCreated(setFragments, removalFragments, changeFragments, reportActionOriginalMessage); |
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.
Q: what was the need for extracting this logic into a function? I can't see this function used more than once so I'm not sure it's necessary
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.
I just extracted the code block responsible for building the message for the property created
to this function. My idea was to decrease the complexity of the parent function getForReportAction
, but if you disagree I can move the code from the buildMessageFragmentForCreated
function and put it here.
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.
Yeah I think as that logic is not really reusable there's no need to extract it to a function, I think it helps for readability if it stays there, instead of making the reader jump to a different location. Thanks!
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.
Sure I understood your points, I'll change here.
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.
Done: 326f61d
…he removed method
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
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.4.25-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.25-10 🚀
|
Details
oldCreated
date without the timezone informationFixed Issues
$ #33248
PROPOSAL: #33248 (comment)
Tests
Offline tests
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
evidence-Android-Native.mov
Android: mWeb Chrome
evidence-Android-mWeb-Chrome.mov
iOS: Native
evidence-iOS-Native.mov
iOS: mWeb Safari
evidence-iOS-mWeb-Safari.mov
MacOS: Chrome / Safari
Chrome
evidence-MacOS-Chrome.mp4
Safari
evidence-MacOS-Safari.mp4
MacOS: Desktop
evidence-MacOS-Desktop.mp4