Skip to content
Snippets Groups Projects
  1. Jan 24, 2018
  2. Jan 23, 2018
    • 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
    • Oswaldo Ferreir's avatar
  3. Jan 22, 2018
  4. Jan 21, 2018
  5. Jan 19, 2018
  6. Jan 17, 2018
  7. Jan 16, 2018
  8. Jan 15, 2018
  9. Jan 14, 2018
  10. Jan 13, 2018
    • Matija Čupić's avatar
      Fix N+1 in v3 builds API · c9a1a155
      Matija Čupić authored
      The N+1 issue was caused by loading the job_artifacts_archive for each
      job (build) individually. Including that in the builds
      AssociationRelation fixed the issue.
      Verified
      c9a1a155
  11. Jan 11, 2018
  12. Jan 10, 2018
  13. Jan 09, 2018
  14. Jan 08, 2018
    • Pablo Carranza's avatar
      Backport authorized_keys branch 'find-key-by-fingerprint' · ac86b204
      Pablo Carranza authored
      Add find key by base64 key or fingerprint to the internal API
      
      See merge request !250
      
      Squashed changes:
      Add unique index to fingerprint
      Add new index to schema
      Add internal api to get ssh key by fingerprint
      Change API endpoint to authorized_keys
      Add InsecureKeyFingerprint that calculates the fingerprint without shelling out
      Add require for gitlab key fingerprint
      Remove uniqueness of fingerprint index
      Remove unique option from migration
      Fix spec style in fingerprint test
      Fix rubocop complain
      Extract insecure key fingerprint to separate file
      Change migration to support building index concurrently
      Remove those hideous tabs
      ac86b204
    • Yorick Peterse's avatar
      Remove soft removals related code · d0b8f536
      Yorick Peterse authored
      This removes all usage of soft removals except for the "pending delete"
      system implemented for projects. This in turn simplifies all the query
      plans of the models that used soft removals. Since we don't really use
      soft removals for anything useful there's no point in keeping it around.
      
      This _does_ mean that hard removals of issues (which only admins can do
      if I'm not mistaken) can influence the "iid" values, but that code is
      broken to begin with. More on this (and how to fix it) can be found in
      https://gitlab.com/gitlab-org/gitlab-ce/issues/31114.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
      Unverified
      d0b8f536
  15. Jan 05, 2018
  16. Jan 04, 2018
  17. Jan 03, 2018
  18. Dec 24, 2017
  19. Dec 22, 2017
  20. Dec 21, 2017
  21. Dec 20, 2017
  22. Dec 19, 2017
    • Robert Speicher's avatar
      Only include the user's ID in the time_spent command's update hash · 3e4b45fc
      Robert Speicher authored
      Previously, this would include the entire User record in the update
      hash, which was rendered in the response using `to_json`, erroneously
      exposing every attribute of that record, including their (now removed)
      private token.
      
      Now we only include the user ID, and perform the lookup on-demand.
      3e4b45fc
Loading