-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Exclude empty chats (with no ADDCOMMENT actions or message drafts) from LNH #19321
Exclude empty chats (with no ADDCOMMENT actions or message drafts) from LNH #19321
Conversation
…clude-empty-chats-from-lnh
Having some trouble fixing the Travis errors in I also think I'll have to change the condition to include a |
…clude-empty-chats-from-lnh
… in shouldReportBeInOptionList
…ould render in LNH
…clude-empty-chats-from-lnh
I think I fixed all tests! Since the |
…clude-empty-chats-from-lnh
I think I still have a problem to fix: Sending a message then going to another chat really quickly makes the Chat disappear then pop back in! I think there might be some optimistic data in the chat creation that I should be setting to avoid that. Will fix this tomorrow |
…clude-empty-chats-from-lnh
Trying to reproduce this reliably to fix it, this is not always happening! I managed to reproduce this a couple of times by deleting multiple comments inside the report and then going to the concierge chat really quickly. I think we are not clearing Still trying to understand how force that behavior to replicate this |
I'm having trouble with the Android emulator so I'll add it's evidence tomorrow morning |
…clude-empty-chats-from-lnh
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
@thesahindia bump for review! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-12.at.1.49.00.PM.movScreen.Recording.2023-08-12.at.1.44.33.PM.movMobile Web - ChromeScreen.Recording.2023-08-12.at.2.33.23.PM.movMobile Web - SafariScreen.Recording.2023-08-12.at.2.36.08.PM.movDesktopScreen.Recording.2023-08-12.at.3.26.07.PM.moviOSScreen.Recording.2023-08-12.at.3.07.23.PM.movAndroidScreen.Recording.2023-08-12.at.2.18.48.PM.mov |
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.
Tested well!
P.S. Sorry for the delay. I am having internet issues.
@joelbettner 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] |
Not sure why Joel got assigned since we already had an internal engineer assigned. Merging. |
Running into a failing unit test on main, seems to be from this PR: |
}), | ||
) | ||
|
||
// Then no reports are rendered in the LHN |
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.
Probably copy / pasta error? Should be "The report is rendered in the LHN"
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.
Oh yes, thks for catching that!
I'll create a P.R. to fix that unit test that is failing + fix that comment.
Thks for tagging me and reporting here, taking a look at that test right now : ) I see the other issues that tagged this are also mentioning that failed Task. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.54-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.54-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.54-13 🚀
|
@PauloGasparSv @Beamanator In that case :
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA Paulo Vale seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Details
Updating the LNH logic so it doesn't show empty chats! We consider a chat empty if it's not active and has no drafts or messages (ADDCOMMENT actions).
This change must not influence how Threads, IOUS, Tasks and other features of the App work.
Fixed Issues
$ #14523
PROPOSAL: N/A
Tests
Empty chat shouldn't stay in LNH
reportID
(last number in the chat's URL)reportID
(has the same URL)Chat should stay in LNH if it has a Draft
Not-Empty chat should stay in LNH
Deleting messages and leaving chat empty should remove it from LNH
Same tests w/ Group Chat
reportID
(last number in the chat's URL)reportID
(has the same URL)Money request should stay in LNH
Workspace Chats should stay in LNH
#admins
,#announce
and a workspace chats are createdTODO: add steps for these
Offline tests
reportID
(last number in the chat's URL)reportID
will not be the same as the first attempt because we are offline, but make note of thatreportID
as wellreportID
is the same as the from step 5 (and not step 8)Make sure the chat opens and has the same
reportID
(has the same URL)QA Steps
Same as Tests
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
Web
web-up-to-group-chat.mov
web-2.mov
Mobile Web - Chrome
android-web-1.mov
Screen.Recording.2023-08-09.at.20.35.46.mov
Mobile Web - Safari
ios.Web.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov