Skip to content
Snippets Groups Projects
  1. Jul 13, 2017
    • Philippe Pepiot's avatar
      Add a test for graph_rql_expr() that cannot find a path · 26c0874fe199
      Philippe Pepiot authored
      This can occur in real cases when etype is related to his parent by multiple
      optional relations where only one could be filled. We could generate 'OR'
      expressions but for now this is not handled.
      26c0874fe199
    • Philippe Pepiot's avatar
      Add graph_rql_expr() for generating RQL expressions · 2e3fba0dacbc
      Philippe Pepiot authored
      The compound graph may be used to generate RQL expressions that can be used in
      permissions. E.g. when permissions depend on permissions on container.
      
      Use a shortest path algorithm to generate RQL expressions from any etype to the
      container of the graph using exclusively mandatory relations.
      Make expressions more readable by using variables based on etype name.
      2e3fba0dacbc
  2. Mar 08, 2017
Loading