Remove obsolete link to available statuses

This was replaced by the work package form
pull/2239/head
Hagen Schink 10 years ago committed by Jens Ulferts
parent 746f7cce74
commit 9441739d63
  1. 14
      doc/apiv3-documentation.apib
  2. 4
      frontend/tests/integration/mocks/work-package.json
  3. 4
      frontend/tests/integration/mocks/work-packages/819.json
  4. 4
      frontend/tests/integration/mocks/work-packages/820.json
  5. 4
      frontend/tests/integration/mocks/work-packages/821.json
  6. 8
      lib/api/v3/work_packages/work_package_representer.rb

@ -571,7 +571,7 @@ Updates an activity's comment and, on success, returns the updated activity.
to see it.
**Required permission:** view project
*Note: A client without sufficient permissions shall not be able to test for the existence of a project.
Thatswhy a 404 is returned here, even if a 403 might be more appropriate.*
@ -614,7 +614,7 @@ Updates an activity's comment and, on success, returns the updated activity.
to see it.
**Required permission:** view project (defining the category)
*Note: A client without sufficient permissions shall not be able to test for the existence of
a category. Thatswhy a 404 is returned here, even if a 403 might be more appropriate.*
@ -1190,7 +1190,7 @@ but are also limited to the projects that the current user is allowed to see.
to see it.
**Required permission:** view work packages **or** manage versions (any project where the given version is available)
*Note: A client without sufficient permissions shall not be able to test for the existence of a version.
That's why a 404 is returned here, even if a 403 might be more appropriate.*
@ -1805,7 +1805,7 @@ Note that due to sharing this might be more than the versions *defined* by that
to see it.
**Required permission:** view work packages **or** manage versions (on given project)
*Note: A client without sufficient permissions shall not be able to test for the existence of a project.
That's why a 404 is returned here, even if a 403 might be more appropriate.*
@ -1856,7 +1856,7 @@ Note that due to sharing this might be more than the versions *defined* by that
to see it.
**Required permission:** view work packages **or** manage versions (any project where the version is available)
*Note: A client without sufficient permissions shall not be able to test for the existence of
a version. That's why a 404 is returned here, even if a 403 might be more appropriate.*
@ -1972,10 +1972,6 @@ Note that due to sharing this might be more than the versions *defined* by that
"version": {
"href": "/api/v3/versions/1"
},
"availableStatuses": {
"href": "/api/v3/work_packages/1528/available_statuses",
"title": "Available Statuses"
},
"availableWatchers": {
"href": "/api/v3/work_packages/1528/available_watchers",
"title": "Available Watchers"

@ -34,10 +34,6 @@
"href": "/api/v3/users/34",
"title": "Reinhold Weber - Joe3757"
},
"availableStatuses": {
"href": "/api/v3/work_packages/819/available_statuses",
"title": "Available Statuses"
},
"availableWatchers": {
"href": "/api/v3/work_packages/819/available_watchers",
"title": "Available Watchers"

@ -39,10 +39,6 @@
"href": "/api/v3/users/5",
"title": "Freida Fay - Christine6938"
},
"availableStatuses": {
"href": "/api/v3/work_packages/819/available_statuses",
"title": "Available Statuses"
},
"availableWatchers": {
"href": "/api/v3/work_packages/819/available_watchers",
"title": "Available Watchers"

@ -29,10 +29,6 @@
"href": "/api/v3/users/5",
"title": "Freida Fay - Christine6938"
},
"availableStatuses": {
"href": "/api/v3/work_packages/820/available_statuses",
"title": "Available Statuses"
},
"availableWatchers": {
"href": "/api/v3/work_packages/820/available_watchers",
"title": "Available Watchers"

@ -39,10 +39,6 @@
"href": "/api/v3/users/5",
"title": "Freida Fay - Christine6938"
},
"availableStatuses": {
"href": "/api/v3/work_packages/821/available_statuses",
"title": "Available Statuses"
},
"availableWatchers": {
"href": "/api/v3/work_packages/821/available_watchers",
"title": "Available Watchers"

@ -126,14 +126,6 @@ module API
} unless represented.assigned_to.nil?
end
link :availableStatuses do
{
href: "#{root_path}api/v3/work_packages/#{represented.id}/available_statuses",
title: 'Available Statuses'
} if @current_user.allowed_to?({ controller: :work_packages, action: :update },
represented.project)
end
link :availableWatchers do
{
href: api_v3_paths.available_watchers(represented.id),

Loading…
Cancel
Save