-
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 reports in LHN that has no report type #29155
exclude reports in LHN that has no report type #29155
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 |
|
@rojiphil Why where the UTs failing? Could you provide information that? |
@abdulrahuman5196 |
@abdulrahuman5196
REASON: Reports here do not have
REASON: As the report here does not include
|
@abdulrahuman5196 |
@chiragsalian Could you kindly confirm if its fine to check for |
I think its fine to update this to check for |
@chiragsalian |
@chiragsalian @abdulrahuman5196
However, for |
I have added |
@chiragsalian Logically I am not sure if this is correct, because we can have a task without assignee meaning it won't have I think |
This comment was marked as outdated.
This comment was marked as outdated.
Ah poop i was hoping that reports always had participants but i forgot about report-type tasks. I thought this would be a quick answer. I'm not a fan of adding When in doubt i usually check what the backend has and try to make the front end work with values that is usually more expected.
This means that all reports have type in the backend. So the front end tests should be updated to consider them if we want it to closely match the backend.
This tells us there are a number of reports not shared with others which can possibly result in So yeah i think checking for |
@abdulrahuman5196 @chiragsalian |
@abdulrahuman5196 |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-10-12.at.2.35.45.PM.mp4Mobile Web - ChromeScreen.Recording.2023-10-12.at.2.44.05.PM.mp4Mobile Web - SafariScreen.Recording.2023-10-12.at.2.42.14.PM.mp4DesktopScreen.Recording.2023-10-12.at.3.52.17.PM.mp4iOSScreen.Recording.2023-10-12.at.3.48.13.PM.mp4AndroidScreen.Recording.2023-10-12.at.3.50.47.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. @chiragsalian
🎀 👀 🎀
C+ Reviewed
@chiragsalian |
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
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ 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/chiragsalian in version: 1.3.86-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.86-5 🚀
|
@abdulrahuman5196 @chiragsalian
Details
The original proposal considered checking for report
type
. However, this resulted in unit test failure which was analyzed here.The alternate solution is to consider
participantAccountIDs
from where we gather personal details like avatars. However, as this seems like a hacky work, it was decided not to pursue this path.This PR makes the following changes to the code:
type
to decide if this report must be considered for visibility in the LHN options list. The changes are made inshouldReportBeInOptionList
type
. The changes are inOptionsListUtilsTest.js
andUnreadIndicatorsTest.js
Fixed Issues
$ #27878
PROPOSAL: #27878 (comment)
Tests
Expected Behaviour: Verify that IOU Report in LHN of user A should arrive with proper display of avatar and user name
i.e. There should not be a brief time during which avatar and user name is not displayed.
Offline tests
There are no offline tests as this use case requires interaction between two apps and, hence, requires to be online.
QA Steps
Same as Steps for Tests Section.
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-Chrome
27878-web-chrome-1.mp4
iOS
27878-ios-native.mp4
Android
27878-android-native.mp4
Mobile Web - Chrome
27878-mweb-chrome.mp4
Mobile Web - Safari
27878-mweb-safari.mp4
Web
27878-web-safari.mp4
Desktop
27878-desktop.mp4