Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26528

As a Developer I want access to getSortClauseFromLocation in API

    Details

      Description

      Story is about extracting the current private logic in Location Service and User Service to simplify getting sort clause based on a Location object, thus:

      • Avoid Developers having to duplicate this mapping in own code, for mapping Location->sort* info to the correct Search sort clauses.
      • Reduce code duplication internally in Repository.

      This method will be exposed on SearchService with new method: getSortClauseFromLocation(Location $location) returning array of sort clauses for direct use on LocationQuery->sortClauses.


      Originial desc:
      With this SortClauseMapper is it possible to get the SortClause objects from a location.
      It's accessible over the SearchService::getSortClauseFromLocation method.

        Activity

        Show
        Sebastian Blank added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/1809
        Show
        André Rømcke added a comment - Merged: https://github.com/ezsystems/ezpublish-kernel/commit/9ff6cbd038f0a89fdb1391937d04567123eafc78
        Hide
        Rui Silva (Inactive) added a comment -

        Tested and approved by QA for master, and respective doc validated as well.

        Show
        Rui Silva (Inactive) added a comment - Tested and approved by QA for master, and respective doc validated as well.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebastian Blank
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: