-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN-6337 Dropdown Show Version Descending #14828
DYN-6337 Dropdown Show Version Descending #14828
Conversation
I've modified the PackageVersions list so it will return the packages versions descending (as is shown in the package detail).
UI Smoke TestsTest: success. 2 passed, 0 failed. |
@@ -36,7 +36,7 @@ public int Votes | |||
public string LatestVersion { get { return Header.versions != null ? Header.versions[Header.versions.Count - 1].version : String.Empty; } } | |||
public string LatestVersionCreated { get { return Header.versions[Header.versions.Count - 1].created; } } | |||
|
|||
public IEnumerable<string> PackageVersions { get { return Header.versions.Select(x => x.version); } } | |||
public IEnumerable<string> PackageVersions { get { return Header.versions.OrderByDescending(x => x.version).Select(x => x.version); } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both OrderByDescending(x => x.version)
and Select(x => x.version)
? I thought only the first call is enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purpose
I've modified the PackageVersions list so it will return the packages versions descending (as is shown in the package detail).
adding @dnenov since is mentioned in the Jira task
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
I've modified the PackageVersions list so it will return the packages versions descending (as is shown in the package detail).
Reviewers
@QilongTang
FYIs
@dnenov