Skip to content
Snippets Groups Projects
  1. Dec 06, 2019
  2. Sep 13, 2019
  3. Aug 29, 2019
    • Stan Hu's avatar
      Fix snippets API not working with visibility level · 680f4377
      Stan Hu authored
      When a restricted visibility level of `private` is set in the instance,
      creating a snippet with the `visibility` level would always fail.
      This happened because:
      
      1. `params[:visibility]` was a string (e.g. "public")
      2. `CreateSnippetService` and `UpdateSnippetService` only looked
         at `params[:visibility_level]`, which was `nil`.
      
      To fix this, we:
      
      1. Make `CreateSnippetService` look at the newly-built
         `snippet.visibility_level`, since the right value is assigned by the
         `VisibilityLevel#visibility=` method.
      2. Modify `UpdateSnippetService` to handle both `visibility_level` and
      `visibility` parameters.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66050
      680f4377
  4. Aug 15, 2019
  5. Jul 25, 2019
  6. Jul 12, 2019
  7. Jul 10, 2019
  8. Apr 15, 2019
  9. Apr 12, 2019
  10. Apr 03, 2019
  11. Mar 12, 2019
  12. Mar 06, 2019
  13. Mar 01, 2019
  14. Feb 26, 2019
  15. Feb 25, 2019
  16. Feb 04, 2019
  17. Feb 01, 2019
  18. Dec 19, 2018
  19. Dec 17, 2018
  20. Dec 14, 2018
  21. Oct 18, 2018
  22. Sep 11, 2018
  23. Aug 26, 2018
  24. Aug 16, 2018
  25. Aug 02, 2018
  26. Jul 16, 2018
  27. Jul 11, 2018
  28. Feb 09, 2018
  29. Feb 06, 2018
  30. Jan 08, 2018
  31. Sep 07, 2017
  32. Sep 06, 2017
  33. Aug 25, 2017
  34. Aug 23, 2017
Loading