-
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
Don't apply failure data for 460 jsonCode #49759
Conversation
finishing up screenshots but we can open this up for C+ review |
@ishpaul777 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] |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeWhatsApp.Video.2024-09-26.at.10.58.31.PM.mp4Android: mWeb ChromeWhatsApp.Video.2024-09-26.at.10.41.47.PM.mp4iOS: NativeScreen.Recording.2024-09-26.at.7.22.53.PM.moviOS: mWeb SafariScreenRecording_09-26-2024.18-52-12_1.MP4MacOS: Chrome / SafariScreen.Recording.2024-09-26.at.6.35.42.PM.movMacOS: DesktopScreen.Recording.2024-09-26.at.10.46.14.PM.mov |
Bug?: On mweb i have this Empty RBR when admin role is changed to member ScreenRecording_09-26-2024.18-52-12_1.MP4Something similar with with IOS on workspace list page Screen.Recording.2024-09-26.at.7.22.53.PM.mov |
@ishpaul777 that looks like it might be a separate 🐛 Or maybe, we need to update the back-end to return a 460 in that case. |
okay, one small concern i am not sure if its possible in app or not, but have we thought about the case when failuredata is applied to reset the |
good point @ishpaul777. Discussed in slack and I think if it does come up, we can just move the loading state cleanup from |
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!
let bankDisplayName = bankName ?? addressName; | ||
if (accountNumber && bankDisplayName !== accountNumber) { | ||
bankDisplayName += ` ${accountNumber.slice(-5)}`; | ||
} |
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.
what is this change for?
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.
bankDisplayName is unused variable
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.
Yeah, sorry just doing some scope-creep cleanup of unused code
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/roryabraham in version: 9.0.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
Details
For Expensify, a 460
jsonCode
means "admin required". In other words, the user is trying to use an API command to modify a policy when they are not an admin of that policy.Fixed Issues
$ #49753
PROPOSAL: https://expensify.slack.com/archives/C01GTK53T8Q/p1727303751986769?thread_ts=1727300442.697579&cid=C01GTK53T8Q
Tests / QA Steps
Settings
->Workspaces
-><workspace>
->Members
, and invite a new admin to the policy. Let's call this user Bob.Add Approvals
, but most Policy settings should work.Settings
->Workspaces
-><workspace>
->Members
, and change Bob's status fromAdmin
toMember
.Settings
->Workspaces
-><workspace>
, you do not see a red dot next to the workspace.Offline tests
included in test/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 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
Android: Native
android.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov