Skip to content

Commit

Permalink
[Cases] Update docs for remaining guardrails (elastic#162492)
Browse files Browse the repository at this point in the history
## Summary

Connected to elastic#146945

This PR updates API docs for 

Description | Limit | Done? | Documented? | UI?
-- | -- | -- | -- | --
Total assignees per case | 10 | ✅ | Yes | ✅
Maximum number of cases/user actions/comments returned from the API |
10.000 | ✅ | Yes | N/A
Total number of cases by alert ID returned from the API | 10.000 | ✅ |
Yes | N/A
Total number of tags returned from the API | 10.000 | ✅ | Yes | N/A
Total number of reporters returned from the API | 10.000 | ✅ | Yes | N/A

### Checklist

Delete any items that are not applicable to this PR.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: lcawl <[email protected]>
  • Loading branch information
js-jankisalvi and lcawl authored Jul 26, 2023
1 parent 56f1621 commit c0cb613
Show file tree
Hide file tree
Showing 10 changed files with 405 additions and 23 deletions.
407 changes: 384 additions & 23 deletions docs/api-generated/cases/case-apis-passthru.asciidoc

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions x-pack/plugins/cases/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
"properties": {
"cases": {
"type": "array",
"maxItems": 10000,
"items": {
"$ref": "#/components/schemas/case_response_properties"
}
Expand Down Expand Up @@ -345,6 +346,7 @@
"application/json": {
"schema": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -954,6 +956,7 @@
"application/json": {
"schema": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1094,6 +1097,7 @@
"application/json": {
"schema": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string"
}
Expand Down Expand Up @@ -1719,6 +1723,7 @@
},
"userActions": {
"type": "array",
"maxItems": 10000,
"items": {
"$ref": "#/components/schemas/user_actions_find_response_properties"
}
Expand Down Expand Up @@ -4157,6 +4162,7 @@
"assignees": {
"type": "array",
"description": "An array containing users that are assigned to the case.",
"maxItems": 10,
"nullable": true,
"items": {
"type": "object",
Expand Down Expand Up @@ -5069,6 +5075,7 @@
"title": "Case response properties for comments",
"description": "An array of comment objects for the case.",
"type": "array",
"maxItems": 10000,
"items": {
"discriminator": {
"propertyName": "type"
Expand Down
7 changes: 7 additions & 0 deletions x-pack/plugins/cases/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ paths:
properties:
cases:
type: array
maxItems: 10000
items:
$ref: '#/components/schemas/case_response_properties'
count_closed_cases:
Expand Down Expand Up @@ -196,6 +197,7 @@ paths:
application/json:
schema:
type: array
maxItems: 10000
items:
type: object
properties:
Expand Down Expand Up @@ -610,6 +612,7 @@ paths:
application/json:
schema:
type: array
maxItems: 10000
items:
type: object
properties:
Expand Down Expand Up @@ -696,6 +699,7 @@ paths:
application/json:
schema:
type: array
maxItems: 10000
items:
type: string
examples:
Expand Down Expand Up @@ -1054,6 +1058,7 @@ paths:
type: integer
userActions:
type: array
maxItems: 10000
items:
$ref: '#/components/schemas/user_actions_find_response_properties'
examples:
Expand Down Expand Up @@ -2565,6 +2570,7 @@ components:
assignees:
type: array
description: An array containing users that are assigned to the case.
maxItems: 10
nullable: true
items:
type: object
Expand Down Expand Up @@ -3254,6 +3260,7 @@ components:
title: Case response properties for comments
description: An array of comment objects for the case.
type: array
maxItems: 10000
items:
discriminator:
propertyName: type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type: array
description: An array containing users that are assigned to the case.
maxItems: 10
nullable: true
items:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ properties:
title: Case response properties for comments
description: An array of comment objects for the case.
type: array
maxItems: 10000
items:
discriminator:
propertyName: type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ get:
properties:
cases:
type: array
maxItems: 10000
items:
$ref: '../components/schemas/case_response_properties.yaml'
count_closed_cases:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ get:
application/json:
schema:
type: array
maxItems: 10000
items:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ get:
application/json:
schema:
type: array
maxItems: 10000
items:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ get:
application/json:
schema:
type: array
maxItems: 10000
items:
type: string
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ get:
type: integer
userActions:
type: array
maxItems: 10000
items:
$ref: '../components/schemas/user_actions_find_response_properties.yaml'
examples:
Expand Down

0 comments on commit c0cb613

Please sign in to comment.