Skip to content
Snippets Groups Projects
  1. Feb 24, 2020
  2. Nov 19, 2019
  3. Aug 28, 2019
  4. Aug 26, 2019
    • Patrick Derichs's avatar
      Add edit_note and spec for editing quick actions · a13abd67
      Patrick Derichs authored
      Call QuickActionsService on Note update
      
      Add support for notes which just contain
      commands after editing
      
      Return http status gone (410) if note was deleted
      
      Temporary frontend addition so it is not
      failing when a note is deleted
      
      Move specs to shared examples
      
      Fix rubocop style issue
      
      Deleting note on frontend when status is 410
      
      Use guard clause for note which got deleted
      
      Simplified condition for nil note
      
      This method should no longer be called
      with nil note
      
      Refactoring of execute method to reduce
      complexity
      
      Move errors update to delete_note method
      
      Note is now deleted visually when it only
      contains commands after update
      
      Add expectation
      
      Fix style issues
      
      Changing action to fix tests
      
      Add tests for removeNote and update
      deleteNote expectations
      a13abd67
  5. Aug 01, 2019
  6. Jun 06, 2019
    • Markus Koller's avatar
      Correctly check permissions when creating snippet notes · 12d7b393
      Markus Koller authored
      In the Snippets::NotesController the noteable was resolved and
      authorized through the :snippet_id, so by passing a :target_id for a
      different snippet it was possible to create a note on a snippet
      where the user would be unauthorized to do so otherwise.
      
      This fixes the problem by ignoring the :target_id and :target_type from
      the request, and using the same noteable for creation and authorization.
      Unverified
      12d7b393
  7. Mar 18, 2019
  8. Feb 23, 2019
  9. Nov 29, 2018
  10. Nov 28, 2018
  11. Oct 23, 2018
  12. Sep 21, 2018
  13. Sep 19, 2018
    • gfyoung's avatar
      Enable frozen string in app/controllers/**/*.rb · 73322a0e
      gfyoung authored
      Enables frozen string for the following:
      
      * app/controllers/*.rb
      * app/controllers/admin/**/*.rb
      * app/controllers/boards/**/*.rb
      * app/controllers/ci/**/*.rb
      * app/controllers/concerns/**/*.rb
      
      Partially addresses #47424.
      73322a0e
  14. Sep 07, 2018
  15. Jul 30, 2018
    • Bob Van Landuyt's avatar
      Show the status of a user in interactions · f1d3ea63
      Bob Van Landuyt authored
      The status is shown for
      - The author of a commit when viewing a commit
      - Notes on a commit (regular/diff)
      - The user that triggered a pipeline when viewing a pipeline
      - The author of a merge request when viewing a merge request
      - The author of notes on a merge request (regular/diff)
      - The author of an issue when viewing an issue
      - The author of notes on an issue
      - The author of a snippet when viewing a snippet
      - The author of notes on a snippet
      - A user's profile page
      - The list of members of a group/user
      f1d3ea63
  16. Jun 21, 2018
  17. Apr 18, 2018
  18. 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
  19. Apr 03, 2018
  20. Feb 28, 2018
  21. Nov 22, 2017
  22. Nov 17, 2017
  23. Nov 16, 2017
  24. Nov 06, 2017
  25. Nov 03, 2017
  26. Nov 02, 2017
  27. Oct 21, 2017
  28. Oct 07, 2017
  29. Oct 03, 2017
  30. Sep 18, 2017
  31. Aug 30, 2017
  32. Aug 18, 2017
  33. Aug 17, 2017
  34. Aug 07, 2017
  35. Aug 03, 2017
  36. Aug 02, 2017
  37. Jul 28, 2017
    • Sean McGivern's avatar
      Fix replying to commit comments on MRs from forks · 75d04f6a
      Sean McGivern authored
      A commit comment shows in the MR, but if the MR is from a fork, it will have a
      different project ID to the MR's target project. In that case, add an
      note_project_id param so that we can pick the correct project for the note.
      75d04f6a
Loading