-
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
[No QA] Prevent setting a pusher suffix for the staging or production api #13297
Conversation
@rushatgabhane @Luke9389 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] |
FYI, there's no need to test on all platforms because I only modified a script. |
Removing Rushat just b/c this is an internal PR - I don't think C+ have pusher suffixes |
@Beamanator Would you please fill out the reviewer checklist? It should be easy since most of it doesn't apply. |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
✋ 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 production by @chiragsalian in version: 1.2.38-6 🚀
|
cc @Beamanator since you expressed interest in this
Details
When testing on dev against the staging or production API, the
set-pusher-suffix
script adds a dev pusher suffix, which means that Pusher won't work correctly.I have modified this script so that it does nothing if we are pointing to the staging or production API. To determine that I looked at the value of
EXPENSIFY_URL
in the .env file because it is set tohttps://www.expensify.com/
on staging and production, andhttps://www.expensify.com.dev/
on dev.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/244501
PROPOSAL: N/A
Tests
Set up NewDot dev to hit the staging API, then make sure Pusher works.
.env
file to.env.dev
.env.staging
to.env
npm run desktop
.env
and make sure a pusher dev suffix was not addedShell tests
With a
.env
file.env
file is set up (copy fromenv.example
if needed).env
(if it exists)scripts/set-pusher-suffix.sh
Without one
.env
file to.env.dev
so that you don't have a.env
filescripts/set-pusher-suffix.sh
.env
file is created and the pusher suffix is addedOffline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting 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)Screenshots/Videos
All platforms aside from Desktop are not applicable.
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
pusher-suffix-staging.mov
iOS
Android