Skip to content
Snippets Groups Projects
  1. Feb 24, 2020
  2. Feb 06, 2020
  3. Aug 20, 2019
    • Luke Duncalfe's avatar
      Add service classes for mutating AwardEmoji · 37b17fa6
      Luke Duncalfe authored
      Adding, destroying and toggling emoji previously lacked services and
      instead were performed through methods called on Awardable models.
      
      This led to inconsistencies where relevant todos would be marked as done
      only when emoji were awarded through our controllers, but not through
      the API. Todos could also be marked as done when an emoji was being
      removed.
      
      Behaviour changes
      
      - Awarding emoji through the API will now mark a relevant Todo as done
      - Toggling an emoji off (destroying it) through our controllers will no
        longer mark a relevant Todo as done
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
      37b17fa6
  4. Jul 16, 2019
  5. Jun 06, 2019
    • Markus Koller's avatar
      Correctly check permissions when creating snippet notes · 12d7b393
      Markus Koller authored
      In the Snippets::NotesController the noteable was resolved and
      authorized through the :snippet_id, so by passing a :target_id for a
      different snippet it was possible to create a note on a snippet
      where the user would be unauthorized to do so otherwise.
      
      This fixes the problem by ignoring the :target_id and :target_type from
      the request, and using the same noteable for creation and authorization.
      Unverified
      12d7b393
  6. Apr 15, 2019
  7. 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
  8. Oct 20, 2017
  9. Aug 09, 2017
  10. May 02, 2017
Loading