Skip to content
Snippets Groups Projects
  1. Sep 04, 2019
  2. Aug 09, 2019
  3. Jul 31, 2019
  4. Jul 29, 2019
  5. Jul 04, 2019
  6. Jun 07, 2019
  7. May 21, 2019
  8. May 15, 2019
    • Alexandru Croitor's avatar
      Add params validations and remove extra params support · f117c032
      Alexandru Croitor authored
      Remove label_name and milestone_title params support
      Add mutually_exclusive validation for author_id and author_username
      Add mutually_exclusive validation for assignee_id and assignee_username
      Add validation to allow single value for asignee_username on CE
      Add separate issue_stats_params helper for statistics params and
      reuse in issues_params.
      f117c032
    • Alexandru Croitor's avatar
      Changes to issues api · 5ec28dc3
      Alexandru Croitor authored
      When issues_controller endpoint was used for search, the parameters
      passed to the controller were slightly different then the ones
      passed to API. Because the searchbar UI is reused in different
      places and builds the parameters passed to request in same way
      we need to account for old parameter names.
      
      
      Add issues_statistics api endpoints
      
      Adds issue_statistics api endpoints for issue lists and returns
      counts of issues for all, closed and opened states.
      
      
      Expose more label attributes based on a param
      
      When requesting issues list through API expose more attributes
      for labels, like color, description if with_labels_data param is
      being passed, avoiding this way to change response schema for users
      that already use API.
      
      https://gitlab.com/gitlab-org/gitlab-ce/issues/57402
      5ec28dc3
  9. May 07, 2019
  10. Apr 23, 2019
  11. Apr 08, 2019
  12. Apr 04, 2019
    • Igor Drozdov's avatar
      Consider array params on rendering MR list on dashboard · 5b6db251
      Igor Drozdov authored
      This fixes the bug, when approver filter is provided,
      but dashboard asks to enter any filter
      5b6db251
    • Sean McGivern's avatar
      Extend CTE search optimisation to projects · 10ceb33b
      Sean McGivern authored
      When we use the `search` param on an `IssuableFinder`, we can run into
      issues. We have trigram indexes to support these searches. On
      GitLab.com, we often see Postgres's optimiser prioritise the (global)
      trigram indexes over the index on `project_id`. For group and project
      searches, we know that it will be quicker to filter by `project_id`
      first, as it returns fewer rows in most cases.
      
      For group issues search, we ran into this issue previously, and went
      through the following iterations:
      
      1. Use a CTE on the project IDs as an optimisation fence. This prevents
         the planner from disregarding the index on `project_id`.
         Unfortunately it breaks some types of sorting, like priority and
         popularity, as they sort on a joined table.
      2. Use a subquery for listing issues, and a CTE for counts. The subquery
         - in the case of group lists - didn't help as much as the CTE, but
         was faster than not including it. We can safely use a CTE for counts
         as they don't have sorting.
      
      Now, however, we're seeing the same issue in a project context. The
      subquery doesn't help at all there (it would only return one row, after
      all). In an attempt to keep total code complexity under control, this
      commit removes the subquery optimisation and applies the CTE
      optimisation only for sorts we know that are safe.
      
      This means that for more complicated sorts (like priority and
      popularity), the search will continue to be very slow. If this is a
      high-priority issue, we can consider introducing further optimisations,
      but this finder is already very complicated and additional complexity
      has a cost.
      
      The group CTE optimisation is controlled by the same feature flag as
      before, `attempt_group_search_optimizations`, which is enabled by
      default. The new project CTE optimisation is controlled by a new feature
      flag, `attempt_project_search_optimizations`, which is disabled by
      default.
      10ceb33b
  13. Mar 19, 2019
  14. Feb 28, 2019
    • Mario de la Ossa's avatar
      Always use CTE for IssuableFinder counts · 39afba06
      Mario de la Ossa authored
      Since the CTE is faster than a subquery and the only reason we're using
      a subquery is that the CTE can't handle sorting by certain attributes,
      let's use the CTE always (when the feature flag is enabled) when
      counting, since we can ignore ordering if we just want a count of
      results.
      Unverified
      39afba06
  15. Feb 21, 2019
  16. Feb 06, 2019
  17. Feb 05, 2019
  18. Jan 14, 2019
  19. Dec 31, 2018
  20. Dec 07, 2018
  21. Dec 06, 2018
  22. Nov 30, 2018
    • Sean McGivern's avatar
      Add a flag to use a subquery for group issues search · 7fd5dbf9
      Sean McGivern authored
      We already had a flag to use a CTE, but this broke searching in some
      cases where we need to sort by a joined table. Disabling the CTE flag
      makes searches much slower.
      
      The new flag, to use a subquery, makes them slightly slower than the
      CTE, while maintaining correctness. If both it and the CTE flag are
      enabled, the subquery takes precedence.
      7fd5dbf9
  23. Nov 23, 2018
    • Jacopo's avatar
      Filter by `None`/`Any` for labels in issues/mrs API · c068ac67
      Jacopo authored
      By using the parameters `?labels=None|Any` the user can filter
      issues/mrs from the API that has `none/any` label.
      
      Affected endpoints are:
      
      - /api/issues
      - /api/projects/:id/issues
      - /api/groups/:id/issues
      - /api/merge_requests
      - /api/projects/:id/merge_requests
      - /api/groups/:id/merge_requests
      c068ac67
  24. Nov 14, 2018
  25. Nov 01, 2018
  26. Oct 31, 2018
  27. Oct 26, 2018
  28. Oct 18, 2018
  29. Oct 05, 2018
  30. Oct 03, 2018
  31. Oct 01, 2018
  32. Sep 11, 2018
Loading