Skip to content

Commit

Permalink
Merge branch 'main' into Cross_Cluster_Replication_A11y_Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Jun 30, 2022
2 parents a3fd62d + 4a82f98 commit 1f9d1f0
Show file tree
Hide file tree
Showing 31 changed files with 743 additions and 41 deletions.
7 changes: 7 additions & 0 deletions .buildkite/scripts/steps/cloud/build_and_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ if [ -z "${CLOUD_DEPLOYMENT_ID}" ]; then
' .buildkite/scripts/steps/cloud/stack_monitoring.json > /tmp/stack_monitoring.json
ecctl deployment update "$CLOUD_DEPLOYMENT_ID" --track --output json --file /tmp/stack_monitoring.json > "$JSON_FILE"
echo "done"

echo -n "Enabling verbose logging..."
ecctl deployment show "$CLOUD_DEPLOYMENT_ID" --generate-update-payload | jq '
.resources.kibana[0].plan.kibana.user_settings_yaml = "logging.root.level: all"
' > /tmp/verbose_logging.json
ecctl deployment update "$CLOUD_DEPLOYMENT_ID" --track --output json --file /tmp/verbose_logging.json > "$JSON_FILE"
echo "done"
else
ecctl deployment show "$CLOUD_DEPLOYMENT_ID" --generate-update-payload | jq '
.resources.kibana[0].plan.kibana.docker_image = "'$KIBANA_CLOUD_IMAGE'" |
Expand Down
22 changes: 11 additions & 11 deletions docs/api/cases/cases-api-get-reporters.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ Returns information about the users who opened cases.
You must have `read` privileges for the *Cases* feature in the *Management*,
*{observability}*, or *Security* section of the
<<kibana-feature-privileges,{kib} feature privileges>>, depending on the
`owner` of the cases you're seeking.
`owner` of the cases.

=== {api-description-title}

The API returns information about the users as they existed at the time of the
case creation, including their name, full name, and email address. If any of
those details change thereafter or if a user is deleted, the information
returned by this API is unchanged.

=== {api-query-parms-title}

Expand Down Expand Up @@ -46,15 +53,8 @@ The API returns a JSON object with the retrieved reporters. For example:
[source,json]
--------------------------------------------------
[
{
"full_name": "Alan Hunley",
"email": "[email protected]",
"username": "ahunley"
},
{
"full_name": "Rat Hustler",
"email": "[email protected]",
"username": "rhustler"
}
{"username":"elastic","full_name":null,"email":null},
{"username":"user1","full_name":"User 1","email":"[email protected]"},
{"username":"user2","full_name":"User 2","email":"[email protected]"}
]
--------------------------------------------------
135 changes: 135 additions & 0 deletions x-pack/plugins/cases/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,62 @@
}
]
},
"/api/cases/reporters": {
"get": {
"summary": "Returns information about the users who opened cases.",
"description": "You must have read privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases. The API returns information about the users as they existed at the time of the case creation, including their name, full name, and email address. If any of those details change thereafter or if a user is deleted, the information returned by this API is unchanged.\n",
"tags": [
"cases",
"kibana"
],
"parameters": [
{
"$ref": "#/components/parameters/owner"
}
],
"responses": {
"200": {
"description": "Indicates a successful call.",
"content": {
"application/json; charset=utf-8": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"full_name": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
},
"examples": {
"getReportersResponse": {
"$ref": "#/components/examples/get_reporters_response"
}
}
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"/api/cases/{caseId}/comments": {
"post": {
"summary": "Adds a comment or alert to a case.",
Expand Down Expand Up @@ -5719,6 +5775,65 @@
}
]
},
"/s/{spaceId}/api/cases/reporters": {
"get": {
"summary": "Returns information about the users who opened cases.",
"description": "You must have read privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases. The API returns information about the users as they existed at the time of the case creation, including their name, full name, and email address. If any of those details change thereafter or if a user is deleted, the information returned by this API is unchanged.\n",
"tags": [
"cases",
"kibana"
],
"parameters": [
{
"$ref": "#/components/parameters/space_id"
},
{
"$ref": "#/components/parameters/owner"
}
],
"responses": {
"200": {
"description": "Indicates a successful call.",
"content": {
"application/json; charset=utf-8": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"full_name": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
},
"examples": {
"getReportersResponse": {
"$ref": "#/components/examples/get_reporters_response"
}
}
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"/s/{spaceId}/api/cases/{caseId}/comments": {
"post": {
"summary": "Adds a comment or alert to a case.",
Expand Down Expand Up @@ -7172,6 +7287,26 @@
}
]
},
"get_reporters_response": {
"summary": "A list of three users that opened cases",
"value": [
{
"username": "elastic",
"full_name": null,
"email": null
},
{
"username": "user1",
"full_name": "User 1",
"email": "[email protected]"
},
{
"username": "user2",
"full_name": "User 2",
"email": "[email protected]"
}
]
},
"add_comment_request": {
"summary": "Adds a comment to a case.",
"value": {
Expand Down
91 changes: 91 additions & 0 deletions x-pack/plugins/cases/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2134,6 +2134,45 @@ paths:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/cases/reporters:
get:
summary: Returns information about the users who opened cases.
description: >
You must have read privileges for the **Cases** feature in the
**Management**, **Observability**, or **Security** section of the Kibana
feature privileges, depending on the owner of the cases. The API returns
information about the users as they existed at the time of the case
creation, including their name, full name, and email address. If any of
those details change thereafter or if a user is deleted, the information
returned by this API is unchanged.
tags:
- cases
- kibana
parameters:
- $ref: '#/components/parameters/owner'
responses:
'200':
description: Indicates a successful call.
content:
application/json; charset=utf-8:
schema:
type: array
items:
type: object
properties:
email:
type: string
full_name:
type: string
username:
type: string
examples:
getReportersResponse:
$ref: '#/components/examples/get_reporters_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/cases/{caseId}/comments:
post:
summary: Adds a comment or alert to a case.
Expand Down Expand Up @@ -4807,6 +4846,46 @@ paths:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/s/{spaceId}/api/cases/reporters:
get:
summary: Returns information about the users who opened cases.
description: >
You must have read privileges for the **Cases** feature in the
**Management**, **Observability**, or **Security** section of the Kibana
feature privileges, depending on the owner of the cases. The API returns
information about the users as they existed at the time of the case
creation, including their name, full name, and email address. If any of
those details change thereafter or if a user is deleted, the information
returned by this API is unchanged.
tags:
- cases
- kibana
parameters:
- $ref: '#/components/parameters/space_id'
- $ref: '#/components/parameters/owner'
responses:
'200':
description: Indicates a successful call.
content:
application/json; charset=utf-8:
schema:
type: array
items:
type: object
properties:
email:
type: string
full_name:
type: string
username:
type: string
examples:
getReportersResponse:
$ref: '#/components/examples/get_reporters_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/s/{spaceId}/api/cases/{caseId}/comments:
post:
summary: Adds a comment or alert to a case.
Expand Down Expand Up @@ -5981,6 +6060,18 @@ components:
isPreconfigured: false
isDeprecated: false
referencedByCount: 0
get_reporters_response:
summary: A list of three users that opened cases
value:
- username: elastic
full_name: null
email: null
- username: user1
full_name: User 1
email: [email protected]
- username: user2
full_name: User 2
email: [email protected]
add_comment_request:
summary: Adds a comment to a case.
value:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
summary: A list of three users that opened cases
value:
[
{"username":"elastic","full_name":null,"email":null},
{"username":"user1","full_name":"User 1","email":"[email protected]"},
{"username":"user2","full_name":"User 2","email":"[email protected]"}
]
8 changes: 4 additions & 4 deletions x-pack/plugins/cases/docs/openapi/entrypoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ paths:
$ref: paths/api@cases@configure@{configurationid}.yaml
'/api/cases/configure/connectors/_find':
$ref: paths/api@cases@configure@connectors@_find.yaml
# '/api/cases/reporters':
# $ref: 'paths/api@[email protected]'
'/api/cases/reporters':
$ref: 'paths/api@[email protected]'
# '/api/cases/status':
# $ref: 'paths/api@[email protected]'
# '/api/cases/tags':
Expand Down Expand Up @@ -60,8 +60,8 @@ paths:
$ref: paths/s@{spaceid}@api@cases@configure@{configurationid}.yaml
'/s/{spaceId}/api/cases/configure/connectors/_find':
$ref: paths/s@{spaceid}@api@cases@configure@connectors@_find.yaml
# '/s/{spaceId}/api/cases/reporters':
# $ref: 'paths/s@{spaceid}@api@[email protected]'
'/s/{spaceId}/api/cases/reporters':
$ref: 'paths/s@{spaceid}@api@[email protected]'
# '/s/{spaceId}/api/cases/status':
# $ref: 'paths/s@{spaceid}@api@[email protected]'
# '/s/{spaceId}/api/cases/tags':
Expand Down
38 changes: 38 additions & 0 deletions x-pack/plugins/cases/docs/openapi/paths/api@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
get:
summary: Returns information about the users who opened cases.
description: >
You must have read privileges for the **Cases** feature in the **Management**,
**Observability**, or **Security** section of the Kibana feature privileges,
depending on the owner of the cases.
The API returns information about the users as they existed at the time of
the case creation, including their name, full name, and email address. If
any of those details change thereafter or if a user is deleted, the
information returned by this API is unchanged.
tags:
- cases
- kibana
parameters:
- $ref: '../components/parameters/owner.yaml'
responses:
'200':
description: Indicates a successful call.
content:
application/json; charset=utf-8:
schema:
type: array
items:
type: object
properties:
email:
type: string
full_name:
type: string
username:
type: string
examples:
getReportersResponse:
$ref: '../components/examples/get_reporters_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Loading

0 comments on commit 1f9d1f0

Please sign in to comment.