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

As a REST Consumer I want to remove translation from all Versions

    Details

    • Type: Story Story
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0, 2.0.0
    • Component/s: Platform > REST API v2
    • Labels:
      None
    • Story Points:
      1

      Description

      The introduced PHP API ContentService::removeTranslation method needs to be directly available via REST API.

      There is already a mention of this in the REST API spec for the endpoint /content/objects/<ID>/<lang_code>.
      Controller for this endpoint is not implemented.

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          "blocked" by the behaviour of the API: when deleting a language from all versions, if an archived version only has the language being deleted, then an error is thrown by the public API. Code is added to the REST API to delete the version if it only has that language.

          I don't see a use-case where we'd want that exception. The method is meant to remove that translation. We don't need empty versions. Archived versions are removed after a while anyway. If you don't want archives removed, you should use the method that removes a language from a draft, and publish a new one.

          Show
          Bertrand Dunogier added a comment - "blocked" by the behaviour of the API: when deleting a language from all versions, if an archived version only has the language being deleted, then an error is thrown by the public API. Code is added to the REST API to delete the version if it only has that language. I don't see a use-case where we'd want that exception. The method is meant to remove that translation. We don't need empty versions. Archived versions are removed after a while anyway. If you don't want archives removed, you should use the method that removes a language from a draft, and publish a new one.
          Hide
          Bertrand Dunogier added a comment -

          Created EZP-28271 for this.

          Show
          Bertrand Dunogier added a comment - Created EZP-28271 for this.
          Show
          Dominika Kurek added a comment - Doc PR: https://github.com/ezsystems/developer-documentation/pull/103
          Hide
          Michał Szołtysek added a comment -

          QA Approved with eZ Platform v1.13.0-beta1 with PR branch.

          Show
          Michał Szołtysek added a comment - QA Approved with eZ Platform v1.13.0-beta1 with PR branch.
          Hide
          Andrzej Longosz added a comment -

          Merged into 6.13@375d711

          Show
          Andrzej Longosz added a comment - Merged into 6.13@375d711

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrzej Longosz
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h

                  Agile