Skip to content
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

Add safety net for timezone in DateUtils #5307

Conversation

kidroca
Copy link
Contributor

@kidroca kidroca commented Sep 16, 2021

Details

Handle the cases where timezone is used before the Onyx connection has provided a value
or when the value lacks timezone
Handle response errors in the API.Get in AuthScreens

Fixed Issues

$ #5305

Tests

  1. Log out
  2. Log in
  3. Refresh the page
  4. You should not be stuck in a white screen after following these steps

Test that there are no regressions regarding locale assignment

  1. Go to settings -> Preferences
  2. Pick a different locale
  3. Refresh the app
  4. There should be no regressions

QA Steps

Same as above

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

New.Expensify.-.Google.Chrome.2021-09-16.22-48-31.mp4

Mobile Web

Android.Emulator.-.Pixel_2_API_29_5554.2021-09-16.22-54-12.mp4

Desktop

iOS

Android

Android.Emulator.-.Pixel_2_API_29_5554.2021-09-16.22-51-56.mp4

@kidroca kidroca requested a review from a team as a code owner September 16, 2021 19:49
@MelvinBot MelvinBot requested review from Gonals and removed request for a team September 16, 2021 19:50
@kidroca
Copy link
Contributor Author

kidroca commented Sep 16, 2021

I'm not able to test iOS and Desktop ATM, I can try them later
Will post Android and mWeb (form Android) in a bit

Copy link
Contributor

@luacmartins luacmartins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and tested well! Adding desktop and iOS recordings here for reference.

Desktop

desktop.mov

iOS

ios.mov

@github-actions
Copy link
Contributor

⚠️ ⚠️ Heads up! This pull request has the CP Staging label. ⚠️ ⚠️
Merging it will cause it to be immediately deployed to staging, even if the open StagingDeployCash deploy checklist is locked.

@luacmartins
Copy link
Contributor

Merging to fix a deploy blocker! Sorry @Gonals!

@luacmartins luacmartins merged commit ea45c24 into Expensify:main Sep 16, 2021
github-actions bot pushed a commit that referenced this pull request Sep 16, 2021
…ial-value-fix

Add safety net for timezone in DateUtils

(cherry picked from commit ea45c24)
@OSBotify
Copy link
Contributor

🚀 Cherry-picked to staging by @luacmartins in version: 1.0.99-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

@isagoico
Copy link

Tested this PR and it was a pass. @AndrewGable not sure if you want to check on your side to double check.

@AndrewGable
Copy link
Contributor

I can login with no white screens 👍

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Jag96 in version: 1.0.99-4 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @luacmartins in version: 1.0.99-5 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Jag96 in version: 1.1.0-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants