Skip to content
Snippets Groups Projects
  1. Aug 28, 2017
  2. Aug 17, 2017
  3. Jul 17, 2017
  4. Jul 16, 2017
  5. Jul 15, 2017
    • Daniel Gerhardt's avatar
      d486835a
    • Daniel Gerhardt's avatar
    • Daniel Gerhardt's avatar
      Merge branch 'db-ektorp' into 'master' · 0ae62670
      Daniel Gerhardt authored
      Migration to Ektorp and refactoring of the database layer
      
      A summary of the changes:
      * CouchDB4J has been replaced by Ektorp.
      * CouchDBDao has been split up into multiple repositories: One for each
        entity.
      * Jackson is used instead of JSON-lib for POJO <-> JSON
        (de)serialization.
          * Jackson's `@JsonView`'s are used to mark which properties are
            (de)serialized for the API and/or CouchDB
          * A lot of persistence code could be simplified since serialization
            is handled automatically by the `ObjectMapper`.
      * Entities and related Classes have been renamed:
          * `Content` <- `Question` / `SkillQuestion` / `LecturerQuestion`
          * `Comment` <- `FeedbackQuestion` / `AudienceQuestion`
      * CouchDB design docs can now be automatically created by the backend if
        necessary. They are included as JavaScript code which is parsed and
        transformed to JSON at startup using Java's `ScriptEngine`.
      * `MediaType`s for API versioning have been introduced:
          * `vnd.de.thm.arsnova.v2+json`: the format as used in ARSnova 2.x
          * `vnd.de.thm.arsnova.v3+json`:
              * ISO 8601 dates instead of timestamps
              * `id` instead of `_id`, `revision` instead of `_rev`
      * `api.indent-response-body` can be set in configuration for pretty
        responses for API debugging.
      * Empty (e.g. `null`) entity properties are ignored for serialization
      
      See merge request !68
      0ae62670
    • Daniel Gerhardt's avatar
      Remove broken statistics test for now · d54b3263
      Daniel Gerhardt authored
      d54b3263
    • Daniel Gerhardt's avatar
      Setup repository mockups for testing · 21864cc2
      Daniel Gerhardt authored
      21864cc2
    • Daniel Gerhardt's avatar