Skip to content

Conversation

ryanwilson
Copy link
Member

@ryanwilson ryanwilson commented Apr 11, 2022

Right now we're calling a completion handler with nil, nil when
releases are fetched but none are marked as "latest". This is an expected result - no new releases but no errors. When translated to async/await, the result is not an optional, which will crash. This turns the return type into an Optional.

Right now we're calling a completion handler with `nil, nil` when
releases are fetched but none are marked as "latest". This shouldn't
happen, and is considered an error.
@ryanwilson
Copy link
Member Author

Chatting with the App Distro team about the expected behaviour here - originally they said it should return an error but now seeing the test failing, it's worth confirming.

@ryanwilson ryanwilson added this to the Firebase 9 milestone Apr 11, 2022
@ryanwilson
Copy link
Member Author

Should fix #9604

@google-oss-bot
Copy link

google-oss-bot commented Apr 12, 2022

Size Report 1

Affected Products

  • FirebaseAppDistribution

    TypeBase (5d0cd61)Merge (8deef92)Diff
    CocoaPods?-51.5 kB? (?)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/V4iAawobiP.html

@ryanwilson ryanwilson requested a review from paulb777 April 12, 2022 15:47
@ryanwilson ryanwilson merged commit 2cbb180 into master Apr 12, 2022
@ryanwilson ryanwilson deleted the rw-9604 branch April 12, 2022 16:51
@firebase firebase locked and limited conversation to collaborators May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants