Skip to content

Enhance alphabetic sorting and place deprecated platform at the bottom #1278

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

Merged
merged 7 commits into from
May 7, 2021

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented May 6, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

feature

  • What is the current behavior?

Sorting is handled in cli and not in commands

  • What is the new behavior?

Sorting is significantly enhanced and it's made at commands level: platforms are alphabetically sorted even in grpc inferface. Also Deprecated platforms are placed at the bottom.

it shouldn't

  • Other information:

See how to contribute

@umbynos umbynos self-assigned this May 6, 2021
@silvanocerza silvanocerza requested a review from a team May 6, 2021 15:43
Copy link

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

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

Sorting is now consistent across multiple search operations for the same terms.
The order will not change and DEPRECATED cores are pushed to the bottom of the list.
LGTM

@umbynos umbynos merged commit 6a201aa into master May 7, 2021
@umbynos umbynos deleted the umbynos/add_deprecation_in_platforms branch May 7, 2021 08:08
silvanocerza pushed a commit that referenced this pull request May 10, 2021
#1278)

* updated tests

* add first draft of sorting

* finished/fixed implementation of tests

* implementation of sorting function is now correct

* removed sorting from the cli (previously added in commands) and add [DEPRECATED] to the name

* fixed deprecation notice not being printed if installed.json was already present

* fix formatting
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