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

sort devices in scan by id #221

Merged
merged 2 commits into from
Oct 25, 2018
Merged

sort devices in scan by id #221

merged 2 commits into from
Oct 25, 2018

Conversation

edaniszewski
Copy link
Contributor

In the scan result, devices were not being sorted by id. This adds the device id as a key to sort against (after plugin/sort ordinal for the device).

I'm not sure how this previously sorted devices by id without this in place..

Updated a unit test to check the sort order.

@codecov
Copy link

codecov bot commented Oct 25, 2018

Codecov Report

Merging #221 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #221   +/-   ##
=======================================
  Coverage   87.55%   87.55%           
=======================================
  Files          46       46           
  Lines        1358     1358           
=======================================
  Hits         1189     1189           
  Misses        169      169
Impacted Files Coverage Δ
synse/cache.py 83.15% <ø> (ø) ⬆️
synse/__init__.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6650dbc...823756d. Read the comment docs.

@marcoceppi
Copy link
Contributor

LGTM 👍

@edaniszewski edaniszewski merged commit 695a382 into master Oct 25, 2018
@edaniszewski edaniszewski deleted the fix-scan-device-sorting branch October 25, 2018 20:33
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.

2 participants