1. 28 Jan, 2020 1 commit
  2. 20 Dec, 2019 1 commit
  3. 20 Nov, 2019 1 commit
  4. 23 Oct, 2019 1 commit
    • Dylan Griffith's avatar
      Change Note#to_ability_name to 'note' · ba8b47a7
      Dylan Griffith authored
      This is to be more consistent as there is already a :read_note policy in
      NotePolicy. To keep other behaviour the same we've introduced a
      Note#noteable_ability_name that is used anywhere this was expected.
      ba8b47a7
  5. 22 Oct, 2019 1 commit
  6. 18 Sep, 2019 1 commit
  7. 13 Sep, 2019 1 commit
  8. 10 Sep, 2019 1 commit
  9. 07 Sep, 2019 1 commit
    • Jan Provaznik's avatar
      Use delete_all for deleting events · f2754e41
      Jan Provaznik authored
      Because we don't have any destroy callbacks (or other logic
      triggered on event destroy), there is no reason for deleting events
      inefficiently one by one, instead we can use :delete_all.
      f2754e41
  10. 03 Sep, 2019 1 commit
  11. 30 Aug, 2019 1 commit
  12. 29 Aug, 2019 1 commit
  13. 28 Aug, 2019 1 commit
  14. 22 Aug, 2019 1 commit
  15. 31 Jul, 2019 1 commit
  16. 24 Jul, 2019 1 commit
  17. 10 Jul, 2019 1 commit
  18. 28 Jun, 2019 1 commit
  19. 20 Jun, 2019 1 commit
  20. 14 Jun, 2019 1 commit
    • Bob Van Landuyt's avatar
      Expose comments on Noteables in GraphQL · b6ff5f1e
      Bob Van Landuyt authored
      This exposes `Note`s on Issues & MergeRequests using a
      `Types::Notes::NoteableType` in GraphQL.
      
      Exposing notes on a new type can be done by implementing the
      `NoteableType` interface on the type. The presented object should
      be a `Noteable`.
      b6ff5f1e
  21. 28 Mar, 2019 1 commit
  22. 14 Mar, 2019 1 commit
  23. 07 Jan, 2019 1 commit
  24. 13 Dec, 2018 1 commit
  25. 10 Dec, 2018 1 commit
    • Gabriel Mazetto's avatar
      Reduce N+1 from Activity Dashboard and Banzai · 4f5abe43
      Gabriel Mazetto authored
      There is a combination of few strategies implemented here:
      
      1. Few relations were eager loaded
      2. Changed few polymorphic routes to specific ones so we don't have to
         use `#becomes(Namespace)` which doesn't preserve association cache
      4f5abe43
  26. 29 Nov, 2018 1 commit
  27. 28 Nov, 2018 1 commit
  28. 05 Nov, 2018 1 commit
  29. 23 Oct, 2018 2 commits
  30. 06 Oct, 2018 1 commit
  31. 02 Oct, 2018 1 commit
  32. 17 Sep, 2018 1 commit
    • Yorick Peterse's avatar
      Added FromUnion to easily select from a UNION · 8a72f5c4
      Yorick Peterse authored
      This commit adds the module `FromUnion`, which provides the class method
      `from_union`. This simplifies the process of selecting data from the
      result of a UNION, and reduces the likelihood of making mistakes. As a
      result, instead of this:
      
          union = Gitlab::SQL::Union.new([foo, bar])
      
          Foo.from("(#{union.to_sql}) #{Foo.table_name}")
      
      We can now write this instead:
      
          Foo.from_union([foo, bar])
      
      This commit also includes some changes to make this new setup work
      properly. For example, a bug in Rails 4
      (https://github.com/rails/rails/issues/24193) would break the use of
      `from("sub-query-here").includes(:relation)` in certain cases. There was
      also a CI query which appeared to repeat a lot of conditions from an
      outer query on an inner query, which isn't necessary.
      
      Finally, we include a RuboCop cop to ensure developers use this new
      module, instead of using Gitlab::SQL::Union directly.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
      8a72f5c4
  33. 11 Sep, 2018 1 commit
  34. 07 Sep, 2018 1 commit
  35. 02 Aug, 2018 1 commit
  36. 30 Jul, 2018 1 commit
    • 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
  37. 26 Jul, 2018 1 commit
  38. 11 Jul, 2018 1 commit
  39. 03 Jul, 2018 1 commit