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

Change the device sort to incorporate name and OS version. #196

Merged
merged 1 commit into from
Nov 4, 2015
Merged

Change the device sort to incorporate name and OS version. #196

merged 1 commit into from
Nov 4, 2015

Conversation

hallc
Copy link
Contributor

@hallc hallc commented Nov 4, 2015

The original sorting algorithm placed devices before simulators and
connected devices before disconnected devices. It did not account for
device name and that made it difficult to find specific entries in a
long list.

This change places devices before simulators, then sorts by name and
OS version. Connection status is no longer used to sort.

Here are the first five items on our Xcode server under the old sort:

  • iPhone 4s 7.1
  • iPhone 5 7.1
  • iPhone 5s 7.1
  • iPad 2 7.1
  • iPad Retina 7.1

Here are the first five items on our Xcode server under the new sort:

  • iPad 2 7.1
  • iPad 2 8.0
  • iPad 2 8.1
  • iPad 2 8.2
  • iPad 2 8.3

This pattern makes it much easier to manually select the devices used
by a build template.

Fixes #195

The original sorting algorithm placed devices before simulators and
connected devices before disconnected devices.  It did not account for
device name and that made it difficult to find specific entries in a
long list.

This change places devices before simulators, then sorts by name and
OS version.  Connection status is no longer used to sort.

Here are the first five items on our Xcode server under the old sort:

- iPhone 4s 7.1
- iPhone 5 7.1
- iPhone 5s 7.1
- iPad 2 7.1
- iPad Retina 7.1

Here are the first five items on our Xcode server under the new sort:

- iPad 2 7.1
- iPad 2 8.0
- iPad 2 8.1
- iPad 2 8.2
- iPad 2 8.3

This pattern makes it much easier to manually select the devices used
by a build template.
@buildasaur
Copy link
Collaborator

Result of Integration 1

Duration: 5 minutes and 12 seconds
Result: All 33 tests passed, but please fix 2 warnings.
Test Coverage: 23%

czechboy0 added a commit that referenced this pull request Nov 4, 2015
…ingSystem

Change the device sort to incorporate name and OS version.
@czechboy0 czechboy0 merged commit ea4030b into buildasaurs:master Nov 4, 2015
@czechboy0
Copy link
Member

Great, cheers @hallc!

@hallc hallc deleted the SortDevicesByNameAndOperatingSystem branch November 4, 2015 18:38
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