1. 09 4月, 2019 2 次提交
  2. 05 4月, 2019 2 次提交
  3. 04 4月, 2019 3 次提交
    • O
      Fixed test specs · e540c0d7
      Oswaldo Ferreira 提交于
      - added suggestions to mock data
      - fixed props to be not required
      e540c0d7
    • S
      Extend CTE search optimisation to projects · 10ceb33b
      Sean McGivern 提交于
      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
    • J
      [backend] backport of scoped labels · fec2e27f
      Jan Provaznik 提交于
      Scoped labels in EE require additional changes in CE code.
      fec2e27f
  4. 03 4月, 2019 1 次提交
  5. 28 3月, 2019 1 次提交
  6. 19 3月, 2019 1 次提交
  7. 13 3月, 2019 2 次提交
  8. 06 3月, 2019 2 次提交
  9. 26 2月, 2019 4 次提交
  10. 25 2月, 2019 1 次提交
  11. 23 2月, 2019 1 次提交
  12. 22 2月, 2019 1 次提交
  13. 21 2月, 2019 1 次提交
  14. 14 2月, 2019 2 次提交
  15. 06 2月, 2019 2 次提交
  16. 05 2月, 2019 3 次提交
  17. 04 2月, 2019 1 次提交
  18. 31 1月, 2019 5 次提交
  19. 29 1月, 2019 1 次提交
    • M
      Save sorting preference for Issues/MRs in BE · 49c74068
      Mario de la Ossa 提交于
      In order to let users' sorting preferences transfer between devices, we
      save the preference for issues and MRs (one preference for issues, one
      for MRs) in the backend inside the UserPreference object
      49c74068
  20. 25 1月, 2019 1 次提交
  21. 22 1月, 2019 2 次提交
  22. 19 1月, 2019 1 次提交