Skip to content
Snippets Groups Projects
  1. Mar 23, 2020
  2. Feb 26, 2020
  3. Jan 03, 2020
  4. Dec 10, 2019
  5. Oct 29, 2019
  6. Aug 23, 2019
    • Stan Hu's avatar
      Eliminate Gitaly N+1 queries with notes API · e24b9c25
      Stan Hu authored
      Similar to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31834,
      we see that in https://gitlab.com/gitlab-org/gitlab-ce/issues/65957
      there can be hundreds, even thousands, of Gitaly requests in the
      `/api/:version/projects/:id/merge_requests/:noteable_id/notes` endpoint.
      
      Previously, the API to retrieve notes generated hundreds of Gitaly calls
      to determine whether a system note should be shown to the user. It did
      this by:
      
      1. Rendering the Markdown
      2. Extracting cross-references from the Markdown
      3. Issuing a Gitaly `FindCommit` RPC for every reference to validate
      that the commit exists.
      
      The last step is unnecessary because we don't need to display a commit
      if the user doesn't have access to the project in the first place.
      `RendersNotes#prepare_notes_for_rendering` is already used in
      `MergeRequestsController`, which is why we don't see N+1 Gitaly calls
      there. We use it here to optimize the note redaction process.
      e24b9c25
  7. Jan 24, 2019
  8. Dec 18, 2018
    • blackst0ne's avatar
      Update specs to rails5 format · b44a2c80
      blackst0ne authored
      Updates specs to use new rails5 format.
      
      The old format:
      `get :show, { some: params }, { some: headers }`
      
      The new format:
      `get :show, params: { some: params }, headers: { some: headers }`
      b44a2c80
  9. Jul 11, 2018
  10. Jul 09, 2018
  11. Mar 07, 2018
    • Jan Provaznik's avatar
      Add discussion API · dcdfa04b
      Jan Provaznik authored
      * adds basic discussions API for issues and snippets
      * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
      dcdfa04b
  12. Jan 02, 2018
  13. Dec 22, 2017
  14. Nov 29, 2017
  15. Oct 20, 2017
  16. Sep 14, 2017
  17. Aug 28, 2017
  18. Aug 02, 2017
  19. Jun 21, 2017
  20. Jun 14, 2017
  21. Apr 21, 2017
  22. Mar 27, 2017
    • Toon Claes's avatar
      API: Make the /notes endpoint work with noteable iid instead of id · add5cd99
      Toon Claes authored
      In API V4 all endpoints were changed so Merge Requests and Issues
      should be referred by iid, instead of id. Except the /notes endpoint
      was forgotten. So change the endpoints from:
      
      - /projects/:id/issues/:issue_id/notes
      - /projects/:id/merge_requests/:merge_request_id/notes
      
      To:
      
      - /projects/:id/issues/:issue_iid/notes
      - /projects/:id/merge_requests/:merge_request_iid/notes
      
      For Project Snippets nothing changes.
      add5cd99
  23. Feb 28, 2017
  24. Feb 23, 2017
  25. Feb 20, 2017
  26. Feb 16, 2017
  27. Jan 23, 2017
  28. Jan 17, 2017
  29. Nov 28, 2016
  30. Nov 24, 2016
  31. Oct 24, 2016
  32. Oct 17, 2016
  33. Sep 16, 2016
  34. Aug 25, 2016
  35. Aug 09, 2016
  36. Jul 01, 2016
  37. Jun 27, 2016
  38. Jun 03, 2016
Loading