1. 02 Dec, 2016 3 commits
    • Sean McGivern's avatar
      Count all issuable states at once · aa81c308
      Sean McGivern authored
      Instead of doing n queries for n states, do one query to get all the
      counts grouped by state, and figure out what the count is for each state
      is from that. We can still cache the individual counts (it can't hurt),
      but this will help with initial load.
      
      Note that the `opened` scope on `Issuable` includes the `opened` and
      `reopened` states, which is why there's a special case.
      aa81c308
    • Sean McGivern's avatar
      Save a query on issue and MR lists · 09b1efa5
      Sean McGivern authored
      `any?` on an AR relation performs a `SELECT COUNT`, which we don't need.
      
      1. We are very likely to have issues or MRs, so the `SELECT COUNT` is
         often unnecessary.
      2. Even where there are no items returned, the overhead of the
         `SELECT *` instead of `SELECT COUNT` is relatively small.
      
      Calling `to_a` on the relation lets us use `Enumerable#any?`, which will
      return immediately if there are objects returned.
      09b1efa5
    • Rubén Dávila Santos's avatar
      Merge branch 'expose-add-ons-in-license-api' into 'master' · 726ae97f
      Rubén Dávila Santos authored
      Expose add-ons associated to the license in /license endpoint.
      
      Closes #1286
      
      See merge request !907
      726ae97f
  2. 01 Dec, 2016 11 commits
  3. 30 Nov, 2016 8 commits
  4. 29 Nov, 2016 15 commits
  5. 28 Nov, 2016 3 commits