Skip to content
Snippets Groups Projects
  1. Apr 17, 2018
  2. Apr 11, 2018
    • Yorick Peterse's avatar
      Support Markdown rendering using multiple projects · daad7144
      Yorick Peterse authored
      This refactors the Markdown pipeline so it supports the rendering of
      multiple documents that may belong to different projects. An example of
      where this happens is when displaying the event feed of a group. In this
      case we retrieve events for all projects in the group. Previously we
      would group events per project and render these chunks separately, but
      this would result in many SQL queries being executed. By extending the
      Markdown pipeline to support this out of the box we can drastically
      reduce the number of SQL queries.
      
      To achieve this we introduce a new object to the pipeline:
      Banzai::RenderContext. This object simply wraps two other objects: an
      optional Project instance, and an optional User instance. On its own
      this wouldn't be very helpful, but a RenderContext can also be used to
      associate HTML documents with specific Project instances. This work is
      done in Banzai::ObjectRenderer and allows us to reuse as many queries
      (and results) as possible.
      Unverified
      daad7144
    • Bob Van Landuyt's avatar
      Rename `create_merge_request` permissions · 8ad9c4e8
      Bob Van Landuyt authored
      So we can distinguish between the permissions on the source and the
      target project.
      
      - `create_merge_request_from` indicates a user can create a merge
        request with the project as a source_project
      - `create_merge_request_in` indicates a user can create a merge
        request with the project as a target_project
      8ad9c4e8
    • Bob Van Landuyt's avatar
      Prevent new merge requests for archived projects · ec43e364
      Bob Van Landuyt authored
      This prevents creating merge requests targeting archived projects.
      
      This could happen when a project was already forked, but then the
      source was archived.
      ec43e364
  3. Apr 10, 2018
  4. Apr 09, 2018
  5. Apr 07, 2018
  6. Apr 06, 2018
  7. Apr 05, 2018
  8. Apr 04, 2018
  9. Apr 03, 2018
  10. Apr 02, 2018
  11. Mar 30, 2018
Loading