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

As a Developer I'd like sudo() to be exposed on API

    Details

      Description

      A bit overdue small change.

      Needed so:

      • It can be found easier, and so we can document it
      • So it can become official so Developers feels safe using it

      Note, this does not:

      • Remove the need to continue adding bulk loading API's that don't throw but instead just filters on permission
        • Remove the possible notion of adding arguments on these load methods to opt out of permission checking, like is the case on find*()
      • Fix the fact that sudo() does not have relevant return type hinting by it's nature

        Activity

        André Rømcke created issue -
        André Rømcke made changes -
        Field Original Value New Value
        Status Backlog [ 10000 ] Specification [ 10002 ]
        Assignee André Rømcke [ andre.romcke@ez.no ]
        André Rømcke made changes -
        Description So:
        - It can be found easier, and so we can document it
        - So it can become official so Developers feels safe using it

        Note, this does _not_:
        - Remove the need to continue adding bulk loading API's that don't throw but instead just filters on permission
        -- Remove the possible notion of adding arguments on these load methods to opt out of permission checking, like is the case on {{find*()}}
        - Fix the fact that sudo() does not have relevant return type hinting by it's nature
        A bit overdue small change.

        Needed so:
        - It can be found easier, and so we can document it
        - So it can become official so Developers feels safe using it

        Note, this does _not_:
        - Remove the need to continue adding bulk loading API's that don't throw but instead just filters on permission
        -- Remove the possible notion of adding arguments on these load methods to opt out of permission checking, like is the case on {{find*()}}
        - Fix the fact that sudo() does not have relevant return type hinting by it's nature
        André Rømcke made changes -
        Status Specification [ 10002 ] Specification Review [ 10038 ]
        André Rømcke made changes -
        Status Specification Review [ 10038 ] Specification Done [ 10003 ]
        André Rømcke made changes -
        Status Specification Done [ 10003 ] Development [ 3 ]
        Hide
        André Rømcke added a comment -

        Merged for 2.5:
        https://github.com/ezsystems/ezpublish-kernel/commit/34ee12f18fb29c07482c1180e3e6278d9542203a

        Doc:
        This means we can document it as a official way to skip permissions checks when there are use cases for it.

        Show
        André Rømcke added a comment - Merged for 2.5: https://github.com/ezsystems/ezpublish-kernel/commit/34ee12f18fb29c07482c1180e3e6278d9542203a Doc: This means we can document it as a official way to skip permissions checks when there are use cases for it.
        André Rømcke made changes -
        Status Development [ 3 ] Development Done [ 5 ]
        Fix Version/s 2.5.0-beta1 [ 15102 ]
        Dominika Kurek made changes -
        Status Development Done [ 5 ] Documentation [ 10010 ]
        Show
        Dominika Kurek added a comment - Doc PR: https://github.com/ezsystems/developer-documentation/pull/523
        Dominika Kurek made changes -
        Status Documentation [ 10010 ] Documentation Done [ 10040 ]
        Assignee André Rømcke [ andre.romcke@ez.no ]
        Dominika Kurek made changes -
        Status Documentation Done [ 10040 ] QA [ 10008 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Backlog Backlog Specification Specification
        12s 1 André Rømcke 19/Jan/19 4:02 PM
        Specification Specification Specification Review Specification Review
        12d 17h 46m 1 André Rømcke 01/Feb/19 9:48 AM
        Specification Review Specification Review Specification Done Specification Done
        5s 1 André Rømcke 01/Feb/19 9:48 AM
        Specification Done Specification Done Development Development
        4s 1 André Rømcke 01/Feb/19 9:48 AM
        Development Development Development Done Development Done
        53s 1 André Rømcke 01/Feb/19 9:49 AM
        Development Done Development Done Documentation Documentation
        42m 30s 1 Dominika Kurek 01/Feb/19 10:32 AM
        Documentation Documentation Documentation Done Documentation Done
        2d 22h 19m 1 Dominika Kurek 04/Feb/19 8:51 AM
        Documentation Done Documentation Done QA QA
        9s 1 Dominika Kurek 04/Feb/19 8:51 AM

          People

          • Assignee:
            Unassigned
            Reporter:
            André Rømcke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: