An error occurred fetching the project authors.
  1. 23 Jan, 2018 1 commit
    • Jan Provaznik's avatar
      Use limit for search count queries · 090ca9c3
      Jan Provaznik authored
      Search query is especially slow if a user searches a generic string
      which matches many records, in such case search can take tens of
      seconds or time out. To speed up the search query, we search only for
      first 1000 records, if there is >1000 matching records we just display
      "1000+" instead of precise total count supposing that with such amount
      the exact count is not so important for the user.
      
      Because for issues even limited search was not fast enough, 2-phase
      approach is used for issues: first we use simpler/faster query to get
      all public issues, if this exceeds the limit, we just return the limit.
      If the amount of matching results is lower than limit, we re-run more
      complex search query (which includes also confidential issues).
      Re-running the complex query should be fast enough in such case because the
      amount of matching issues is lower than limit.
      
      Because exact total_count is now limited, this patch also switches to
      to "prev/next" pagination.
      
      Related #40540
      090ca9c3
  2. 11 Jan, 2018 1 commit
  3. 07 Sep, 2017 1 commit
  4. 06 Sep, 2017 2 commits
  5. 14 Aug, 2017 1 commit
    • Yorick Peterse's avatar
      Cache the number of forks of a project · aef9f1eb
      Yorick Peterse authored
      The number of forks of a project doesn't change very frequently and
      running a COUNT(*) every time this information is requested can be quite
      expensive. We also end up running such a COUNT(*) query at least twice
      on the homepage of a project.
      
      By caching this data and refreshing it when necessary we can reduce
      project homepage loading times by around 60 milliseconds (based on the
      timings of https://gitlab.com/gitlab-org/gitlab-ce).
      aef9f1eb
  6. 21 Jun, 2017 1 commit
  7. 02 Jun, 2017 1 commit
  8. 30 May, 2017 1 commit
    • Toon Claes's avatar
      Remove some deprecated methods · 1e5506d0
      Toon Claes authored
      To avoid the use of slow queries, remove some deprecated methods and encourage
      the use of ProjectFinder to find projects.
      1e5506d0
  9. 10 May, 2017 1 commit
  10. 02 May, 2017 1 commit
  11. 06 Apr, 2017 1 commit
    • Jacopo's avatar
      ProjectsFinder should handle more options · b996a82f
      Jacopo authored
      Extended ProjectFinder in order to handle the following options:
       - current_user - which user use
       - project_ids_relation: int[] - project ids to use
       - params:
         -  trending: boolean
         -  non_public: boolean
         -  starred: boolean
         -  sort: string
         -  visibility_level: int
         -  tags: string[]
         -  personal: boolean
         -  search: string
         -  non_archived: boolean
      
      GroupProjectsFinder now inherits from ProjectsFinder.
      Changed the code in order to use the new available options.
      b996a82f
  12. 16 Mar, 2017 1 commit
  13. 01 Mar, 2017 1 commit
    • James Lopez's avatar
      Update occurrences of MWBS to MWPS · a0101ebf
      James Lopez authored
       Rename column in the database
       Rename fields related to import/export feature
       Rename API endpoints
       Rename documentation links
       Rename the rest of occurrences in the code
       Replace the images that contain the words "build succeeds" and docs referencing to them
       Make sure pipeline is green and nothing is missing.
      
      updated doc images
      
      renamed only_allow_merge_if_build_succeeds in projects and fixed references
      
      more updates
      
      fix some spec failures
      
      fix rubocop offences
      
      fix v3 api spec
      
      fix MR  specs
      
      fixed issues with partials
      
      fix MR spec
      
      fix alignment
      
      add missing v3 to v4 doc
      
      wip - refactor v3 endpoints
      
      fix specs
      
      fix a few typos
      
      fix project specs
      
      copy entities fully to V3
      
      fix  entity error
      
      more fixes
      
      fix failing specs
      
      fixed missing entities in V3 API
      
      remove comment
      
      updated code based on feedback
      
      typo
      
      fix spec
      a0101ebf
  14. 28 Feb, 2017 1 commit
  15. 27 Feb, 2017 1 commit
  16. 23 Feb, 2017 2 commits
  17. 22 Feb, 2017 1 commit
  18. 07 Feb, 2017 1 commit
  19. 30 Jan, 2017 1 commit