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 streams case-insensitive in API. #14262

Merged
merged 9 commits into from Dec 21, 2022

Conversation

dennisoelkers
Copy link
Member

@dennisoelkers dennisoelkers commented Dec 20, 2022

Description

Motivation and Context

Prior to this PR, sorting streams by title/description/... sorted them lexicographically, but case-sensitive. This is most probably not what users are expecting.

This change is now adding functionality which is lower-casing the sort field before applying the sort to it.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@dennisoelkers dennisoelkers marked this pull request as ready for review December 20, 2022 08:30
@dennisoelkers dennisoelkers force-pushed the fix/sort-streams-case-insensitive branch from 0dd082f to 86fadf3 Compare December 20, 2022 09:46
Copy link
Contributor

@janheise janheise left a comment

Choose a reason for hiding this comment

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

LGTM!

@janheise janheise self-requested a review December 21, 2022 08:46
@linuspahl linuspahl merged commit 29c5976 into master Dec 21, 2022
@linuspahl linuspahl deleted the fix/sort-streams-case-insensitive branch December 21, 2022 12:15
ousmaneo pushed a commit that referenced this pull request Jan 11, 2023
* Sort streams case-insensitive in API.

* Extracting index set title before lowercasing it.

* Adding test case.

* Adding changelog snippet.

* Fixing up sorting by status, do not project index set title when not needed.

* Using correct field for sorting.

* Fixing up order of expected elements.

* Cleaning up.

* Removing unused import.
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.

None yet

3 participants