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

Add loadRelatedContent() and loadEmbedContent() to the API

    Details

      Description

      These methods should check content/view_embed permissions and filter out those not accessible, which would remove the need to check for the same using Repository::sudo() in:

      • eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5
      • eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController

      Ref:

      https://github.com/ezsystems/ezpublish-kernel/pull/490
      https://github.com/ezsystems/ezpublish-kernel/pull/644

      Both methods should check for the same permissions, but if for example content/view_relation is going to be introduced in the future it might make sense to implement them both.

        Issue Links

          Activity

          Petar Spanja (Inactive) created issue -
          Petar Spanja (Inactive) made changes -
          Field Original Value New Value
          Description These methods should check content/view_embed permissions, which would remove the need to check for the same in:

          * eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5
          * eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController

          Ref:

          https://github.com/ezsystems/ezpublish-kernel/pull/490
          https://github.com/ezsystems/ezpublish-kernel/pull/644

          Both methods should check for the same permissions, but if for example content/view_relation is going to be introduced in the future it might make sense to implement them both.
          These methods should check content/view_embed permissions, which would remove the need to check for the same using Repository::sudo() in:

          * eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5
          * eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController

          Ref:

          https://github.com/ezsystems/ezpublish-kernel/pull/490
          https://github.com/ezsystems/ezpublish-kernel/pull/644

          Both methods should check for the same permissions, but if for example content/view_relation is going to be introduced in the future it might make sense to implement them both.
          Petar Spanja (Inactive) made changes -
          Link This issue discovered while testing EZP-21438 [ EZP-21438 ]
          André Rømcke made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          André Rømcke made changes -
          Status Confirmed [ 10037 ] Backlog [ 10000 ]
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Remaining Estimate 5 hours [ 18000 ]
          André Rømcke made changes -
          Original Estimate 5 hours [ 18000 ]
          André Rømcke made changes -
          Sprint Ventoux Sprint 4 [ 25 ]
          André Rømcke made changes -
          Rank Ranked lower
          André Rømcke made changes -
          Description These methods should check content/view_embed permissions, which would remove the need to check for the same using Repository::sudo() in:

          * eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5
          * eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController

          Ref:

          https://github.com/ezsystems/ezpublish-kernel/pull/490
          https://github.com/ezsystems/ezpublish-kernel/pull/644

          Both methods should check for the same permissions, but if for example content/view_relation is going to be introduced in the future it might make sense to implement them both.
          These methods should check content/view_embed permissions and filter out those not accessible, which would remove the need to check for the same using Repository::sudo() in:

          * eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5
          * eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController

          Ref:

          https://github.com/ezsystems/ezpublish-kernel/pull/490
          https://github.com/ezsystems/ezpublish-kernel/pull/644

          Both methods should check for the same permissions, but if for example content/view_relation is going to be introduced in the future it might make sense to implement them both.
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Summary Add ContentService::loadRelatedContent() and ContentService::loadEmbedContent() to the API Add loadRelatedContent() and loadEmbedContent() to the API
          André Rømcke made changes -
          Rank Ranked lower
          André Rømcke made changes -
          Sprint Ventoux Sprint 4 [ 25 ]
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Fix Version/s 5.3 [ 11282 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 60397 ] EZ* Development Workflow [ 69673 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 69673 ] EZEE Development Workflow [ 107967 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Petar Spanja (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 5 hours
                5h
                Remaining:
                Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - Not Specified
                Not Specified