-
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
dev: removed API mocks and use actual account #34792
Conversation
@mountiny lovely thanks! Do you know whether it's safe to put the partner credentials into the source code? Or should that be put into secrets? (asked here) |
I feel like we should put this to secrets to limit anyone messing around with the account |
@0xmiroslav 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] |
Note: we still need to update the GitHub action to use the new environment variables for the partner account setup. |
Updated the code, can you have a second look please @AndrewGable ? |
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.
Looking good, you have conflicts
Okay, I think we are good here, can we merge @AndrewGable ? |
Tests are failing because it says package-json.lock might have a diff, can you confirm that's not true? |
not true. Snyk fails on all PRs where package file is changed |
Interesting @aimane-chnaif - Thanks for that context. I am going to discuss internally and probably reach out to that vendor as that shouldn't be happening.. |
I actually installed a package for this |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/A - Tests Android: mWeb ChromeN/A - Tests iOS: NativeN/A - Tests iOS: mWeb SafariN/A - Tests MacOS: Chrome / SafariN/A - Tests MacOS: DesktopN/A - Tests |
Skipping Snyk tests as there seems to be an issue with it. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@@ -139,6 +139,7 @@ | |||
"react-native-image-picker": "^5.1.0", | |||
"react-native-image-size": "git+https://github.com/Expensify/react-native-image-size#8393b7e58df6ff65fd41f60aee8ece8822c91e2b", | |||
"react-native-key-command": "^1.0.6", | |||
"react-native-launch-arguments": "^4.0.2", |
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.
The error you listed seems to be with react-native-image-manipulator, which isn't the library that was added? |
yes but that error was gone after reverting this PR locally. |
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.4.33-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|
Details
We want to use a heavy traffic account with real data to better catch regressions, as pointed out here.
Here is a screenshot of a e2e test run where we can see that its picking up the recorded network response, and is using that one instead of making a real request to the server:
Architecture outline:
A
NetworkInterceptor.ts
module was written. It:fetch
globally with a custom implementationfetch
request we cache the request and the responsefetch
request is already in the NetworkInterceptors cache instead of making a real API request the value from the cache is used.Other notable changes:
I had to fix when
App.setSidebarLoaded
gets called. Earlier it was just called in theuseEffect
of the Sidebar, however, that would fire even when no items are displayed yet in the list. Now it's being called when the first item in the list is rendered (onLayout). Its important to have that to detect when the app is truly loaded.Fixed Issues
$ #34797
PROPOSAL:
Tests
This is a dev/CI only change and needs no tests.
Offline tests
QA Steps
This is a dev/CI only change and needs no tests.
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
This is a dev/CI only change and needs no screenshots.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop