-
Notifications
You must be signed in to change notification settings - Fork 617
Fad only show UI for basic config #3260
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
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected Products
Test Logs
Notes |
firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/DialogUtils.java
Outdated
Show resolved
Hide resolved
firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/DialogUtils.java
Outdated
Show resolved
Hide resolved
firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/DialogUtils.java
Outdated
Show resolved
Hide resolved
firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/DialogUtils.java
Outdated
Show resolved
Hide resolved
firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/DialogUtils.java
Outdated
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Outdated
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Outdated
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/DialogUtils.java
Outdated
Show resolved
Hide resolved
...app-distribution/src/main/java/com/google/firebase/app/distribution/TesterSignInManager.java
Outdated
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
showDialogTask.setException( | ||
new FirebaseAppDistributionException( | ||
ErrorMessages.APP_BACKGROUNDED, | ||
FirebaseAppDistributionException.Status.UPDATE_NOT_AVAILABLE)); |
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.
Seems like there are scenarios like this where the status doesn't exactly align with what is going on (here its not that an update isn't available). Our logs do have the more specific case to give the user a better sense of whats going on, but do we want to look at these statuses to make them more specific?
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.
This is a really good call. I've added an error message enum to our API and made a note to add it to the API addendum.
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.
Agreed, good callout. There are a bunch of places like this where the error status and/or message does not align with the actual situation. I'm currently going through them all as part of the error handling cleanup, so @rachaprince if you want I can handle this in a followup since this was just moved code.
For this case though, looking at the statuses, AUTHENTICATION_FAILED
might work if we consider "authentication" to be synonymous with "tester sign in."
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.
Actually I think your new "no foreground activity" error seems like a good one to add, could be useful elsewhere. AUTHENTICATION_FAILED
probably implies that the actual authentication was not allowed, which would be misleading.
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
...ribution/src/test/java/com/google/firebase/app/distribution/FirebaseAppDistributionTest.java
Show resolved
Hide resolved
showDialogTask.setException( | ||
new FirebaseAppDistributionException( | ||
ErrorMessages.APP_BACKGROUNDED, | ||
FirebaseAppDistributionException.Status.UPDATE_NOT_AVAILABLE)); |
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.
This is a really good call. I've added an error message enum to our API and made a note to add it to the API addendum.
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
...main/java/com/google/firebase/app/distribution/FirebaseAppDistributionLifecycleNotifier.java
Show resolved
Hide resolved
The public api surface has changed for the subproject firebase-app-distribution: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
showDialogTask.setException( | ||
new FirebaseAppDistributionException( | ||
ErrorMessages.APP_BACKGROUNDED, | ||
FirebaseAppDistributionException.Status.UPDATE_NOT_AVAILABLE)); |
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.
Agreed, good callout. There are a bunch of places like this where the error status and/or message does not align with the actual situation. I'm currently going through them all as part of the error handling cleanup, so @rachaprince if you want I can handle this in a followup since this was just moved code.
For this case though, looking at the statuses, AUTHENTICATION_FAILED
might work if we consider "authentication" to be synonymous with "tester sign in."
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Outdated
Show resolved
Hide resolved
The public api surface has changed for the subproject firebase-app-distribution: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Outdated
Show resolved
Hide resolved
...distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistribution.java
Outdated
Show resolved
Hide resolved
...app-distribution/src/main/java/com/google/firebase/app/distribution/TesterSignInManager.java
Outdated
Show resolved
Hide resolved
showDialogTask.setException( | ||
new FirebaseAppDistributionException( | ||
ErrorMessages.APP_BACKGROUNDED, | ||
FirebaseAppDistributionException.Status.UPDATE_NOT_AVAILABLE)); |
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.
Actually I think your new "no foreground activity" error seems like a good one to add, could be useful elsewhere. AUTHENTICATION_FAILED
probably implies that the actual authentication was not allowed, which would be misleading.
...main/java/com/google/firebase/app/distribution/FirebaseAppDistributionLifecycleNotifier.java
Show resolved
Hide resolved
...ribution/src/test/java/com/google/firebase/app/distribution/FirebaseAppDistributionTest.java
Outdated
Show resolved
Hide resolved
...ribution/src/test/java/com/google/firebase/app/distribution/FirebaseAppDistributionTest.java
Show resolved
Hide resolved
Looks like you just need to run |
updatetonewreleaseifavailable
method