An error occurred fetching the project authors.
  1. 06 Feb, 2020 1 commit
  2. 05 Feb, 2020 2 commits
  3. 14 Jan, 2020 1 commit
  4. 28 Nov, 2019 3 commits
  5. 20 Nov, 2019 1 commit
  6. 11 Oct, 2019 1 commit
    • Sean McGivern's avatar
      Fix N+1 queries in Jira Development Panel API endpoint · 6625a6d3
      Sean McGivern authored
      There were three sources of N+1 queries here: the license check, the
      path and namespace information, and the root namespace.
      
      The license check was the worst. We were checking the license
      information on each project individually. This meant we couldn't
      paginate in SQL, but did so in Ruby, so it was not only an N+1, it was
      loading too many records.
      
      To fix this, we use the fact that this API endpoint can only return
      projects in a particular namespace. License checks end up at one of two
      places: for most instances, it's the instance's license itself. For
      GitLab.com, where individual namespaces have their own plan, it's the
      root namespace (subgroups can't have plans; they inherit their plan from
      the root).
      
      This means that we only ever need a single check. If it passes, every
      project returned has the feature available. If it fails, we return a
      404, like the other endpoints here. That way we can paginate in SQL, as
      we should.
      
      The path and namespace information N+1 was simple to fix: just preload
      that information.
      
      The final N+1 was on the root namespace, which we return as the `owner`
      field for compatibility with GitHub. Again, this was always the same for
      all items in the response, but we can't preload it easily because
      different projects will be at different levels of the hierarchy.
      Instead, we just calculate the root namespace once, and pass that as an
      option to the entity. The entity uses that value if it's given, and
      falls back to calculating it if it's not (in case this entity is used
      elsewhere without that option).
      6625a6d3
  7. 28 Aug, 2019 1 commit
  8. 30 Jul, 2019 1 commit
  9. 29 Jun, 2019 1 commit
  10. 05 May, 2019 1 commit
  11. 09 Apr, 2019 1 commit
    • Patrick Derichs's avatar
      Add endpoint for Jira to request user information · df85905f
      Patrick Derichs authored
      Also reduced a bit of duplication and
      created a user.json schema file which
      is referenced by pull_request.json and
      pull_requests.json references
      pull_request.json now.
      Moved content of "url" field to "html_url"
      
      According to https://developer.github.com/v3/users the "url" field
      should contain an api url - not the html url.
      
      Additionally Jira Pull Requests are now showing an avatar of the PR
      author.
      
      Add changelog entry
      
      Add missing mr number
      
      Add specs
      
      Expose url of user in url and html_url
      
      I decided against returning an empty string for url (which is,
      according to api documentation, supposed to return an api endpoint
      instead of a user profile page) but make it return the profile page
      as before so the changes won't break any existing code.
      
      Remove extra blank line
      df85905f
  12. 03 Apr, 2019 1 commit
  13. 28 Mar, 2019 1 commit
  14. 30 Jan, 2019 1 commit
  15. 25 Dec, 2018 1 commit
    • gfyoung's avatar
      Enable some frozen string in ee/lib · f514f9df
      gfyoung authored
      Enables frozen string in the following:
      
      * ee/lib/*.rb
      * ee/lib/api/**/*.rb
      * ee/lib/audit/**/*.rb
      * ee/lib/banzai/**/*.rb
      * ee/lib/ee/**/*.rb
      * ee/lib/elasticsearch/**/*.rb
      * ee/lib/generators/**/*.rb
      
      Also enables frozen string in some vestigial
      files of the ee/app directory.
      
      Partially addresses gitlab-org/gitlab-ce/#47424.
      f514f9df
  16. 11 Sep, 2018 1 commit
  17. 21 Aug, 2018 1 commit
    • Mario de la Ossa's avatar
      Fix Jira integration not using proper API endpoints · f2e4ade2
      Mario de la Ossa authored
      Jira needs to be given a bare domain (no path) for its configuration,
      otherwise it confuses itself and does not use the proper API endpoints.
      This was the reason why we always say requests like `/-/jira/pulls`
      before (it uses whatever path is given always)
      f2e4ade2
  18. 02 Aug, 2018 1 commit
  19. 05 Jul, 2018 1 commit
  20. 02 Jul, 2018 1 commit
  21. 07 May, 2018 1 commit
  22. 29 Jan, 2018 1 commit
  23. 06 Sep, 2017 1 commit
  24. 05 Sep, 2017 4 commits
  25. 03 Sep, 2017 1 commit
  26. 02 Sep, 2017 2 commits
  27. 31 Aug, 2017 4 commits
  28. 30 Aug, 2017 1 commit