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

EZP-32111: Added ContentTranslatedName sort clause #143

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs commented Dec 5, 2020

Question Answer
JIRA issue EZP-32111
Type feature
Target eZ Platform version v3.3
BC breaks no
Doc needed yes

Added \eZ\Publish\API\Repository\Values\Content\Query\SortClause\ContentTranslatedName which allows sort search results using translated content name

$query = new Query([
    'query' => new Criterion\MatchAll(),
    'sortClauses' => [
        new SortClause\ContentTranslatedName(),
    ],
]);

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly (master for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Drop bcd7039 after EZP-32108: Added CustomField sort clause #135 merge
  • Asked for a review (ping @ezsystems/php-dev-team).

@adamwojs adamwojs force-pushed the ezp_32111_sort_by_translation_name branch from bcd7039 to 1ce2cec Compare December 10, 2020 13:09
@sonarcloud
Copy link

sonarcloud bot commented Dec 10, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@adamwojs adamwojs merged commit 9f9e6ac into master Dec 10, 2020
@adamwojs adamwojs deleted the ezp_32111_sort_by_translation_name branch December 10, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Development

Successfully merging this pull request may close these issues.

5 participants