Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41740

Delegated Access > use friendly label for over-ridden hierarchy levels

    XMLWordPrintable

    Details

    • 19 status:
      Please Merge
    • Test Plan:
      Hide

      This requires the following sakai.properties to be set (or equivalent):

      delegatedaccess.hierarchy.site.properties.count=3                                                                            
      delegatedaccess.hierarchy.site.properties.1=school                                                                           
      delegatedaccess.hierarchy.site.properties.2=dept                                                                       
      delegatedaccess.hierarchy.site.properties.3=subj
      
      delegatedaccess.search.hierarchyLabel.school=School                                                                          
      delegatedaccess.search.hierarchyLabel.dept=Department                                                                       
      delegatedaccess.search.hierarchyLabel.subj=Subject
      
      1. As admin, assign some delegate access to any user in the system
      2. As admin, go to "Search by Access", select "Search by user id", and search for the user you just granted delegated access to in the previous step
      3. In the resulting table, verify that the values in the "Level" column correspond to the label sakai.properties, rather than the unfriendly property names
      Show
      This requires the following sakai.properties to be set (or equivalent): delegatedaccess.hierarchy.site.properties.count=3 delegatedaccess.hierarchy.site.properties.1=school delegatedaccess.hierarchy.site.properties.2=dept delegatedaccess.hierarchy.site.properties.3=subj delegatedaccess.search.hierarchyLabel.school=School delegatedaccess.search.hierarchyLabel.dept=Department delegatedaccess.search.hierarchyLabel.subj=Subject As admin, assign some delegate access to any user in the system As admin, go to "Search by Access", select "Search by user id", and search for the user you just granted delegated access to in the previous step In the resulting table, verify that the values in the "Level" column correspond to the label sakai.properties, rather than the unfriendly property names

      Description

      SAK-27769 introduced a new sakai.property to define friendly labels for use when not using the default hierarchy levels. However, some places in the UI are still using the property names, rather than their corresponding labels.

      The sakai.property "delegatedaccess.hierarchy.site.properties" defines the list of properties, or "levels", when over-ridden:

      #INFRSTR-257 - Delegated Access                                                                                               
      #delegatedaccess.hierarchy.site.properties                                                                                    
      #This property allows you to overwrite the default site hierarchy properties expected in a Site.                              
      #Example:                                                                                                                     
      #delegatedaccess.hierarchy.site.properties.count=3                                                                            
      #delegatedaccess.hierarchy.site.properties.1=school                                                                           
      #delegatedaccess.hierarchy.site.properties.2=dept                                                                       
      #delegatedaccess.hierarchy.site.properties.3=subj
      

      SAK-27769 introduced the corresponding "delegatedaccess.search.hierarchyLabel.<property>" to define friendly labels when the above property is used:

      #delegatedaccess.search.hierarchyLabel.{hierarchyLevel}                                                                       
      #This allows you to set labels for your hierarchy search options.  By default it will use the hierarchy level, but you can    
      #override this by setting the label.  For example:                                                                            
      #Hierarchy = school->dept->subj                                                                                               
      #delegatedaccess.search.hierarchyLabel.school=School                                                                          
      #delegatedaccess.search.hierarchyLabel.dept=Department                                                                       
      #delegatedaccess.search.hierarchyLabel.subj=Subject
      

      You can see from the attached screenshots that not all UIs were updated to use this friendly label rather than the (unfriendly) property name.

        Gliffy Diagrams

          Attachments

          1. 1-before.png
            1-before.png
            86 kB
          2. 2-after.png
            2-after.png
            87 kB

            Issue Links

              Activity

                People

                • Assignee:
                  bjones86 Brian Jones
                  Reporter:
                  bjones86 Brian Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code