summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2017-01-27 15:34:15 -0200
committerOswaldo Ferreira <oswluizf@gmail.com>2017-02-20 13:21:22 -0300
commitc2426b4eac330a9bfabc7f28f4c7063c69129b3f (patch)
treea2dacf6a18d6e4c383c52263a697d9da6946182f /doc
parent7c57e0994cf90981c4c20cc0cde20cb49ec5d11d (diff)
downloadgitlab-ce-c2426b4eac330a9bfabc7f28f4c7063c69129b3f.tar.gz
Unify issues search behavior by always filtering when ALL labels matches26315-unify-labels-filter-behavior
Diffstat (limited to 'doc')
-rw-r--r--doc/api/issues.md4
-rw-r--r--doc/api/v3_to_v4.md2
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/issues.md b/doc/api/issues.md
index 7c0a444d4fa..f40e0938b0f 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -30,7 +30,7 @@ GET /issues?milestone=1.0.0&state=opened
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `state` | string | no | Return all issues or just those that are `opened` or `closed`|
-| `labels` | string | no | Comma-separated list of label names, issues with any of the labels will be returned |
+| `labels` | string | no | Comma-separated list of label names, issues must have all labels to be returned |
| `milestone` | string| no | The milestone title |
| `order_by`| string | no | Return requests ordered by `created_at` or `updated_at` fields. Default is `created_at` |
| `sort` | string | no | Return requests sorted in `asc` or `desc` order. Default is `desc` |
@@ -188,7 +188,7 @@ GET /projects/:id/issues?milestone=1.0.0&state=opened
| `id` | integer | yes | The ID of a project |
| `iid` | integer | no | Return the issue having the given `iid` |
| `state` | string | no | Return all issues or just those that are `opened` or `closed`|
-| `labels` | string | no | Comma-separated list of label names, issues with any of the labels will be returned |
+| `labels` | string | no | Comma-separated list of label names, issues must have all labels to be returned |
| `milestone` | string| no | The milestone title |
| `order_by`| string | no | Return requests ordered by `created_at` or `updated_at` fields. Default is `created_at` |
| `sort` | string | no | Return requests sorted in `asc` or `desc` order. Default is `desc` |
diff --git a/doc/api/v3_to_v4.md b/doc/api/v3_to_v4.md
index 2f82b6e97cc..95a78323242 100644
--- a/doc/api/v3_to_v4.md
+++ b/doc/api/v3_to_v4.md
@@ -27,3 +27,5 @@ changes are in V4:
- Return pagination headers for all endpoints that return an array
- Removed `DELETE projects/:id/deploy_keys/:key_id/disable`. Use `DELETE projects/:id/deploy_keys/:key_id` instead
- Moved `PUT /users/:id/(block|unblock)` to `POST /users/:id/(block|unblock)`
+- Labels filter on `projects/:id/issues` and `/issues` now matches only issues containing all labels (i.e.: Logical AND, not OR)
+