1. 18 Dec, 2019 1 commit
    • Vitali Tatarintev's avatar
      Use a shorter version of URL helper · 44c025c2
      Vitali Tatarintev authored
      Some routes can use a shorter version of a helper.
      That allows skipping a namespace object.
      
      The two following helpers produce the same result.
      
      ```
      app.namespace_project_error_tracking_projects_path(
        @project.namespace, @project
      )
      
      app.project_error_tracking_projects_path(
        @project
      )
      ```
      
      More info here
      https://gitlab.com/gitlab-org/gitlab
      /-/blob/v12.5.0-ee/config/application.rb#L279-291
      44c025c2
  2. 17 Dec, 2019 1 commit
    • Vitali Tatarintev's avatar
      Extract list_projects into a separate controller · 4022e5ca
      Vitali Tatarintev authored
      Extracts `ErrorTrackingController#list_projects` to
      `ErrorTracking::ProjectsController`
      
      The main goal of the change is moving towards RESTful controllers,
      and have a separate controller per resource.
      As well as unload the `ErrorTrackingController` by extracting more
      code out of it.
      
      It also follows an established practice to use the HTTP GET method
      for reading data.
      
      * Extract Sentry project resource into a separate controller
      * Change HTTP method from POST to GET
      * Update front-end part of using a new route
      4022e5ca
  3. 16 Dec, 2019 38 commits