-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Fix] Create Expense - Submits To Display Name Missing #57426
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] Create Expense - Submits To Display Name Missing #57426
Conversation
@mananjadhav 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] |
@JKobrynski The results are still flaky for me. web-display-name.mov |
@mananjadhav got it, I am going to take a closer look at it today |
Yes, and I think for the QA I would recommend:
|
…9-display-name-missing
…9-display-name-missing
@mananjadhav it's weird, because for me that participant's list looks different, it has more data fields. I wonder where the difference comes from 🤔 And I still can't reproduce the bug, I cleared cache and reloged on all platforms. Maybe we should trigger a test build? Wdyt? |
Yes we can trigger an adhoc build, but are you not added the Applause workspace? If yes you can filter in the search bar? |
It's the last item in the list on the screenshot 😄 |
@mananjadhav wdyt? 😄 |
Yeah. I am confused. I think let’s get an adhoc build and also may be test on a few accounts. |
Great, thanks! Let me know if you find anything! |
I think I had some code/branch mess up. It's deleted and forked the branch again, it seems to be working - with/without cache clear. I have all the screenshots except Android. Finishing the checklist. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safariweb-submits-to.mov |
@@ -609,11 +609,11 @@ function getManagerAccountID(policy: OnyxEntry<Policy> | SearchPolicy, expenseRe | |||
} | |||
|
|||
const employee = policy?.employeeList?.[employeeLogin]; | |||
if (!employee) { | |||
if (!employee && !defaultApprover) { |
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.
@JKobrynski I think this is a good candidate for a unit test.
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.
All right, I'm on it!
@JKobrynski Can we add a unit test for the same and also sync with the latest main? |
…9-display-name-missing
@JKobrynski any updates on this? |
@mananjadhav I'm still on it, should be done today/tommorow morning |
thanks for the update. |
@mananjadhav done! Unit tests added |
Thanks @JKobrynski. @grgia All yours. |
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/grgia in version: 9.1.10-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
Explanation of Change
The conclusion based on my investigation is that the condition in getManagerAccountID util function was not detailed enough, it was missing a check for
defaultApprover
which prevented the function from reaching the default return in that scenario.Fixed Issues
$ #56609
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
iOS: Native
ios-compressed.mp4
MacOS: Chrome / Safari
web-compressed.mov