[Security Solution][Notes] - fix an issue that breaks the notes management page, an enum value was missing from the api (#196912)

## Summary

_**Notes: please ignore the spaces introduced in the first commit,
Webstorm is trying to be smart... CI should take care of fixing that in
a second commit shortly**_

This PR fixes a small issue that prevents the notes management page to
load. The issue comes from the fact that one of the enum values passed
to filter notes was missing from the open api spec. This issue was
introduced in this recent
[PR](https://github.com/elastic/kibana/pull/195501).

Current notes management borken page
![Screenshot 2024-10-18 at 10 30
13 AM](https://github.com/user-attachments/assets/4926a62f-1ebf-4698-8a13-bf761d77f4ba)

This is the error in the network tab
![Screenshot 2024-10-18 at 10 30
29 AM](https://github.com/user-attachments/assets/90b56246-c116-4050-bcfa-2c6668274e74)

This PR fixes the issue
![Screenshot 2024-10-18 at 10 27
01 AM](https://github.com/user-attachments/assets/7d3338ce-ad73-4be5-b94c-15bcf0234680)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Philippe Oberti 2024-10-18 13:09:02 -05:00 committed by GitHub
parent 5aad97651d
commit bf7c5aaf29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 12 additions and 4 deletions

View file

@ -49426,6 +49426,7 @@ components:
Security_Timeline_API_AssociatedFilterType:
description: Filter notes based on their association with a document or saved object.
enum:
- all
- document_only
- saved_object_only
- document_and_saved_object

View file

@ -49426,6 +49426,7 @@ components:
Security_Timeline_API_AssociatedFilterType:
description: Filter notes based on their association with a document or saved object.
enum:
- all
- document_only
- saved_object_only
- document_and_saved_object

View file

@ -58192,6 +58192,7 @@ components:
Security_Timeline_API_AssociatedFilterType:
description: Filter notes based on their association with a document or saved object.
enum:
- all
- document_only
- saved_object_only
- document_and_saved_object

View file

@ -58192,6 +58192,7 @@ components:
Security_Timeline_API_AssociatedFilterType:
description: Filter notes based on their association with a document or saved object.
enum:
- all
- document_only
- saved_object_only
- document_and_saved_object

View file

@ -23,6 +23,7 @@ import { Note } from '../model/components.gen';
*/
export type AssociatedFilterType = z.infer<typeof AssociatedFilterType>;
export const AssociatedFilterType = z.enum([
'all',
'document_only',
'saved_object_only',
'document_and_saved_object',

View file

@ -75,10 +75,11 @@ components:
AssociatedFilterType:
type: string
enum:
- document_only
- saved_object_only
- document_and_saved_object
- orphan
- all
- document_only
- saved_object_only
- document_and_saved_object
- orphan
description: Filter notes based on their association with a document or saved object.
DocumentIds:
oneOf:

View file

@ -928,6 +928,7 @@ components:
AssociatedFilterType:
description: Filter notes based on their association with a document or saved object.
enum:
- all
- document_only
- saved_object_only
- document_and_saved_object

View file

@ -928,6 +928,7 @@ components:
AssociatedFilterType:
description: Filter notes based on their association with a document or saved object.
enum:
- all
- document_only
- saved_object_only
- document_and_saved_object