Fix AcceptSpotnanaTerms domain parameter name mismatch#84474
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
617f877 to
70f1394
Compare
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@mkhutornyi 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] |
|
@bernhardoj 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @rlinoz has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.3.34-0 🚀
|
|
@blimpich @rlinoz Could you cofirm if this is expected result? We used new @applause.expensifail.com account (as WS owner) and new @applausecard.expensifail.com account (as WS member), the other domain as member is directed to a infinite loading / blank page after clicking the "manage travel". The system message when loading the https://travel.expensify.com/ on the member side is different, it only said as "one moment, please..." and it become a blank page travelll.mp4 |
|
Yeah I think it is all good here, the inifinite loading is because the card domain didn't go to staging for some reason, but that is a different issue. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.34-2 🚀
|
Explanation of Change
See relevant slack thread (#travel channel, not accessible to all contributors)
The App client sends the domain as parameter
domainin theAcceptSpotnanaTermsAPI call, butapi.phpreadsdomainName. This causes the domain value to be empty when passed to Auth, which then falls back to the policy owner's email domain (e.g.expensify.com), failing the membership check. Domain admins on non-owner domains (e.g.cardtest.expensify.com) get "You don't have permission to enable Expensify Travel for this domain".This PR renames the
domainfield todomainNameinAcceptSpotnanaTermsParamsso it matches the backend expectation.Fixed Issues
$ #84473
Tests
cardtest.expensify.com), navigate to enable Expensify TravelOffline tests
N/A —
AcceptSpotnanaTermsis a side-effect API call that requires network connectivity. No offline behavior changes.QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation method — N/A, no user-facing copy changesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases) — N/A, no component changesDesignlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page. — N/A, no new pagesmainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps. — N/A, first reviewScreenshots/Videos
Android: Native
N/A — no UI changes, parameter rename only
Android: mWeb Chrome
N/A — no UI changes, parameter rename only
iOS: Native
N/A — no UI changes, parameter rename only
iOS: mWeb Safari
N/A — no UI changes, parameter rename only
MacOS: Chrome / Safari
N/A — no UI changes, parameter rename only