1. 18 Mar, 2025 1 commit
  2. 14 Nov, 2024 2 commits
  3. 11 Nov, 2024 6 commits
    • Alfredo Di Napoli's avatar
      Enforce policy for published nodes for read/write · 48bab856
      Alfredo Di Napoli authored
      This commit splits the policy checks we do on node operations into
      "read" checks and "write" checks, so that we can enforce different kind
      of policies based on the state of a node (i.e. published or not).
      48bab856
    • Alfredo Di Napoli's avatar
      Refactors NodeNodeCategory · 121f8a4b
      Alfredo Di Napoli authored
      This commit refactors the `NodeNodeCategory` so that we create a better
      hierarchy to account for node publication, including all the policies it
      might have.
      121f8a4b
    • Alfredo Di Napoli's avatar
      Improve isNodeReadOnly query · 3d91bc98
      Alfredo Di Napoli authored
      Now this query accounts correctly for recursive children.
      
      It also:
      
      * Adds basic publish/unpublish works
      * Add Move API tests scaffolding
      3d91bc98
    • Alfredo Di Napoli's avatar
      Improve test for publishing a node · 0336eec7
      Alfredo Di Napoli authored
      0336eec7
    • Alfredo Di Napoli's avatar
      Basic implementation of isNodeReadOnly · c700b016
      Alfredo Di Napoli authored
      c700b016
    • Alfredo Di Napoli's avatar
      Split NodeAPIEndpoint · ab0a0edf
      Alfredo Di Napoli authored
      This commit splits the old `NodeAPIEndpoint` type into three;
      
      * `NodeAPIEndpoint`, which will also contain the freeze endpoint;
      * `AnnuaireAPIEndpoint`, which is the plain old node API without extra
        features;
      * `CorpusAPIEndpoint`, which will also contain the publishin endpoint.
      
      This split ensures that we don't add endpoints which do not belong to
      all three categories, like before.
      
      Furthermore this adds a public nodes SQL queries.
      It also adds tests for getUserRootPublicNode
      ab0a0edf