1. 12 Dec, 2017 7 commits
  2. 11 Dec, 2017 4 commits
  3. 08 Dec, 2017 3 commits
  4. 11 Dec, 2017 1 commit
    • Denis Laxalde's avatar
      Add JSON and JSON Schema views for entities' workflow transitions · 4bf8a69fed72
      Denis Laxalde authored
      We associate the proper 'jsonschema.collection' mapper from the
      WorkflowTransitionsResource resource by implementing the mapper()
      method.
      
      Most added views are straightforward except the
      post_entity_workflow_transition which handles adapter.fire_transition()
      call directly (instead of passing through mapper.values()) since, as
      noted in previous changeset we diverge from the actual implementation of
      workflows in CubicWeb to expose a simpler REST API.
      
      See functional tests for how it works.
      4bf8a69fed72
  5. 06 Dec, 2017 1 commit
  6. 08 Dec, 2017 1 commit
    • Denis Laxalde's avatar
      Add mappers for "workflow objects" · 8eda96bb89ab
      Denis Laxalde authored
      We add two mappers corresponding to the TrInfo entity type:
      
      * TrInfoEntityMapper is used for JSON Schema generation with "creation"
        role; this schema is different from what the normal mapper would
        produce in that it exposes the "name" of the transition directly and
        hides the implementation details of CubicWeb's workflows (which is a
        state machine not really needed in the framework of a REST API).
      
      * TrInfoCollectionMapper is a collection mapper that only supports
        serialization and produces the array of transitions fired for the
        entity given in context.
      8eda96bb89ab
  7. 07 Dec, 2017 1 commit
  8. 06 Dec, 2017 5 commits
  9. 05 Dec, 2017 6 commits
  10. 04 Dec, 2017 7 commits
  11. 01 Dec, 2017 2 commits
  12. 30 Nov, 2017 2 commits
    • Denis Laxalde's avatar
      Disable pytest's logs reporting · 7bde34e39cea
      Denis Laxalde authored
      CubicWeb already prints captured logs in stderr upon test failure, so we
      get them twice.
      7bde34e39cea
    • Denis Laxalde's avatar
      Allow POST-ing on reverse-relation route · b1c524d64381
      Denis Laxalde authored
      Previously, this was disallowed on view side because it was not
      clear we actually wanted this. But now we need it!
      So implement a similar mechanism to CubicWeb's ORM with a route segment
      "reverse-<rtype>". We use a '-' because it does not pose problem in a
      URL and it would never conflict with a real relation name as defined in
      Yams.
      b1c524d64381