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

refactor: Refactor data scratch-device model #1834

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

piotradamczyk5
Copy link
Contributor

Fixes #1745

Test Plan

How do we know the code works?

  • Code is refactored according to the description in Data scratch - device model #1745
  • commands working property
    • android models describe
    • ios models describe
    • android models list
    • ios models describe
  • iOS and Android run validation works properly

Checklist

  • Unit tested

@github-actions
Copy link
Contributor

github-actions bot commented Apr 22, 2021

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

@piotradamczyk5 piotradamczyk5 force-pushed the 1745_refactor_device_models branch from 344d0bb to 9bfcdcb Compare April 22, 2021 15:35
@github-actions
Copy link
Contributor

Timestamp: 2021-04-22 15:40:28
Buildscan url for ubuntu-workflow run 774754653
https://gradle.com/s/zvo2vzrnd6b46

Copy link
Contributor

@adamfilipow92 adamfilipow92 left a comment

Choose a reason for hiding this comment

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

  • Code looks good
  • All test pass
    👍

Copy link
Contributor

@Sloox Sloox left a comment

Choose a reason for hiding this comment

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

It looks good. Just a simply naming change. It might not even be necessary.

}

internal fun List<IosModel>.toIosApiModel(): List<DeviceModel.Ios> = map { googleiOSModel ->
DeviceModel.Ios(
Copy link
Contributor

Choose a reason for hiding this comment

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

The capitialization of iOS is always a strange one to me. should it be?

Suggested change
DeviceModel.Ios(
DeviceModel.IOS(

or

Suggested change
DeviceModel.Ios(
DeviceModel.iOS(

or just leave it is as it is ?

@mergify mergify bot merged commit 7ce2e3e into master Apr 23, 2021
@mergify mergify bot deleted the 1745_refactor_device_models branch April 23, 2021 15:19
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 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.

Data scratch - device model
3 participants