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

fix: Filter devices without supported versions #1967

Merged
merged 2 commits into from
May 25, 2021

Conversation

pawelpasterz
Copy link
Contributor

@pawelpasterz pawelpasterz commented May 25, 2021

Fixes #1892

Test Plan

How do we know the code works?

  1. run ./gradlew flankFullRun
  2. run flank firebase test ios models list and compare with gcloud firebase test ios models list -- there should be no different
  3. run flank firebase test android models list and compare with gcloud firebase test android models list -- there should be no different

Checklist

  • Unit tested

@pawelpasterz pawelpasterz self-assigned this May 25, 2021
@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2021

Timestamp: 2021-05-25 11:38:59
Buildscan url for ubuntu-workflow run 874724176
https://gradle.com/s/ehchph5rxvwvw

@pawelpasterz pawelpasterz force-pushed the 1892-fix-firebase-device-list branch from 21cc6ff to 5c60bf9 Compare May 25, 2021 11:03
@pawelpasterz pawelpasterz marked this pull request as ready for review May 25, 2021 12:32
fun getModels(projectId: String): List<AndroidModel> = deviceCatalog(projectId).models.orEmpty()

fun supportedVersionsAsTable(projectId: String) = fetchAndroidOsVersion(projectId).toCliTable()

fun describeSoftwareVersion(projectId: String, versionId: String) = fetchAndroidOsVersion(projectId).getDescription(versionId)
fun describeSoftwareVersion(projectId: String, versionId: String) =
fetchAndroidOsVersion(projectId).getDescription(versionId)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer:

fun describeSoftwareVersion(
    projectId: String, 
    versionId: String
) = fetchAndroidOsVersion(projectId).getDescription(versionId)

but this is just a suggestion, please check other places

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry, it was merged before I implemented changes. Will do it within another PR

@piotradamczyk5 piotradamczyk5 self-requested a review May 25, 2021 17:39
@mergify mergify bot merged commit e933280 into master May 25, 2021
@mergify mergify bot deleted the 1892-fix-firebase-device-list branch May 25, 2021 17:39
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 2021
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.

Flank displays different list of devices compared to gcloud
3 participants