Skip to content
Snippets Groups Projects
  1. Jan 28, 2020
  2. Nov 20, 2019
  3. Oct 23, 2019
    • 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
  4. Oct 22, 2019
  5. Sep 18, 2019
  6. Sep 13, 2019
  7. Sep 10, 2019
  8. Sep 07, 2019
    • 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
  9. Sep 03, 2019
  10. Aug 30, 2019
  11. Aug 29, 2019
  12. Aug 28, 2019
  13. Aug 22, 2019
  14. Jul 31, 2019
  15. Jul 24, 2019
  16. Jul 10, 2019
  17. Jun 28, 2019
  18. Jun 20, 2019
  19. Jun 14, 2019
    • 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
  20. Mar 28, 2019
  21. Mar 14, 2019
  22. Jan 07, 2019
  23. Dec 13, 2018
  24. Dec 10, 2018
    • 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
  25. Nov 29, 2018
  26. Nov 28, 2018
  27. Nov 05, 2018
  28. Oct 23, 2018
  29. Oct 06, 2018
  30. Oct 02, 2018
  31. Sep 17, 2018
    • 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
      Verified
      8a72f5c4
  32. Sep 11, 2018
  33. Sep 07, 2018
  34. Aug 02, 2018
  35. 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
  36. Jul 26, 2018
  37. Jul 11, 2018
  38. Jul 03, 2018
Loading