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

Prevent Google OAuth prompt on app launch #6380

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Jan 3, 2025

Fixes APP-2239

What changed (plus any additional context for devs)

If the user had pending OAuth permissions, our backups sync would spam them due to the nature of how we retry on failures. We now prevent the prompt if they don't have permissions enabled, and if it does prompt we detect the cancellation and only prompt once instead of falling through the try...catch block.

Screen recordings / screenshots

will try to capture one soon

What to test

https://rainbowhaus.slack.com/archives/C02C2FVC6N6/p1735921689825149?thread_ts=1735501963.465679&cid=C02C2FVC6N6

Copy link

linear bot commented Jan 3, 2025

@brunobar79 brunobar79 added release for release blockers and release candidate branches and removed release for release blockers and release candidate branches labels Jan 3, 2025
package.json Outdated Show resolved Hide resolved
@walmat walmat requested a review from brunobar79 January 6, 2025 15:20
package.json Outdated Show resolved Hide resolved
@walmat walmat marked this pull request as ready for review January 6, 2025 15:26
@walmat walmat changed the title Add checkPermissions flag on account check Prevent Google OAuth prompt on app launch Jan 6, 2025
@brunobar79
Copy link
Member

Launch in simulator or device for 4991c3b

Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

Not allowing permissions flow looks good ✅
Happy path looks good ✅

QA Passed

Copy link
Member

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

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

🔥 🔥 🔥

package.json Outdated Show resolved Hide resolved
@brunobar79
Copy link
Member

Launch in simulator or device for 2581b0b

@walmat walmat merged commit f9f0e84 into develop Jan 7, 2025
8 checks passed
@walmat walmat deleted the @matthew/APP-2239-new branch January 7, 2025 17:52
Copy link

sentry-io bot commented Jan 8, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Backup failed <global>(src/handlers/cloudBackup) View Issue

Did you find this useful? React with a 👍 or 👎

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.

3 participants