Details

      Description

      REST API for permission lookup in the public PHP API
      Workshop notes: https://docs.google.com/document/d/10H8Z3kOKSJmovnfNVR-j8Z41jtrFoKQk3Qc0TqH0-ZA/edit#heading=h.jkrw4436749a

      Use case: Toggle UI elements depending on user permissions. What is needed is

      • PHP Repository API possibility to do reverse lookup on permissions: https://jira.ez.no/browse/EZP-26000
      • Extend REST to add permissions info in response, this should vary by user hash (this story)
      • Expose/use this info in REST client(s)
      • Use this info in UI to toggle buttons / actions

        Issue Links

          Activity

          André Rømcke created issue -
          André Rømcke made changes -
          Field Original Value New Value
          Epic Link EZP-23738 [ 43207 ]
          André Rømcke made changes -
          Link This issue clones EZP-26000 [ EZP-26000 ]
          André Rømcke made changes -
          Assignee Petar Spanja [ petar.spanja@ez.no ]
          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 -
          Status Backlog [ 10000 ] InputQ [ 10001 ]
          André Rømcke made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Hide
          Gunnstein Lye added a comment -

          We want to fetch both the content and its permissions in one request, yes? Since we need to include the user hash we can't use the existing /content/objects/<ID>, but could use something like /content/objects/<ID>/permissions/<userhash>.

          Show
          Gunnstein Lye added a comment - We want to fetch both the content and its permissions in one request, yes? Since we need to include the user hash we can't use the existing /content/objects/<ID> , but could use something like /content/objects/<ID>/permissions/<userhash> .
          Gunnstein Lye made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Hide
          André Rømcke added a comment -

          It needs to be a separate endpoint, maybe ala what you describe indeed, but be aware it will need location context if there is one to give proper reply for locations.

          There is a separate Epic assigned to Bertrand about embedding this and other things into content/location responses. So for this to work location and content info will need to have links on them that can be expanded by this feature (see specs for links between entities already there).

          Show
          André Rømcke added a comment - It needs to be a separate endpoint, maybe ala what you describe indeed, but be aware it will need location context if there is one to give proper reply for locations. There is a separate Epic assigned to Bertrand about embedding this and other things into content/location responses. So for this to work location and content info will need to have links on them that can be expanded by this feature (see specs for links between entities already there).
          Gunnstein Lye logged work - 14/Jul/16 2:30 PM
          • Time Spent:
            4 hours
             

            .

          Gunnstein Lye made changes -
          Status Development [ 3 ] Backlog [ 10000 ]
          Gunnstein Lye made changes -
          Status Backlog [ 10000 ] Development [ 3 ]
          Hide
          Gunnstein Lye added a comment -
          Show
          Gunnstein Lye added a comment - Spec work in progress: https://github.com/ezsystems/ezpublish-kernel/pull/1730
          Gunnstein Lye made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 4 hours [ 14400 ]
          Worklog Id 60204 [ 60204 ]
          Gunnstein Lye logged work - 15/Jul/16 1:30 PM
          • Time Spent:
            4 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 4 hours [ 14400 ] 1 day [ 28800 ]
          Worklog Id 60212 [ 60212 ]
          Gunnstein Lye made changes -
          Link This issue relates to EZP-25989 [ EZP-25989 ]
          Gunnstein Lye logged work - 18/Jul/16 11:00 AM
          • Time Spent:
            2 hours
             

            .

          Gunnstein Lye made changes -
          Description (insert info from epic and workshops) REST API for permission lookup in the public PHP API
          Workshop notes: https://docs.google.com/document/d/10H8Z3kOKSJmovnfNVR-j8Z41jtrFoKQk3Qc0TqH0-ZA/edit#heading=h.jkrw4436749a

          Use case: Toggle UI elements depending on user permissions. What is needed is
          - PHP Repository API possibility to do reverse lookup on permissions: https://jira.ez.no/browse/EZP-26000
          - Extend REST to add permissions info in response, this should vary by user hash (this story)
          - Expose/use this info in REST client(s)
          - Use this info in UI to toggle buttons / actions
          Gunnstein Lye made changes -
          Time Spent 1 day [ 28800 ] 1 day, 2 hours [ 36000 ]
          Worklog Id 60218 [ 60218 ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 2 hours [ 36000 ] 1 day, 2 hours, 30 minutes [ 37800 ]
          Worklog Id 60232 [ 60232 ]
          Gunnstein Lye logged work - 19/Jul/16 6:30 PM
          • Time Spent:
            30 minutes
             

            .

          Gunnstein Lye logged work - 20/Jul/16 2:30 PM - edited
          • Time Spent:
            2 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 day, 2 hours, 30 minutes [ 37800 ] 1 day, 4 hours, 30 minutes [ 45000 ]
          Worklog Id 60242 [ 60242 ]
          Gunnstein Lye made changes -
          Worklog Id 60242 [ 60242 ]
          Gunnstein Lye logged work - 21/Jul/16 11:30 AM
          • Time Spent:
            1 hour, 30 minutes
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 day, 4 hours, 30 minutes [ 45000 ] 1 day, 6 hours [ 50400 ]
          Worklog Id 60247 [ 60247 ]
          Gunnstein Lye logged work - 22/Jul/16 11:00 AM
          • Time Spent:
            1 hour
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 day, 6 hours [ 50400 ] 1 day, 7 hours [ 54000 ]
          Worklog Id 60256 [ 60256 ]
          Gunnstein Lye logged work - 27/Jul/16 11:00 AM
          • Time Spent:
            1 hour
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 day, 7 hours [ 54000 ] 2 days [ 57600 ]
          Worklog Id 60408 [ 60408 ]
          Gunnstein Lye made changes -
          Time Spent 2 days [ 57600 ] 2 days, 30 minutes [ 59400 ]
          Worklog Id 60416 [ 60416 ]
          Gunnstein Lye logged work - 28/Jul/16 4:30 PM - edited
          • Time Spent:
            2 hours, 20 minutes
             

            .

          Gunnstein Lye made changes -
          Time Spent 2 days, 30 minutes [ 59400 ] 2 days, 2 hours, 20 minutes [ 66000 ]
          Worklog Id 60416 [ 60416 ]
          Gunnstein Lye made changes -
          Time Spent 2 days, 2 hours, 20 minutes [ 66000 ] 2 days, 3 hours, 20 minutes [ 69600 ]
          Worklog Id 60458 [ 60458 ]
          Gunnstein Lye logged work - 09/Aug/16 6:00 PM
          • Time Spent:
            1 hour
             

            .

          Gunnstein Lye logged work - 10/Aug/16 12:00 PM
          • Time Spent:
            2 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 2 days, 3 hours, 20 minutes [ 69600 ] 2 days, 5 hours, 20 minutes [ 76800 ]
          Worklog Id 60466 [ 60466 ]
          Gunnstein Lye made changes -
          Time Spent 2 days, 5 hours, 20 minutes [ 76800 ] 2 days, 6 hours, 20 minutes [ 80400 ]
          Worklog Id 60478 [ 60478 ]
          Gunnstein Lye logged work - 11/Aug/16 5:30 PM - edited
          • Time Spent:
            1 hour, 30 minutes
             

            .

          Gunnstein Lye made changes -
          Time Spent 2 days, 6 hours, 20 minutes [ 80400 ] 2 days, 6 hours, 50 minutes [ 82200 ]
          Worklog Id 60478 [ 60478 ]
          Gunnstein Lye logged work - 12/Aug/16 1:30 PM
          • Time Spent:
            2 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 2 days, 6 hours, 50 minutes [ 82200 ] 3 days, 50 minutes [ 89400 ]
          Worklog Id 60484 [ 60484 ]
          Gunnstein Lye logged work - 15/Aug/16 4:00 PM
          • Time Spent:
            30 minutes
             

            .

          Gunnstein Lye made changes -
          Time Spent 3 days, 50 minutes [ 89400 ] 3 days, 1 hour, 20 minutes [ 91200 ]
          Worklog Id 60509 [ 60509 ]
          Gunnstein Lye made changes -
          Status Development [ 3 ] Backlog [ 10000 ]
          Gunnstein Lye made changes -
          Status Backlog [ 10000 ] InputQ [ 10001 ]
          Sarah Haïm-Lubczanski (Inactive) made changes -
          Status InputQ [ 10001 ] Backlog [ 10000 ]
          André Rømcke made changes -
          Labels v2
          Maciej Kobus made changes -
          Link This issue relates to EZS-1060 [ EZS-1060 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 99488 ] EZEE Development Workflow [ 108108 ]
          Alex Schuster made changes -
          Workflow EZEE Development Workflow [ 108108 ] EZEE and EZP Story Workflow [ 127185 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          11s 1 André Rømcke 29/Jun/16 4:35 PM
          Confirmed Confirmed Backlog Backlog
          3s 1 André Rømcke 29/Jun/16 4:35 PM
          InputQ InputQ Development Development
          18h 54m 1 Gunnstein Lye 14/Jul/16 11:46 AM
          Backlog Backlog Development Development
          25s 1 Gunnstein Lye 14/Jul/16 4:14 PM
          Development Development Backlog Backlog
          117d 22h 21m 2 Gunnstein Lye 09/Nov/16 9:08 AM
          Backlog Backlog InputQ InputQ
          14d 16m 2 Gunnstein Lye 09/Nov/16 9:08 AM
          InputQ InputQ Backlog Backlog
          2h 57m 1 sarah.haim-lubczanski@ez.no 09/Nov/16 12:06 PM

            People

            • Assignee:
              Gunnstein Lye
              Reporter:
              André Rømcke
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 1 hour, 20 minutes
                3d 1h 20m