-
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
fix: fixing failing tests for OptionsListUtils
and ReportUtils
suites
#20371
fix: fixing failing tests for OptionsListUtils
and ReportUtils
suites
#20371
Conversation
OptionsListUtils
suiteOptionsListUtils
and ReportUtils
suites
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.
Looks great! Got a few little comments, so if you have time to adjust a few small things today let's do that, but once you're done we can merge into my branch and keep going from there!
@@ -872,6 +872,10 @@ const CONST = { | |||
GUIDES_DOMAIN: 'team.expensify.com', | |||
}, | |||
|
|||
ACCOUNT_ID: { | |||
CONCIERGE: '8392101', |
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 thinkkkk this is one thing we'll have to modify - because in expensify employee dev environments this account ID is definitely different - so we'll have to read the account ID from the .env
file.
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.
Is this being extracted anywhere? I tried looking at CONFIG.js
to see the name of the variable, but there's no mentioned of a concierge account id
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.
Not yet, I just think we'll need to do that in our migration since the email will always stay the same, but account IDs won't 😅
It issss possible we can have AppInit send the concierge accountID instead and store that in Onyx or something 🤔
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 right, it makes sense. Hum, I'll add a note here, so that this not get forgotten.
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.
That sounds fantastic, thanks!
login, | ||
displayName: LocalePhoneNumber.formatPhoneNumber(login), | ||
avatar: UserUtils.getDefaultAvatar(login), | ||
accountID, |
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.
One thing @puneetlath and I are thinking is: If we don't have a display name to show we maybbbe want to just show "hidden" everywhere, OR we want to hide this - this is something we'll have to keep in mind when doing final testing
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.
Ah, have the displayName be 'hidden'? Do we want to change this right now, or is it something still being discussed?
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.
Well we will plan to show "hidden" on the the profile page that we're updating (PR: #20144) - IFF you don't have that person's personal details in Onyx. So we were just "thinking" this may apply to other pages in the app, but I'd say let's just see what happens as we go - I think it would be better if we try to figure out "why" personal details may or may not be available in this scenario, and handle it from there, not just add "hidden" everywhere this happens and gloss over the why 😅
@Beamanator Not sure what's going on, I've pushed a commit to the branch with fixes for the review points, but the commit is not showing on the PR 🤨 It's definitely pushed |
@BeeMargarida Thaaaaaat's super weird 😅 |
Well, it kinda fixed itself after another commit 🤷♀️ |
@neil-marcellini @rushatgabhane One of you needs to 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] |
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.3.29-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.29-11 🚀
|
Details
Fixes failing tests for
OptionsListUtils
andReportUtils
unit test suites.Regarding the topic of the fake accountID, I created a method but it's more as a placeholder until all the logic regarding the mentioned fix is done.
Fixed Issues
$ #19007
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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android