-
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
Handle API errors to trigger force upgrades of the app #32326
Conversation
Will do some testing for this one tomorrow and get some design feedback. |
…t back in the future)
Can you tell me why? I think you can force the screen to show and confirm the styles look OK? Let me know how I can help. My comment here is suggesting that you should be able to test on all platforms by forcing the screen to show. Maybe it looked like I implied we did not need to test on the other platforms? We should test on all platforms! Thanks! |
I got the screen with overriding network request in Chrome Devtools for Web Chrome and directly throwing the error in HttpUtils for Desktop. I tried throwing the error directly in HttpUtils with iOS Safari but the update screen does not show up. I think the error is caught somewhere up? Let me try again once. I'll get back if I need help. I will finish this up today. Thanks. |
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
Thanks for the review! @c3024
This is the same in the mock provided by design so I believe the intention is for the main view to be centered. I think it looks pretty decent - people will see this very very very infrequently in any case 😄 But speak now or forever hold your peace |
This one's just waiting for a final review from an internal reviewer if @puneetlath @grgia @MonilBhavsar have a chance to give a final review. 🙇 |
Bump for reviews. |
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.
@marcaaron I commented here yesterday https://github.com/Expensify/App/pull/32326/files#r1461660832
That's the only clarification I need. Looks good overall
@puneetlath @grgia would one of you mind reviewing and/or approving this? Checked out @MonilBhavsar's question and don't think it's a blocker. |
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.
Looks good to me!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
This PR broke my development environment, as it introduced a bunch (~20) of require cycles (thus making modules undefined).
First documented here: |
@marcaaron I went ahead with straight revert to unblock the testing environment nad fix the crash. Seems like there must have been some issue after merging with main as you have tested on android and it clearly worked. Hopefully it will be quick fix |
There are two cycles.
|
Oh great 😄 |
@c3024 Did you test on Android here? Curious how we missed this one.. |
I remember fixing these issues at one point. And they came back. I think maybe when I tried to resolve some unverified commits I must have reintroduced the bad code. |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.31-7 🚀
|
cc @grgia in case you want to help review?
cc @puneetlath if you can double check the changes where I am removing the migration for the
participants
key 🙏Details
Adds an update required view and allows for deprecating older App versions.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/340997
Tests
Setup:
Apply this diff so that the upgrade works. It will be disabled on dev and staging:
Request::MINIMUM_APP_VERSION
variable here so that it is higher than the current app version.Request::MINIMUM_APP_VERSION
Request::MINIMUM_APP_VERSION
variable here so that it is higher than the current app versionTest "Update" button behavior
Web/mWeb - App should refresh page
Android - App should go to the Play Store
iOS - App should go to the App Store
Desktop - App should auto
Offline tests
N/A
QA Steps
QA is not possible for these changes.
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
Note - I tested on all platforms. However, there were some changes to the body copy so the screenshots do not 100% reflect where we landed.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop