-
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
Fix Changed date appears for a second in LHN #30223
Conversation
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
@@ -3152,6 +3152,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas, | |||
!report || | |||
!report.reportID || | |||
!report.type || | |||
report.reportName === undefined || |
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.
Have you found case of reportName being set to null or empty string but need to be in options list?
report.reportName === undefined || | |
!report.reportName |
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.
@situchan done
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.
@situchan the test is failing if we use !report.reportName
The test failed to pass this report:
App/tests/unit/OptionsListUtilsTest.js
Lines 106 to 122 in 1c85ebe
// This report is an archived room – it does not have a name and instead falls back on oldPolicyName | |
10: { | |
lastReadTime: '2021-01-14 11:25:39.200', | |
lastVisibleActionCreated: '2022-11-22 03:26:02.001', | |
reportID: 10, | |
isPinned: false, | |
participantAccountIDs: [2, 7], | |
reportName: '', | |
oldPolicyName: "SHIELD's workspace", | |
chatType: CONST.REPORT.CHAT_TYPE.POLICY_EXPENSE_CHAT, | |
isOwnPolicyExpenseChat: true, | |
type: CONST.REPORT.TYPE.CHAT, | |
// This indicates that the report is archived | |
stateNum: 2, | |
statusNum: 2, | |
}, |
because the reportName is empty string.
I am following the certain check condition inside handleReportChanged which is reportName === undefined
, in here:
App/src/libs/actions/Report.js
Lines 990 to 992 in 1998fa3
if (report.reportID && report.reportName === undefined) { | |
reconnect(report.reportID); | |
} |
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.
ok let's revert to undefined
then
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.
@situchan done
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
Reviewer Checklist
Screenshots/VideosWebweb.mov |
✋ 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/amyevans in version: 1.3.91-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
Details
Fixed Issues
$ #29198
PROPOSAL: #29198 (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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
android-native_d.mp4
Android: mWeb Chrome
android-mweb_d.mp4
iOS: Native
ios-native_d.mp4
iOS: mWeb Safari
ios-msafari_d.mp4
MacOS: Chrome / Safari
macos-web_d.mp4
MacOS: Desktop
macos-desktop_d.mp4