BigW Consortium Gitlab

  1. 16 Jun, 2016 2 commits
  2. 14 Jun, 2016 2 commits
  3. 13 Jun, 2016 1 commit
  4. 08 Jun, 2016 1 commit
    • Fix pseudo n+1 queries with Note and Note Authors in issuables APIs · fade1a4c
      Alejandro Rodríguez authored
      This was not a clear cut n+1 query, given that if you're directly subscribed to all issues
      that the API is returning you never really need to check for the notes. However, if you're
      subscribed to _all_ of them, then for each issuable you need to go once to `notes`, and
      once to `users` (for the authors). By preemtively loading notes and authors, at worst you have
      1 extra query, and at best you saved 2n extra queries. We also took advantage of this preloading
      of notes when counting user notes.
  5. 06 Jun, 2016 1 commit
  6. 03 Jun, 2016 2 commits
  7. 02 Jun, 2016 1 commit
    • issuable#labels_array explicitly load the labels · 078ba8c0
      Paco Guzman authored
      This will be useful when you want to ask for the 
      number of items and later iterate over them, without 
      needing to ask if the association is load or not.
      
      So you avoid extra database queries
  8. 01 Jun, 2016 1 commit
    • Refactor Participable · 580d2501
      Yorick Peterse authored
      There are several changes to this module:
      
      1. The use of an explicit stack in Participable#participants
      2. Proc behaviour has been changed
      3. Batch permissions checking
      
      == Explicit Stack
      
      Participable#participants no longer uses recursion to process "self" and
      all child objects, instead it uses an Array and processes objects in
      breadth-first order. This allows us to for example create a single
      Gitlab::ReferenceExtractor instance and pass this to any Procs. Re-using
      a ReferenceExtractor removes the need for running potentially many SQL
      queries every time a Proc is called on a new object.
      
      == Proc Behaviour Changed
      
      Previously a Proc in Participable was expected to return an Array of
      User instances. This has been changed and instead it's now expected that
      a Proc modifies the Gitlab::ReferenceExtractor passed to it. The return
      value of the Proc is ignored.
      
      == Permissions Checking
      
      The method Participable#participants uses
      Ability.users_that_can_read_project to check if the returned users have
      access to the project of "self" _without_ running multiple SQL queries
      for every user.
  9. 31 May, 2016 1 commit
  10. 29 May, 2016 2 commits
  11. 24 May, 2016 5 commits
  12. 23 May, 2016 1 commit
  13. 12 May, 2016 2 commits
  14. 11 May, 2016 1 commit
  15. 10 May, 2016 1 commit
  16. 06 May, 2016 1 commit
  17. 27 Apr, 2016 1 commit
  18. 21 Apr, 2016 2 commits
  19. 20 Apr, 2016 3 commits
  20. 16 Apr, 2016 1 commit
  21. 30 Mar, 2016 1 commit
  22. 17 Mar, 2016 2 commits
  23. 15 Mar, 2016 2 commits
    • Improving the original label-subscribing implementation · 54ec7e95
      Rémy Coutable authored
      1. Make the "subscribed" text in Issuable sidebar reflect the labels
         subscription status
      
      2. Current user mut be logged-in to toggle issue/MR/label subscription
    • Original implementation to allow users to subscribe to labels · 0444fa56
      Timothy Andrew authored
      1. Allow subscribing (the current user) to a label
      
      - Refactor the `Subscription` coffeescript class
        - The main change is that it accepts a container, and conducts all
          DOM queries within its scope. We need this because the labels
          page has multiple instances of `Subscription` on the same page.
      
      2. Creating an issue or MR with labels notifies users subscribed to those labels
      
      - Label `has_many` subscribers through subscriptions.
      
      3. Adding a label to an issue or MR notifies users subscribed to those labels
      
      - This only applies to subscribers of the label that has just been
        added, not all labels for the issue.
  24. 11 Mar, 2016 2 commits
  25. 22 Feb, 2016 1 commit